repo_id
stringclasses
400 values
cross_repo_split
stringclasses
1 value
commit_index
int32
0
1.19k
commit_sha
stringlengths
40
40
in_repo_split
stringclasses
3 values
test_file
stringlengths
7
121
file_split
stringclasses
3 values
split_group
stringlengths
18
150
lineno
int32
1
5.24k
col_offset
int32
0
165
assertion_type
stringclasses
35 values
test_function
stringlengths
0
141
prefix
large_stringlengths
7
258k
target
stringlengths
1
29.2k
assertion_event_type
stringclasses
2 values
assertion_event_id
stringlengths
64
64
assertion_anchor
large_stringlengths
14
176k
old_target
stringlengths
1
11.2k
old_lineno
int32
2
4.91k
old_col_offset
int32
0
165
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
438
8
self.assertRaises
test_discards_connection_on_sslerror
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
SSLError)
modified
88e186a61702f72065b08c5fb2f40c766983fd85a3e5168113c0382d7a7918a1
self.assertRaises|test_discards_connection_on_sslerror|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CER...
SSLError)
440
8
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
445
8
self.assertEqual
test_set_cert_default_cert_required
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
'CERT_REQUIRED')
modified
9b81f839f9b1b9af203e85b228eec89cb37c7662ea46ead3069de3be8ec3b347
self.assertEqual|test_set_cert_default_cert_required|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS...
'CERT_REQUIRED')
447
8
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
290
11
self.assertEqual
test_https_proxy_timeout
import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3._collections import HTTPHeaderDi...
ConnectTimeoutError)
added
e26db62dfbfca59395982006be045cdb1c255ac81b9481e905c4ea149d320267
self.assertEqual|test_https_proxy_timeout|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urlli...
null
null
null
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
301
12
self.assertEqual
test_https_proxy_pool_timeout
import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3._collections import HTTPHeaderDi...
ConnectTimeoutError)
added
695921d5b28be8432902086d4313ac03dc530b013b4f66877e8a91fd64e06b46
self.assertEqual|test_https_proxy_pool_timeout|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from ...
null
null
null
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
131
8
self.assertRaises
test_connection_refused
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
MaxRetryError)
modified
33e5f15b22e366dc9c626e73bdeb4e7eddd26f70891d2375bafa5f3fa385735e
self.assertRaises|test_connection_refused|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, Pr...
MaxRetryError)
130
8
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
591
12
self.assertRaises
test_ssl_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
ReadTimeoutError)
modified
0d463015fd4dbffb66195c84ac3ea68a8d60a191ea0ecfa0a1a2cafdc04253e7
self.assertRaises|test_ssl_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, Prox...
ReadTimeoutError)
590
12
urllib3/urllib3
train
157
c7529232919a47101567e739032d79a6ae328730
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
281
12
self.assertTrue
test_invalid_timeouts
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
'int or float' in str(e))
modified
d8cb61b41f95e0d57a9c8c704d1a40185b96e3b294f689bf2a03a3cc6586a74b
self.assertTrue|test_invalid_timeouts|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urll...
'int or float' in str(e))
279
12
urllib3/urllib3
train
157
c7529232919a47101567e739032d79a6ae328730
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
359
8
self.assertTrue
test_is_fp_closed_object_supports_closed
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
is_fp_closed(ClosedFile()))
modified
a27eca8d866259713db7794c455de8a60db4abf97b2deecca49997277b63e0f1
self.assertTrue|test_is_fp_closed_object_supports_closed|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout impor...
is_fp_closed(ClosedFile()))
357
8
urllib3/urllib3
train
157
c7529232919a47101567e739032d79a6ae328730
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
375
8
self.assertTrue
test_is_fp_closed_object_has_fp
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
not is_fp_closed(FpFile()))
modified
f361e176f85a60dc4f5cd125ef9a5a0c00d81f859bbd7bd3b87025c039245869
self.assertTrue|test_is_fp_closed_object_has_fp|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout...
not is_fp_closed(FpFile()))
373
8
urllib3/urllib3
train
157
c7529232919a47101567e739032d79a6ae328730
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
415
8
assert_*
test_ssl_wrap_socket_with_no_sni
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
socket)
modified
7ae2d3b98a40dd9f749443e1b53e971b202b3501c7e8e35a246b15d8d6fb867d
assert_*|test_ssl_wrap_socket_with_no_sni|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from ...
socket)
413
8
urllib3/urllib3
train
158
c948bc320f422dcab35103803b99e6f151a20d31
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
133
8
self.assertEqual
test_connection_refused
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
http.pool.maxsize)
modified
ff60812120ec75a83f532cd0ade2d50900a6e7ece7af81e89726be6641b0bb30
self.assertEqual|test_connection_refused|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, Pro...
http.pool.maxsize)
132
8
urllib3/urllib3
train
158
c948bc320f422dcab35103803b99e6f151a20d31
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
336
16
self.assertEqual
test_connection_cleanup_on_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
pool.pool.qsize())
modified
41a797574484940667aa81f55fe347ddd315570ea1924acedf88d385b985708a
self.assertEqual|test_connection_cleanup_on_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( Ma...
pool.pool.qsize())
335
16
urllib3/urllib3
train
158
c948bc320f422dcab35103803b99e6f151a20d31
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
368
12
self.assertEqual
test_connection_cleanup_on_protocol_error_during_read
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
pool.pool.qsize())
modified
6e33b15ff7b2d33de6bcf874d7661f4e97214b210481a555edfc865083d1555e
self.assertEqual|test_connection_cleanup_on_protocol_error_during_read|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptio...
pool.pool.qsize())
367
12
urllib3/urllib3
train
158
c948bc320f422dcab35103803b99e6f151a20d31
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
733
8
self.assertEqual
test_httplib_headers_case_insensitive
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
dict(r.headers.items()))
added
c89613da711ab7482308b284571eff77bfcf9405d47503120abea2b3f364ce55
self.assertEqual|test_httplib_headers_case_insensitive|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxR...
null
null
null
urllib3/urllib3
train
159
858c56e0d8c7c0b5fc6a55570c8fdebc98028eac
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
86
16
self.assertRaises
test_conn_closed
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
socket.error)
added
69d257a1f7efc10b122a7dc22dc16b7df7b8b434ac635ee7139d4e9906bfb0d1
self.assertRaises|test_conn_closed|import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, I...
null
null
null
urllib3/urllib3
train
159
858c56e0d8c7c0b5fc6a55570c8fdebc98028eac
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
212
8
self.assertRaises
test_create_connection_timeout
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
ConnectTimeoutError)
added
017e2a71f570f24aa9930bf363f7611bb42145c3da09df3de170e330e0a52b74
self.assertRaises|test_create_connection_timeout|import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURC...
null
null
null
urllib3/urllib3
train
159
858c56e0d8c7c0b5fc6a55570c8fdebc98028eac
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
242
8
self.assertEqual
test_wrong_specific_method
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
r.data)
added
4685212a8918d6b49287d1289fe0879a034c135ed1e9cb49cbece8200521f0b6
self.assertEqual|test_wrong_specific_method|import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADD...
null
null
null
urllib3/urllib3
train
159
858c56e0d8c7c0b5fc6a55570c8fdebc98028eac
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
323
8
self.assertTrue
test_disable_default_socket_options
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
using_nagle)
added
e0c62478666af9cbb3a40cf3f77a5064df11b419c2601c2b6597293612f4f9d0
self.assertTrue|test_disable_default_socket_options|import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SO...
null
null
null
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
204
8
self.assertRaises
test_create_connection_timeout
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
ConnectTimeoutError)
added
97acf37565a39341bb76177c9dcdf6ceea327d44d02a27f8439ca10ece288139
self.assertRaises|test_create_connection_timeout|import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURC...
null
null
null
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
387
8
self.assertEqual
test_redirect
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
b'Dummy server!')
added
a8741b71bce830a05a88b87eccd826dad441065cef749fd7a78c7aa20869f36b
self.assertEqual|test_redirect|import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVAL...
null
null
null
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
82
8
self.assertEqual
test_cross_host_redirect
import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_sch...
self.host_alt)
modified
cc54d8bb412d9ceca7ddc869207264797ad0080639c0b46553fc349aff1e4731
self.assertEqual|test_cross_host_redirect|import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port...
self.host_alt)
82
8
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
157
8
self.assertEqual
test_headers
import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_sch...
'quux')
modified
f3147fe7701755e5a2c858803d55fdf9e745fd2344075231951c0bdedbbe4b0b
self.assertEqual|test_headers|import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme f...
'quux')
157
8
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
136
8
self.assertNotEqual
test_cross_host_redirect
import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3._collections import HTTPHeaderDi...
self.http_host_alt)
modified
b6197f2191c3b4c57fd39ba15dd7bc737103044fea2b5e53842083f3fd6bcbbb
self.assertNotEqual|test_cross_host_redirect|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from ur...
self.http_host_alt)
136
8
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
301
12
self.assertEqual
test_https_proxy_pool_timeout
import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3._collections import HTTPHeaderDi...
ConnectTimeoutError)
modified
a70299a1a1c11ed3f7d954fb7f02c214fe2327b334df8e558206b473e13a1dc2
self.assertEqual|test_https_proxy_pool_timeout|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from ...
ConnectTimeoutError)
301
12
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
699
8
self.assertRaises
test_ssl_failed_fingerprint_verification
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
SSLError)
modified
87164626342995107a9ec5029b6ff84681d8233f0230f30c8001a87948723edd
self.assertRaises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( ...
SSLError)
697
8
urllib3/urllib3
train
160
b09e2c227149f223e850837cd17b1fb7827c08ad
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
844
8
self.assertEqual
test_empty_head_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
list(r.stream()))
added
1f21ec4d25b33e2eb81ae64d1fa894c6796bfc17438576aff1aa911ec65d91e4
self.assertEqual|test_empty_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( Max...
null
null
null
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
150
8
self.assertRaises
test_parse_url_invalid_IPv6
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
ValueError)
modified
406584a423182ce2f399be5cd8c3aefd78585ac43af380a0d6143dfb9dc357b1
self.assertRaises|test_parse_url_invalid_IPv6|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout f...
ValueError)
149
8
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
170
12
self.assertEqual
test_request_uri
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
expected_request_uri)
modified
96eed60fffdeb5c7099c624faf75aa1fb13cd6637a84fddda331067075cb90f1
self.assertEqual|test_request_uri|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3....
expected_request_uri)
169
12
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
299
8
self.assertEqual
test_timeout
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
Timeout.DEFAULT_TIMEOUT)
modified
768f50bd5ccee733f2d8bb0e198021fe11e6ebdc8e96b27263e14d796fef8ce5
self.assertEqual|test_timeout|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util...
Timeout.DEFAULT_TIMEOUT)
298
8
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
376
8
self.assertTrue
test_is_fp_closed_object_has_fp
import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( get_host, ...
not is_fp_closed(FpFile()))
modified
f490283dccf0ba6f97cfafe207c012a64e717c288abf139fb9e08778dce3ec23
self.assertTrue|test_is_fp_closed_object_has_fp|import hashlib import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout...
not is_fp_closed(FpFile()))
375
8
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
168
12
self.assertEqual
test_unverified_ssl
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
InsecureRequestWarning)
added
c151fcecbc91d9d9c033ab10332e88e62d74aa1f66c79b293d4faf33b81c3cef
self.assertEqual|test_unverified_ssl|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, ...
null
null
null
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
268
8
self.assertRaises
test_assert_invalid_fingerprint
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
SSLError)
modified
2f5c2c6b7101c5caf1e4761c7fd33dd382f15512d46db693f6f91042ce60ff80
self.assertRaises|test_assert_invalid_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, N...
SSLError)
267
8
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
287
8
self.assertRaises
test_verify_none_and_bad_fingerprint
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
SSLError)
added
f9a06dcd769fe211b471145d1e6c921085757833bf5d8aa862466b036128d4b1
self.assertRaises|test_verify_none_and_bad_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CER...
null
null
null
urllib3/urllib3
train
161
fe83e37f3755446a0c1256887b33d0896584b64d
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
444
8
self.assertRaises
test_discards_connection_on_sslerror
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
SSLError)
added
401a9528fb9542746d7c9536e729d25fa38b2106676463cc7fbf9fedec7cde24
self.assertRaises|test_discards_connection_on_sslerror|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CER...
null
null
null
urllib3/urllib3
train
163
e30eeda451aebaaba8944c7a9842aeb34f4b062b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
276
8
self.assertRaises
test_assert_invalid_fingerprint
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
SSLError)
modified
59550af2742ce77ade8182b675f32c474b7f69f252475f8e3ef4717ac475e2ee
self.assertRaises|test_assert_invalid_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA...
SSLError)
273
8
urllib3/urllib3
train
163
e30eeda451aebaaba8944c7a9842aeb34f4b062b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
290
8
self.assertRaises
test_verify_none_and_bad_fingerprint
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
SSLError)
modified
1ae7fb283e5cefd42db3377680565fe41ea47907f05ce10fe9dcd5f10144aa23
self.assertRaises|test_verify_none_and_bad_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAU...
SSLError)
287
8
urllib3/urllib3
train
163
e30eeda451aebaaba8944c7a9842aeb34f4b062b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
435
8
self.assertRaises
test_set_ssl_version_to_sslv3
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
SSLError)
modified
d97d7e04849b915382064f081ed4f0db24efc5c72b58e009d284125b18fab025
self.assertRaises|test_set_ssl_version_to_sslv3|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, ...
SSLError)
432
8
urllib3/urllib3
train
163
e30eeda451aebaaba8944c7a9842aeb34f4b062b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
443
8
self.assertRaises
test_ssl_version_as_short_string
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
SSLError)
modified
98171181854d91fe2a3173d8a3f759be0bd7dc4cda1470908606f81769e164c8
self.assertRaises|test_ssl_version_as_short_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_C...
SSLError)
440
8
urllib3/urllib3
train
164
005b065f8171fa9264cb32b39b436515d3878ad6
train
test/contrib/test_socks.py
train
urllib3/urllib3:test/contrib/test_socks.py
292
8
self.assertRaises
test_connection_failure
import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import SkipTest try: import ssl from urll...
NewConnectionError)
added
c55a929a78b9983cb753a117d68b9276ad4dc22635d8c9ff16918cde1049432c
self.assertRaises|test_connection_failure|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import Skip...
null
null
null
urllib3/urllib3
train
164
005b065f8171fa9264cb32b39b436515d3878ad6
train
test/contrib/test_socks.py
train
urllib3/urllib3:test/contrib/test_socks.py
386
12
self.assertEqual
test_source_address_works
import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import SkipTest try: import ssl from urll...
'16.17.18.19')
added
b51b0df9b8f7b00651d8cbe069f8a1c437f33072411a3b1475b47fc4e97c745b
self.assertEqual|test_source_address_works|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import Ski...
null
null
null
urllib3/urllib3
train
164
005b065f8171fa9264cb32b39b436515d3878ad6
train
test/contrib/test_socks.py
train
urllib3/urllib3:test/contrib/test_socks.py
510
12
self.assertEqual
test_socks4_with_username
import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import SkipTest try: import ssl from urll...
'16.17.18.19')
added
8749a616351d6f0788fac294a183ff4f285ef33f3a149a802e8462e64ad72396
self.assertEqual|test_socks4_with_username|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import Ski...
null
null
null
urllib3/urllib3
train
164
005b065f8171fa9264cb32b39b436515d3878ad6
train
test/contrib/test_socks.py
train
urllib3/urllib3:test/contrib/test_socks.py
548
12
self.assertTrue
test_socks_with_invalid_username
import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip import SkipTest try: import ssl from urll...
"different user-ids" in str(e))
added
05a3fe989d222325365cb0981fb7dde69c61b1439d597fc61b7f10b424ff17c6
self.assertTrue|test_socks_with_invalid_username|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS from dummyserver.testcase import IPV4SocketDummyServerTestCase from nose.plugins.skip impo...
null
null
null
urllib3/urllib3
train
165
c6b7a16c067773ffbb6b96a76985e69e72d5acf9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
466
12
self.assertFalse
test_closing_response_actually_closes_connection
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
new_data)
added
6823bf8267d19cf63a699a5c8df1cf69cfb1f728a454a3908602e6774962b2f0
self.assertFalse|test_closing_response_actually_closes_connection|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions im...
null
null
null
urllib3/urllib3
train
165
c6b7a16c067773ffbb6b96a76985e69e72d5acf9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
551
8
self.assertTrue
test_headers
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
b'For The Proxy: YEAH!\r\n' in r.data)
added
b11b12a4c3e669498d4a5b85ddc8a1f051a12ab9d962894ae57bfb07a97660bf
self.assertTrue|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Con...
null
null
null
urllib3/urllib3
train
165
c6b7a16c067773ffbb6b96a76985e69e72d5acf9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
760
8
self.assertRaises
test_bad_statusline
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
ProtocolError)
added
b19d57b59e60440ed2290c69bb7e9c785e97afe0cc8bab43b9fce7f37bc96cbb
self.assertRaises|test_bad_statusline|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyE...
null
null
null
urllib3/urllib3
train
165
c6b7a16c067773ffbb6b96a76985e69e72d5acf9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
818
8
self.assertEqual
test_headers_are_sent_with_the_original_case
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
parsed_headers)
added
d6f1826dbeecc81e043b3de6e761fa0f9a2298831cecb658400ffcf123d7eb23
self.assertEqual|test_headers_are_sent_with_the_original_case|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import...
null
null
null
urllib3/urllib3
train
166
dc4f7df5c84f11fa5ff33e4d0ce2c9e65228d235
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
156
8
self.assertEqual
test_missing_port
import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_sch...
b'Dummy server!')
added
3ae70483e16a1252cd8680f59f098ae7ce7ebe3e9e90b9eba96cba636e6375c7
self.assertEqual|test_missing_port|import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_sch...
null
null
null
urllib3/urllib3
train
166
dc4f7df5c84f11fa5ff33e4d0ce2c9e65228d235
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
180
8
self.assertEqual
test_headers
import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_sch...
'quux')
added
913cc5de99bcb15ab5c937d87a0c1789b184a2e0654be6cf17e335974b48beb3
self.assertEqual|test_headers|import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme f...
null
null
null
urllib3/urllib3
train
166
dc4f7df5c84f11fa5ff33e4d0ce2c9e65228d235
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
185
8
self.assertEqual
test_headers
import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_sch...
'quux')
added
647ba58c1b57b7d4aa041d2066c3b13dd3933b1ac46c6763ce191c690ca0482a
self.assertEqual|test_headers|import unittest import json from nose.plugins.skip import SkipTest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme f...
null
null
null
urllib3/urllib3
train
167
6e88f9433b41e2f7ac425a52b5c545ff4adb5d06
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
39
12
self.assertEqual
test_chunks
# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): ...
hex(len(chunk))[2:].encode('utf-8'))
added
125d87a5fc53ac6454095bc7b0d448520e701ade501626e91f93e1ce9e0a0e5e
self.assertEqual|test_chunks|# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): s...
null
null
null
urllib3/urllib3
train
167
6e88f9433b41e2f7ac425a52b5c545ff4adb5d06
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
40
12
self.assertEqual
test_chunks
# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): ...
chunk.encode('utf-8'))
added
29773ae63a3878fe4bc171ac61cafecc2974a501194fef4a18b998685989fe2e
self.assertEqual|test_chunks|# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): s...
null
null
null
urllib3/urllib3
train
167
6e88f9433b41e2f7ac425a52b5c545ff4adb5d06
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
51
12
self.assertTrue
_test_body
# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): ...
b'\r\n' + bdata + b'\r\n' in body)
added
aee9d1d32bea381b04d60bbd29d524332dfd80d88891521f23bf2dd2aabfbe30
self.assertTrue|_test_body|# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): soc...
null
null
null
urllib3/urllib3
train
167
6e88f9433b41e2f7ac425a52b5c545ff4adb5d06
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
58
12
self.assertEqual
_test_body
# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): ...
b'0\r\n\r\n')
added
ad54c7eca1a21c681a3f1cf24368de33ea9122b56528c09ac29d38df609a5671
self.assertEqual|_test_body|# -*- coding: utf-8 -*- from urllib3 import HTTPConnectionPool from urllib3.packages import six from dummyserver.testcase import SocketDummyServerTestCase class TestChunkedTransfer(SocketDummyServerTestCase): def start_chunked_handler(self): self.buffer = b'' def socket_handler(listener): so...
null
null
null
urllib3/urllib3
train
168
908f30274172340c35baf851c7557cdf0382ad6a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
395
12
self.assertEqual
test_connection_cleanup_on_protocol_error_during_read
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
pool.pool.qsize())
added
3b3f52552cf89f7e170c921d0660a2baf18c27c9c58a806059784587564aede9
self.assertEqual|test_connection_cleanup_on_protocol_error_during_read|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptio...
null
null
null
urllib3/urllib3
train
168
908f30274172340c35baf851c7557cdf0382ad6a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
701
8
self.assertRaises
test_ssl_failure_midway_through_conn
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
SSLError)
added
0c41baac4a5261aaa27433421154893b4c859a1f5f9c7b5fa4806095959a23cd
self.assertRaises|test_ssl_failure_midway_through_conn|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxR...
null
null
null
urllib3/urllib3
train
168
908f30274172340c35baf851c7557cdf0382ad6a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
775
8
self.assertRaises
test_ssl_failed_fingerprint_verification
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
SSLError)
added
d08960a1a7b2be80e8b11d276549e6912f501e65230538f937fe9e8d880b516c
self.assertRaises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( ...
null
null
null
urllib3/urllib3
train
168
908f30274172340c35baf851c7557cdf0382ad6a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
796
8
self.assertRaises
test_unknown_protocol
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
ProtocolError)
added
5abd5706454213ac8b0f07675acbb56ad99c83f7d7bf942944961984cc231d97
self.assertRaises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, Prox...
null
null
null
urllib3/urllib3
train
169
1c87b38f5b4dc898e999bb8434a970a0a57a4365
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
166
8
self.assertEqual
test_retry_exception_str
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyP...
"HTTPConnectionPool(host='localhost', port=None): " "Max retries exceeded with url: Test. (Caused by None)")
added
4cffc1a352c744cb27171ff8c195667c73aff6a4ba4562b98b991bc090109c60
self.assertEqual|test_retry_exception_str|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( Closed...
null
null
null
urllib3/urllib3
train
169
1c87b38f5b4dc898e999bb8434a970a0a57a4365
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
195
12
self.assertEqual
_test
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyP...
POOL_SIZE)
added
41902249fa837a8f7bf86b50682c6386f0cf163804a664515c42056e593811f1
self.assertEqual|_test|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoo...
null
null
null
urllib3/urllib3
train
169
1c87b38f5b4dc898e999bb8434a970a0a57a4365
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
236
8
self.assertRaises
test_pool_close
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyP...
ClosedPoolError)
added
4c3c9d882f7773cd6f09f8eaeafa319e75fa81d0624e9ada184b459b4ed9e85a
self.assertRaises|test_pool_close|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolErro...
null
null
null
urllib3/urllib3
train
169
1c87b38f5b4dc898e999bb8434a970a0a57a4365
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
277
8
self.assertEqual
test_absolute_url
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyP...
c._absolute_url('path?query=foo'))
added
af6fbc12d5ec0e4f7588b1040f6b503e6d405a53b493d97b27d6d4a00cd41af0
self.assertEqual|test_absolute_url|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolErr...
null
null
null
urllib3/urllib3
train
170
777f0a9afc2123f0db50e8d172ae79145182e4e3
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
147
12
self.assertTrue
test_verified_without_ca_certs
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
'No root certificates specified' in str(e) or 'certificate verify failed' in str(e))
modified
dc46d0d3f139a1a3ff8465dc589ca31978af25cd4112d75cbbd4a683738ccf99
self.assertTrue|test_verified_without_ca_certs|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, D...
'No root certificates specified' in str(e) or 'certificate verify failed' in str(e))
147
12
urllib3/urllib3
train
170
777f0a9afc2123f0db50e8d172ae79145182e4e3
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
171
12
self.assertEqual
test_unverified_ssl
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
InsecureRequestWarning)
modified
649f713e009f9c295e23b4ba0ffbd03ab3be48cba9a7d762b61114366f1f6986
self.assertEqual|test_unverified_ssl|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_...
InsecureRequestWarning)
171
12
urllib3/urllib3
train
170
777f0a9afc2123f0db50e8d172ae79145182e4e3
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
322
8
self.assertRaises
test_https_timeout
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
ConnectTimeoutError)
modified
a4ef7193713d6cf60c3c77c06b38821ded5036bd5623fbe44600cf714f5a5706
self.assertRaises|test_https_timeout|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_...
ConnectTimeoutError)
321
8
urllib3/urllib3
train
170
777f0a9afc2123f0db50e8d172ae79145182e4e3
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
436
8
self.assertRaises
test_set_ssl_version_to_sslv3
import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ...
SSLError)
modified
7e26ac311dbe9e8f3967f5cf52f43bd3ee9b588d7c71e08493f68174f576a427
self.assertRaises|test_set_ssl_version_to_sslv3|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import ( HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase ) from dummyserver.server import (DEFAULT_CA, ...
SSLError)
435
8
urllib3/urllib3
train
171
b76dcc9d61dc1490866f37b15ccc9ed5faed64fc
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
310
8
self.assertEqual
test_cleanup_on_extreme_connection_error
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyP...
new_pool_size)
added
e20425d5cfa18e97450e7afb632bae7ac6ea9f114db6699c915c754d1b771172
self.assertEqual|test_cleanup_on_extreme_connection_error|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions...
null
null
null
urllib3/urllib3
train
172
dfa5ad12eb6440eb68969aa1239cad10313a1c67
train
test/test_fields.py
train
urllib3/urllib3:test/test_fields.py
11
8
self.assertTrue
test_guess_content_type
import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(
guess_content_type('image.jpg') in ['image/jpeg', 'image/pjpeg'])
modified
b55801a2ef97d1b6d467c9bbe2583decadc64b01b7d872466264c736011648e0
self.assertTrue|test_guess_content_type|import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(
guess_content_type('image.jpg') in ['image/jpeg', 'image/pjpeg'])
10
8
urllib3/urllib3
train
172
dfa5ad12eb6440eb68969aa1239cad10313a1c67
train
test/test_fields.py
train
urllib3/urllib3:test/test_fields.py
32
8
self.assertEqual
test_make_multipart
import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(guess_content_type('image.jpg') in ['image/jpeg'...
'Content-Disposition: form-data; name="somename"\r\n' 'Content-Type: image/jpg\r\n' 'Content-Location: /test\r\n' '\r\n')
modified
a671e62e91e3b093f4b57cce219c8e95e6fcc1319c6d690c1e632b9a594d8bcd
self.assertEqual|test_make_multipart|import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(guess_content_type('image.jpg') in ['image/jpeg', '...
'Content-Disposition: form-data; name="somename"\r\n' 'Content-Type: image/jpg\r\n' 'Content-Location: /test\r\n' '\r\n')
31
8
urllib3/urllib3
train
172
dfa5ad12eb6440eb68969aa1239cad10313a1c67
train
test/test_fields.py
train
urllib3/urllib3:test/test_fields.py
50
8
self.assertEqual
test_render_part
import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(guess_content_type('image.jpg') in ['image/jpeg'...
"filename*=utf-8''n%C3%A4me")
modified
e9d71a1e3f67effe6a96d8a203e3f579597d6aea9793ed7e951c5012e5975476
self.assertEqual|test_render_part|import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(guess_content_type('image.jpg') in ['image/jpeg', 'ima...
"filename*=utf-8''n%C3%A4me")
49
8
urllib3/urllib3
train
172
dfa5ad12eb6440eb68969aa1239cad10313a1c67
train
test/test_fields.py
train
urllib3/urllib3:test/test_fields.py
56
8
self.assertEqual
test_render_unicode_bytes_py2
import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(guess_content_type('image.jpg') in ['image/jpeg'...
"filename*=utf-8''n%C3%A4me")
added
91965317c57aa7db90585ebbe2618ebaecce2d3fc867720644c27f13ac849fb6
self.assertEqual|test_render_unicode_bytes_py2|import unittest from urllib3.fields import guess_content_type, RequestField from urllib3.packages.six import u, PY3 from . import onlyPy2 class TestRequestField(unittest.TestCase): def test_guess_content_type(self): self.assertTrue(guess_content_type('image.jpg') in ['imag...
null
null
null
urllib3/urllib3
train
173
672f1baf1b6a6754f242628a063dd06c21507e0f
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
19
8
self.assertRaises
test_match_hostname_no_cert
import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_cert(self): ...
ValueError)
added
9fb461c04089282617db733e3ce46d505640588eec09940f6c5d9449cff66794
self.assertRaises|test_match_hostname_no_cert|import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_ce...
null
null
null
urllib3/urllib3
train
173
672f1baf1b6a6754f242628a063dd06c21507e0f
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
24
8
self.assertRaises
test_match_hostname_empty_cert
import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_cert(self): ...
ValueError)
added
e1c2865c7424c58b3ae9b17a128046f0e260b463a2299e6d573885a3126e44ee
self.assertRaises|test_match_hostname_empty_cert|import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no...
null
null
null
urllib3/urllib3
train
173
672f1baf1b6a6754f242628a063dd06c21507e0f
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
38
12
self.assertEqual
test_match_hostname_mismatch
import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_cert(self): ...
"hostname 'bar' doesn't match 'foo'")
added
100d46ce8797d335499f198751948b5e587721fed7a4d36052f48af703cb40c1
self.assertEqual|test_match_hostname_mismatch|import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_ce...
null
null
null
urllib3/urllib3
train
173
672f1baf1b6a6754f242628a063dd06c21507e0f
train
test/test_connection.py
test
urllib3/urllib3:test/test_connection.py
39
12
assert_*
test_match_hostname_mismatch
import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_cert(self): ...
{'subjectAltName': [('DNS', 'foo')]})
added
159541251ee93ac6e12f6f22277319eb08a6d3524c5321b7ea239db169e65c1c
assert_*|test_match_hostname_mismatch|import unittest import mock from urllib3.connection import ( CertificateError, VerifiedHTTPSConnection, _match_hostname, ) class TestConnection(unittest.TestCase): """ Tests in this suite should not make any network requests or connections. """ def test_match_hostname_no_cert(self)...
null
null
null
urllib3/urllib3
train
174
e8924622e605b195ba9b6d8d910e48bde06bce88
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
210
12
self.assertEqual
test_timeout_errors_cause_retries
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
b'Response 2')
modified
3d6b45f67395066c99362729a218d1fd5044f201990df6fee1e93f1e26969e19
self.assertEqual|test_timeout_errors_cause_retries|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetry...
b'Response 2')
210
12
urllib3/urllib3
train
174
e8924622e605b195ba9b6d8d910e48bde06bce88
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
493
12
self.assertFalse
test_closing_response_actually_closes_connection
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
new_data)
modified
29cae6b2e7db16e7fcca024a9a51b95a5c0d4a8d2c6f78263cacf8f8485fce50
self.assertFalse|test_closing_response_actually_closes_connection|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions im...
new_data)
493
12
urllib3/urllib3
train
174
e8924622e605b195ba9b6d8d910e48bde06bce88
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
811
8
self.assertEqual
test_httplib_headers_case_insensitive
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
dict(r.headers.items()))
modified
c5fd89cdc5e9a3c7f8ea400a1b1af4fee00aa56f1e22e1e1e9c1ce3c33aeb540
self.assertEqual|test_httplib_headers_case_insensitive|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxR...
dict(r.headers.items()))
811
8
urllib3/urllib3
train
174
e8924622e605b195ba9b6d8d910e48bde06bce88
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
987
8
self.assertEqual
test_empty_head_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
list(r.stream()))
added
b4be2df91d7dd9fc6eb9857391dc1250dc35d1ae13bfb9ff86e8caf13830a090
self.assertEqual|test_empty_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( Max...
null
null
null
urllib3/urllib3
train
175
72ccdfdfc127b503075770ed663cf311281abd42
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
147
12
self.assertEqual
test_parse_url
import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( ...
expected_Url)
added
3ba88cadf4e0b3f91452bb446fe060fc79136219e315c04bc24841daf06ae70c
self.assertEqual|test_parse_url|import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout f...
null
null
null
urllib3/urllib3
train
175
72ccdfdfc127b503075770ed663cf311281abd42
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
200
8
self.assertEqual
test_make_headers
import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( ...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
modified
6ea8fc02f293d14486cdb253fd270aadc80fe67a464fafb59059370bf428e088
self.assertEqual|test_make_headers|import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeou...
{'user-agent': 'banana'})
200
8
urllib3/urllib3
train
175
72ccdfdfc127b503075770ed663cf311281abd42
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
331
8
self.assertEqual
test_timeout_str
import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( ...
"Timeout(connect=1, read=2, total=3)")
modified
00d66f8c8e99058b9aa3aedaeb88c681e175442ff4b5f4a546e5e6f05ea0e54d
self.assertEqual|test_timeout_str|import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout...
"Timeout(connect=1, read=None, total=3)")
329
8
urllib3/urllib3
train
175
72ccdfdfc127b503075770ed663cf311281abd42
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
410
8
assert_*
test_ssl_wrap_socket_loads_certificate_directories
import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import ( ...
'/path/to/pems')
added
9d8d1b432202c6618949a611ee19b4244f86f370f0e50e9415bd4936d62e5d12
assert_*|test_ssl_wrap_socket_loads_certificate_directories|import hashlib import warnings import logging import unittest import ssl import socket from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.u...
null
null
null
urllib3/urllib3
train
176
2d79895baa704face8a04ba7d2baf258864390bd
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
81
8
self.assertRaises
test_nohost
import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError, ...
LocationValueError)
added
3514398de475f74bf731f8e7081d0dc762767f3fa46920d048a58cff3f4777d7
self.assertRaises|test_nohost|import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError,...
null
null
null
urllib3/urllib3
train
176
2d79895baa704face8a04ba7d2baf258864390bd
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
141
8
self.assertTrue
test_http_pool_key_extra_kwargs
import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError, ...
conn_pool is other_conn_pool)
added
557e3064c912378da658bf9119f51d192b6a9cd7a0dc9a6d708938f745668f1f
self.assertTrue|test_http_pool_key_extra_kwargs|import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ...
null
null
null
urllib3/urllib3
train
176
2d79895baa704face8a04ba7d2baf258864390bd
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
233
8
self.assertTrue
test_pools_keyed_with_from_host
import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError, ...
all( x is not y for i, x in enumerate(conns) for j, y in enumerate(conns) if i != j ))
added
d1435669527595975a32ca32b39710cad028b679f0802e848eeca35a52138519
self.assertTrue|test_pools_keyed_with_from_host|import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ...
null
null
null
urllib3/urllib3
train
176
2d79895baa704face8a04ba7d2baf258864390bd
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
281
8
self.assertTrue
test_http_connection_from_url_case_insensitive
import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError, ...
pool is other_pool)
added
490ba38c8900998756a10df7c5383440aab3cd3f0a32e67e826f65383a116676
self.assertTrue|test_http_connection_from_url_case_insensitive|import functools import unittest from collections import namedtuple from urllib3.poolmanager import ( _default_key_normalizer, HTTPPoolKey, HTTPSPoolKey, key_fn_by_scheme, PoolManager, SSL_KEYWORDS, ) from urllib3 import connection_from_url from urllib3.exc...
null
null
null
urllib3/urllib3
train
177
3239c172b19e41f41777db4bd55daae40c99b43d
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
153
8
self.assertFalse
test_status_forcelist
import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def test_string...
retry.is_forced_retry('GET', status_code=418))
added
f1fa37591a52a3088eaccd0a333902774ad04768355d8658e9748df643bacacb
self.assertFalse|test_status_forcelist|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): ...
null
null
null
urllib3/urllib3
train
177
3239c172b19e41f41777db4bd55daae40c99b43d
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
163
8
self.assertFalse
test_method_whitelist_with_status_forcelist
import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def test_string...
retry.is_forced_retry('GET', status_code=500))
added
f2ed525f574d5908ba5239b25a924dbd689f917cca232dda058525086e7b934a
self.assertFalse|test_method_whitelist_with_status_forcelist|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTes...
null
null
null
urllib3/urllib3
train
177
3239c172b19e41f41777db4bd55daae40c99b43d
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
173
8
self.assertRaises
test_disabled
import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def test_string...
MaxRetryError)
added
dd308eadf21b07e3275bd825e651b9ef222849b59f17b8c68485a581f3bd13f5
self.assertRaises|test_disabled|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def tes...
null
null
null
urllib3/urllib3
train
177
3239c172b19e41f41777db4bd55daae40c99b43d
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
191
12
self.assertTrue
test_error_message
import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def test_string...
isinstance(e.reason, ResponseError))
added
eaa2c4d49777f3abc93c0aae539c6b3f3e3a8bffb845a5152c6692eab24994af
self.assertTrue|test_error_message|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def ...
null
null
null
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
161
8
self.assertEqual
test_pool_edgecases
from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import Cert...
pool._get_conn())
modified
c0a42f6a713153a605503f3afb54c1fd9286bde83be0a6f7f4d7237cfe4df0b1
self.assertEqual|test_pool_edgecases|from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_h...
3)
158
8
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
252
8
self.assertEqual
test_pool_timeouts
from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import Cert...
Timeout.DEFAULT_TIMEOUT)
modified
580b4f401a071f5a2f8f4e7bba0da936f20291566f981b37aeaa0f67dcc8a421
self.assertEqual|test_pool_timeouts|from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_ho...
3)
250
8
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
290
12
self.assertEqual
test_ca_certs_default_cert_required
from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import Cert...
'CERT_REQUIRED')
added
77581a18c97bcb83abd5d048994a064fc18cfaa55093049187349c8ebaa77a72
self.assertEqual|test_ca_certs_default_cert_required|from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.pack...
null
null
null
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
316
8
self.assertEqual
test_cleanup_on_extreme_connection_error
from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import Cert...
new_pool_size)
added
6ff7b6a550062a925bb916ddfdbe5ea293734145a3651ec623ddea5360894e5e
self.assertEqual|test_cleanup_on_extreme_connection_error|from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib from urllib3.util.timeout import Timeout from urllib3...
null
null
null
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
363
16
self.assertEqual
test_connection_cleanup_on_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
pool.pool.qsize())
modified
17aadd2943b90aa52ddac13cb1d66c0feca9b31bbdd1908044faf7de452edaa2
self.assertEqual|test_connection_cleanup_on_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( Ma...
pool.pool.qsize())
363
16
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
638
8
self.assertTrue
test_headers
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
b'For The Proxy: YEAH!\r\n' in r.data)
added
8b247b3096928aae18d1d778d9acd36537e4260f9c74103b60af2ef4a7cb89b0
self.assertTrue|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Con...
null
null
null
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
974
8
self.assertEqual
test_response_headers_are_returned_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
actual_response_headers)
added
02b371134da9a8369e2a11e5d43c44f3421f3bb4e53b4f1662714a37fdeba9cb
self.assertEqual|test_response_headers_are_returned_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.excep...
null
null
null
urllib3/urllib3
train
178
08f0bb994ac93c81a11b558fe6ce556ea30977c9
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,034
8
self.assertEqual
test_chunked_head_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, Connect...
list(r.stream()))
added
c0602c8d027ab25a6aa57412df7d6cbfa6f43dff0c111ad30f1bd7566130005d
self.assertEqual|test_chunked_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( M...
null
null
null
urllib3/urllib3
train
179
29491230603c7b55fc4fc8a3fbfcbbd179b7a8b6
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
82
12
self.assertFalse
test_same_host
from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostna...
c.is_same_host(a))
modified
bd983f358368f8495583794b3fba21166eb72c226f7644e57440e342bb54d0d9
self.assertFalse|test_same_host|from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.packages.ss...
c.is_same_host(a))
82
12
urllib3/urllib3
train
179
29491230603c7b55fc4fc8a3fbfcbbd179b7a8b6
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
278
8
self.assertRaises
test_contextmanager
from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostna...
ClosedPoolError)
modified
d658ee2306bbdb90a98f9168af131a147a53f40324e0bdb7bad1d99c8f1b85d7
self.assertRaises|test_contextmanager|from __future__ import absolute_import import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.packa...
ClosedPoolError)
278
8