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
134
47d809127103bb4a0492fcea3c960b6097968770
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
228
8
assert
test_io_readinto
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
barr
added
cfe0ae31c48b25ede872a834d966a4848b432f8228cd01c6452375954efb3025
assert|test_io_readinto|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compre...
null
null
null
urllib3/urllib3
train
134
47d809127103bb4a0492fcea3c960b6097968770
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
252
8
self.assertEqual
test_streaming_tell
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
resp.tell())
modified
0f75abeff928ff0e14221b0ad23c045a99748493557e3fa2d03bb25d4c45ca03
self.assertEqual|test_streaming_tell|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, n...
resp.tell())
252
8
urllib3/urllib3
train
134
47d809127103bb4a0492fcea3c960b6097968770
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
432
12
self.assertListEqual
test_mock_transfer_encoding_chunked_custom_read
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
response)
added
473921e32afe83bb2e04f0dc6cea704f6eb81a2874ffea6cbd4c4e6e2d406536
self.assertListEqual|test_mock_transfer_encoding_chunked_custom_read|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b6...
null
null
null
urllib3/urllib3
train
135
3b27758a0c4a36c7ae045cba729970aad2941d6b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
61
8
self.assertEqual
test_post_url
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)
modified
91d058392eec46ab668b5530b1ebdae5aaffd126b5f6a6b5747b3d465c15b562
self.assertEqual|test_post_url|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...
r.data)
59
8
urllib3/urllib3
train
135
3b27758a0c4a36c7ae045cba729970aad2941d6b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
65
8
self.assertEqual
test_urlopen_put
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)
modified
6630d0a3cadcaf6fcfbabd0f7c80561e5f863df52333c6f73cad8801f088525f
self.assertEqual|test_urlopen_put|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, IN...
r.data)
63
8
urllib3/urllib3
train
135
3b27758a0c4a36c7ae045cba729970aad2941d6b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
179
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)
modified
8231e97855c1917406e3380a6fd7f284412aa489e2b374097ec361bdcd379a68
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...
using_nagle)
177
8
urllib3/urllib3
train
135
3b27758a0c4a36c7ae045cba729970aad2941d6b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
479
8
self.assertRaises
test_bad_decode
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...
DecodeError)
modified
7acf50ef19bb1440b0b8a6d7459cb38aa7271514995dc5395279ea74c1cb62d8
self.assertRaises|test_bad_decode|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, IN...
DecodeError)
477
8
urllib3/urllib3
train
136
1296ef27e24bae243276409d5a3506f0b9f50fca
train
test/test_no_ssl.py
train
urllib3/urllib3:test/test_no_ssl.py
74
8
assert
""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys import unittest class ImportBlocker(object): """ Block Imports To be placed on ``sys.meta_path``. This e...
ssl_blocker
added
756deec566e3709c13ded7375b0925b80d9fab73a3c8c19064bf18c1fc26e7af
assert||""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys import unittest class ImportBlocker(object): """ Block Imports To be placed on ``sys.meta_path``. This ensures th...
null
null
null
urllib3/urllib3
train
136
1296ef27e24bae243276409d5a3506f0b9f50fca
train
test/test_no_ssl.py
train
urllib3/urllib3:test/test_no_ssl.py
86
8
self.assertRaises
test_cannot_import_ssl
""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys import unittest class ImportBlocker(object): """ Block Imports To be placed on ``sys.meta_path``. This e...
ImportError)
added
e3036c07fd759dbfc285a92ee3e29c7d05cc150e6b20c12ae6542a907a970fcb
self.assertRaises|test_cannot_import_ssl|""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys import unittest class ImportBlocker(object): """ Block Imports To be placed on `...
null
null
null
urllib3/urllib3
train
136
1296ef27e24bae243276409d5a3506f0b9f50fca
train
test/with_dummyserver/test_no_ssl.py
test
urllib3/urllib3:test/with_dummyserver/test_no_ssl.py
18
8
self.assertEqual
test_simple
""" Test connections without the builtin ssl module Note: Import urllib3 inside the test functions to get the importblocker to work """ from ..test_no_ssl import TestWithoutSSL from dummyserver.testcase import ( HTTPDummyServerTestCase, HTTPSDummyServerTestCase) class TestHTTPWithoutSSL(HTTPDummyServerTestC...
r.data)
added
15408e23473c66a4c77c759f43852cab4826e81bca4fd08851cd6b94e45a7170
self.assertEqual|test_simple|""" Test connections without the builtin ssl module Note: Import urllib3 inside the test functions to get the importblocker to work """ from ..test_no_ssl import TestWithoutSSL from dummyserver.testcase import ( HTTPDummyServerTestCase, HTTPSDummyServerTestCase) class TestHTTPWithoutSSL(HTT...
null
null
null
urllib3/urllib3
train
136
1296ef27e24bae243276409d5a3506f0b9f50fca
train
test/with_dummyserver/test_no_ssl.py
test
urllib3/urllib3:test/with_dummyserver/test_no_ssl.py
29
12
self.assertTrue
test_simple
""" Test connections without the builtin ssl module Note: Import urllib3 inside the test functions to get the importblocker to work """ from ..test_no_ssl import TestWithoutSSL from dummyserver.testcase import ( HTTPDummyServerTestCase, HTTPSDummyServerTestCase) class TestHTTPWithoutSSL(HTTPDummyServerTestC...
'SSL module is not available' in str(e))
added
cd88bacfb1103624184309b7e4b9ca94846a099cc89646f030ceced3f8953bd2
self.assertTrue|test_simple|""" Test connections without the builtin ssl module Note: Import urllib3 inside the test functions to get the importblocker to work """ from ..test_no_ssl import TestWithoutSSL from dummyserver.testcase import ( HTTPDummyServerTestCase, HTTPSDummyServerTestCase) class TestHTTPWithoutSSL(HTTP...
null
null
null
urllib3/urllib3
train
137
7b82da0fa3a13514d11a863e379e7541d0ec46ef
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
455
12
self.assertListEqual
test_mock_transfer_encoding_chunked_custom_read
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
response)
added
5df72a4384ec67c7d6e1912d6db6b719bbf8ccd29048554b36ff909eaddd5288
self.assertListEqual|test_mock_transfer_encoding_chunked_custom_read|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b6...
null
null
null
urllib3/urllib3
train
137
7b82da0fa3a13514d11a863e379e7541d0ec46ef
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
480
8
self.assertRaises
test_read_not_chunked_response_as_chunks
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
ResponseNotChunked)
added
0580999be164c480f7bb4f4d4ccfd67c2198e332bbf4a4e17ad1d7f842d56226
self.assertRaises|test_read_not_chunked_response_as_chunks|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # ...
null
null
null
urllib3/urllib3
train
137
7b82da0fa3a13514d11a863e379e7541d0ec46ef
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
490
8
self.assertRaises
test_invalid_chunks
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
httplib.IncompleteRead)
added
a3352a2d973672d07dc928b49f8b433e82a80b07264ecadb4eb528d46c7890bb
self.assertRaises|test_invalid_chunks|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, ...
null
null
null
urllib3/urllib3
train
137
7b82da0fa3a13514d11a863e379e7541d0ec46ef
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
501
12
self.assertListEqual
test_chunked_response_without_crlf_on_end
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-compressible) pay...
list(resp.stream()))
added
7b9204d7680297745fb0e45839c5327f30214e76ae47e8d58ca487fd66a9cc0e
self.assertListEqual|test_chunked_response_without_crlf_on_end|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decod...
null
null
null
urllib3/urllib3
train
138
95cf4524c9e02e505e11797380f697396ca5191f
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
648
8
self.assertRaises
test_disabled_retry
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...
ProtocolError)
added
4265c39abebc8181d6d151aa71c15dafa0fc05e2934d7b164ccc63b06d23901f
self.assertRaises|test_disabled_retry|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...
null
null
null
urllib3/urllib3
train
138
95cf4524c9e02e505e11797380f697396ca5191f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
49
8
self.assertEqual
test_multi_setcookie
# 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, ReadTim...
['foo=1', 'bar=1'])
modified
73d2639fc35b4bb6bb6085aaa0872cb2421df4d65033e806b3b4482616a3e758
self.assertEqual|test_multi_setcookie|# 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...
['foo=1', 'bar=1'])
47
8
urllib3/urllib3
train
138
95cf4524c9e02e505e11797380f697396ca5191f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
123
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, ReadTim...
MaxRetryError)
modified
27cd2a8465cc38826c65f3e24c1e7fcd1a072652379b0e818899d558beb0d855
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)
121
8
urllib3/urllib3
train
138
95cf4524c9e02e505e11797380f697396ca5191f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
226
12
self.assertRaises
test_delayed_body_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, ReadTim...
ReadTimeoutError)
modified
b3b96e45d6db8aea8695a28c45f10c76158fed39c525be00d885f710488fbac3
self.assertRaises|test_delayed_body_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 ( MaxRetryEr...
ReadTimeoutError)
224
12
urllib3/urllib3
train
138
95cf4524c9e02e505e11797380f697396ca5191f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
618
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, ReadTim...
dict(r.headers.items()))
added
a50ae9ac625fd4ac71cb178c11d2d475dbe4495690168b91a8044a5f824ac2a7
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
139
d9aa58ca764e8a6fc2a452099e757ee0f96a2571
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
635
16
self.assertEqual
test_stream_keepalive
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'123')
added
e6a53d58755ca4040821b5662164f19490025ce65e4b64963fd1fdb99668cbd2
self.assertEqual|test_stream_keepalive|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_ADDRESSE...
null
null
null
urllib3/urllib3
train
139
d9aa58ca764e8a6fc2a452099e757ee0f96a2571
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
667
8
self.assertRaises
test_disabled_retry
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...
ProtocolError)
added
cedacce9c4e1e98cc1e8beb112e8e3acfd2ee282ec876a19b932ce43e0d320ee
self.assertRaises|test_disabled_retry|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...
null
null
null
urllib3/urllib3
train
140
22a9713fab2ed831204711906a974c3beba3319e
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
634
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, ReadTim...
list(r.stream()))
added
202a1c052583544159ff74f0faf392d71a1770556910bcad6e6690690600dea4
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
140
22a9713fab2ed831204711906a974c3beba3319e
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
648
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, ReadTim...
list(r.stream()))
added
bcbe13d7cac9fe3ab1ddec2771d76b4ae0fa03fc25cddd3da1fc7a30c3a4c141
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
141
4bddf26a6264607acb3d3dbf647ab12692325914
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
648
8
self.assertEqual
test_chunked_gzip
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...
response.read())
added
e5fcc30b49cb627bb35c8051bd027eb6498df01707a24476533066593106228f
self.assertEqual|test_chunked_gzip|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
141
4bddf26a6264607acb3d3dbf647ab12692325914
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
677
8
self.assertRaises
test_disabled_retry
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...
ProtocolError)
added
901da04fd8a25f4aeb498db69538a6890ded64e9237095639e2333dc608dda87
self.assertRaises|test_disabled_retry|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...
null
null
null
urllib3/urllib3
train
141
4bddf26a6264607acb3d3dbf647ab12692325914
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
61
8
self.assertEqual
test_set_ssl_version_to_tlsv1
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_...
r.data)
added
46318e375672013173757b447ffd9ca6e3671000c7eebad344a64bb9c60a7571
self.assertEqual|test_set_ssl_version_to_tlsv1|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_S...
null
null
null
urllib3/urllib3
train
141
4bddf26a6264607acb3d3dbf647ab12692325914
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
102
12
self.assertTrue
test_verified_with_bad_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 from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
'certificate verify failed' in str(e))
added
55eacc4a4b6a4285e0afdd3ed5f6bb775b984a34b859c9af0750ae0bddd9cfd9
self.assertTrue|test_verified_with_bad_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 from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_...
null
null
null
urllib3/urllib3
train
141
4bddf26a6264607acb3d3dbf647ab12692325914
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
127
8
self.assertRaises
test_no_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_...
SSLError)
added
8df090d976d28299730916f15c8e2bf8fbe4c097840fc428e6d39737895112cb
self.assertRaises|test_no_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_SAN_...
null
null
null
urllib3/urllib3
train
141
4bddf26a6264607acb3d3dbf647ab12692325914
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
386
12
self.assertEqual
test_ssl_wrong_system_time
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_...
warning.category)
modified
8c34215d5761b0ea8daf491c9269859128fa6214abaff0ac584ca1515ebd97a5
self.assertEqual|test_ssl_wrong_system_time|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_...
warning.category)
384
12
urllib3/urllib3
train
142
74073791a3429d9b9f375563954f57f2181599dc
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
269
12
self.assertTrue
test_invalid_timeouts
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, parse_url, ...
'less than' in str(e))
modified
7360d13be35e9ab34788a217501c8e8384ca24e46440f1d7a9f6b739801f5328
self.assertTrue|test_invalid_timeouts|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 im...
'less than' in str(e))
268
12
urllib3/urllib3
train
142
74073791a3429d9b9f375563954f57f2181599dc
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
347
8
self.assertEqual
test_resolve_cert_reqs
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, parse_url, ...
ssl.CERT_REQUIRED)
modified
efd8d2a7ea97d0a1b25f17a4625b0f467172f9e10656b033cfe90410b731fa8e
self.assertEqual|test_resolve_cert_reqs|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 ...
ssl.CERT_REQUIRED)
346
8
urllib3/urllib3
train
142
74073791a3429d9b9f375563954f57f2181599dc
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
373
8
self.assertTrue
test_is_fp_closed_object_has_fp
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, parse_url, ...
not is_fp_closed(FpFile()))
modified
e2e91ae9462c9ff3ed4b922b0edadfb4d3f854aaafa247bec7ac2c67390e81c6
self.assertTrue|test_is_fp_closed_object_has_fp|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.u...
not is_fp_closed(FpFile()))
372
8
urllib3/urllib3
train
142
74073791a3429d9b9f375563954f57f2181599dc
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
395
8
assert_*
test_ssl_wrap_socket_loads_verify_locations
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, parse_url, ...
'/path/to/pem')
modified
5114472a75ba7258b31f53ee92eb8497ecf38e3765d5587bac36e647ab0f0f15
assert_*|test_ssl_wrap_socket_loads_verify_locations|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...
'/path/to/pem')
394
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
61
8
self.assertEqual
test_post_url
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)
modified
0fad0429166d201c977dea951439717dfd30a897598b2de41dc3fea9de39cc5b
self.assertEqual|test_post_url|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...
r.data)
61
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
179
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)
modified
277c33a5e2ad62fdb82fa213289f0602ea60f4eeb3b4f42d93f0009847eee72f
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...
using_nagle)
179
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
375
12
self.assertTrue
test_bad_connect
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...
isinstance(e.reason, ProtocolError))
modified
148c893226b891be14ee79aed497186e9fba52315b7895e050d4d903b4ffd03b
self.assertTrue|test_bad_connect|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, INV...
isinstance(e.reason, ProtocolError))
375
12
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
516
8
self.assertEqual
test_partial_response
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...
resp_data[5:])
modified
1e7df486278e2d87e388f4da8ce4f481ec9c53086103371f70fcb0c0669922b4
self.assertEqual|test_partial_response|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_ADDRESSE...
resp_data[5:])
516
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
48
8
self.assertEqual
test_redirect_twice
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!')
modified
8c83cde7690e0f431f80fe970773cffa80aaa9ed0e2e203efa8cffd059847578
self.assertEqual|test_redirect_twice|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_s...
b'Dummy server!')
46
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
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
08b62e8df33e66151833b274742019fb959043d2c0c36922b67f5036931d4c0c
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)
80
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
128
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!')
modified
e5dad3e579af05a3247391cd0ee8780ddd8b6870212dbc561ba19f76e51f2087
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!')
126
8
urllib3/urllib3
train
143
4180af1870f9fdc4f7ef1f5f8056ff82f6faac3a
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
144
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
5ccdef2e9911b8dda1fce25fbd94451123aa998a6c5b52e9614221407e1101da
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')
142
8
urllib3/urllib3
train
144
f1a8e62792cfee561ed9671d57b64dd73363148e
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
42
8
self.assertRaises
test_invalid_scheme
import unittest from urllib3.poolmanager import ProxyManager class TestProxyManager(unittest.TestCase): def test_proxy_headers(self): p = ProxyManager('http://something:1234') url = 'http://pypi.python.org/test' # Verify default headers default_headers = {'Accept': '*/*', ...
AssertionError)
added
59090a40fee5923ef300de032cbad1b5122a40df9bad29652b18bc6b2867d77e
self.assertRaises|test_invalid_scheme|import unittest from urllib3.poolmanager import ProxyManager class TestProxyManager(unittest.TestCase): def test_proxy_headers(self): p = ProxyManager('http://something:1234') url = 'http://pypi.python.org/test' # Verify default headers default_headers = {'Accept': '*/*', 'Host': '...
null
null
null
urllib3/urllib3
train
144
f1a8e62792cfee561ed9671d57b64dd73363148e
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
43
8
self.assertRaises
test_invalid_scheme
import unittest from urllib3.poolmanager import ProxyManager class TestProxyManager(unittest.TestCase): def test_proxy_headers(self): p = ProxyManager('http://something:1234') url = 'http://pypi.python.org/test' # Verify default headers default_headers = {'Accept': '*/*', ...
ValueError)
added
e0f0beb14b3381ee379766f8e5645cb200213e394c3fde16c2d9cdf4b05f798c
self.assertRaises|test_invalid_scheme|import unittest from urllib3.poolmanager import ProxyManager class TestProxyManager(unittest.TestCase): def test_proxy_headers(self): p = ProxyManager('http://something:1234') url = 'http://pypi.python.org/test' # Verify default headers default_headers = {'Accept': '*/*', 'Host': '...
null
null
null
urllib3/urllib3
train
145
cdef19e9a32effda30e9e27bba64cb5be4cfb8a3
train
test/appengine/test_urlfetch.py
train
urllib3/urllib3:test/appengine/test_urlfetch.py
25
12
self.assertEqual
test_urlfetch_called_with_http
from . import AppEngineSandboxTest, MockResponse from mock import patch from nose.plugins.skip import SkipTest from ..test_no_ssl import TestWithoutSSL class TestHTTP(AppEngineSandboxTest, TestWithoutSSL): nosegae_urlfetch = True def test_urlfetch_called_with_http(self): """ Check that URLFe...
r.data)
added
251f98f3541d7f5b0f3519cb62c4261ba740832c5a688598750d899531b2b3b2
self.assertEqual|test_urlfetch_called_with_http|from . import AppEngineSandboxTest, MockResponse from mock import patch from nose.plugins.skip import SkipTest from ..test_no_ssl import TestWithoutSSL class TestHTTP(AppEngineSandboxTest, TestWithoutSSL): nosegae_urlfetch = True def test_urlfetch_called_with_http(self): ...
null
null
null
urllib3/urllib3
train
145
cdef19e9a32effda30e9e27bba64cb5be4cfb8a3
train
test/appengine/test_urlfetch.py
train
urllib3/urllib3:test/appengine/test_urlfetch.py
48
12
self.assertEqual
test_urlfetch_called_with_https
from . import AppEngineSandboxTest, MockResponse from mock import patch from nose.plugins.skip import SkipTest from ..test_no_ssl import TestWithoutSSL class TestHTTP(AppEngineSandboxTest, TestWithoutSSL): nosegae_urlfetch = True def test_urlfetch_called_with_http(self): """ Check that URLFe...
r.data)
added
785db73f1c2acab99a8f89c26190537a685381cb9006c42ddfacfc418c98eaee
self.assertEqual|test_urlfetch_called_with_https|from . import AppEngineSandboxTest, MockResponse from mock import patch from nose.plugins.skip import SkipTest from ..test_no_ssl import TestWithoutSSL class TestHTTP(AppEngineSandboxTest, TestWithoutSSL): nosegae_urlfetch = True def test_urlfetch_called_with_http(self):...
null
null
null
urllib3/urllib3
train
145
cdef19e9a32effda30e9e27bba64cb5be4cfb8a3
train
test/test_no_ssl.py
train
urllib3/urllib3:test/test_no_ssl.py
86
8
self.assertRaises
test_cannot_import_ssl
""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys import unittest class ImportBlocker(object): """ Block Imports To be placed on ``sys.meta_path``. This e...
ImportError)
modified
61a0e962eea3cce2decef06c40da833b18e1de203943de547c74b8713b8dee71
self.assertRaises|test_cannot_import_ssl|""" Test what happens if Python was built without SSL * Everything that does not involve HTTPS should still work * HTTPS requests must fail with an error that points at the ssl module """ import sys import unittest class ImportBlocker(object): """ Block Imports To be placed on `...
ImportError)
86
8
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
657
12
self.assertEqual
test_cleanup_on_connection_error
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...
poolsize)
added
d9b368af19d9a8e211223abb073e96d10cc86a1c04ccc54c166e6e865c9caf3c
self.assertEqual|test_cleanup_on_connection_error|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_SOUR...
null
null
null
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
662
12
self.assertRaises
test_cleanup_on_connection_error
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...
MaxRetryError)
added
d1b3da596898b4b57d156b4fdffc64865dd8702fcac980c71303d9904c0e4e61
self.assertRaises|test_cleanup_on_connection_error|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_SOU...
null
null
null
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
669
12
self.assertEqual
test_cleanup_on_connection_error
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...
http.pool.maxsize)
added
c3b6e6e69e41b20fa9b333662ed3ff97c329cbbebd1d9b93aa510e385508e197
self.assertEqual|test_cleanup_on_connection_error|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_SOUR...
null
null
null
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
698
8
self.assertRaises
test_disabled_retry
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...
ProtocolError)
added
b76da34ff5467c1d61949d620a5ecba086ba4a7c163a07eb1f71a3884c4ba7d1
self.assertRaises|test_disabled_retry|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...
null
null
null
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
124
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, ReadTim...
http.pool.maxsize)
added
cbb0c312db15684fcd59ba3286aa8de47cc73d13d8e0adf277f747cbebc8ac3c
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...
null
null
null
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
259
8
self.assertRaises
test_incomplete_response
# 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, ReadTim...
ProtocolError)
modified
9aef74bac3b6632beefb9719bc767b1aa49abb1573689361cafa52ca021e1542
self.assertRaises|test_incomplete_response|# 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, P...
ProtocolError)
256
8
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
565
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, ReadTim...
SSLError)
modified
90589f182e50f63a01592fb02d9323ba78dcc77133a2b9da3c73924827855e18
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)
562
8
urllib3/urllib3
train
146
254c0148adf2cc176a0f7c43a24825884d3445bc
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
621
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, ReadTim...
dict(r.headers.items()))
modified
4823c6bb4800c957effa3a65b86adf6879229039fbd71b26cfec71c48bdbac33
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()))
618
8
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
228
8
self.assertEqual
test_absolute_url
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolError, HostChanged...
c._absolute_url('path?query=foo'))
added
3635d9897fc6b027103c24b74b183a13892191e01e21b0cfd21736982bec69d1
self.assertEqual|test_absolute_url|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolError, H...
null
null
null
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/test_exceptions.py
val
urllib3/urllib3:test/test_exceptions.py
19
8
assert
test_exceptions
import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from ...
self.verify_pickling(MaxRetryError(None, None, None))
modified
fbac62cee349c790a62efccef717710140f451a065ab3d71daea2b9b26736f28
assert|test_exceptions|import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from urllib3.connectionpool import HTTPConnectionPool class TestPickle(unittest...
self.verify_pickling(MaxRetryError(None, None, None))
19
8
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/test_exceptions.py
val
urllib3/urllib3:test/test_exceptions.py
39
8
assert
test_exceptions_with_objects
import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from ...
self.verify_pickling( EmptyPoolError(HTTPConnectionPool('localhost'), None))
modified
0d9bb02edd5d59558bc5cb05b92167b0a8329229e0586eca709247a755056a6d
assert|test_exceptions_with_objects|import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from urllib3.connectionpool import HTTPConnectionPool class TestPi...
self.verify_pickling( EmptyPoolError(HTTPConnectionPool('localhost'), None))
39
8
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/test_exceptions.py
val
urllib3/urllib3:test/test_exceptions.py
53
8
self.assertTrue
test_header_parsing_errors
import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from ...
'defects' in str(hpe))
added
5ef6dbc2ae62b907a1b2eb843777a8812b1dcfc7e63f8792703abfaa95fcef3e
self.assertTrue|test_header_parsing_errors|import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from urllib3.connectionpool import HTTPConnectionPool class...
null
null
null
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/test_exceptions.py
val
urllib3/urllib3:test/test_exceptions.py
54
8
self.assertTrue
test_header_parsing_errors
import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from ...
'unparsed_data' in str(hpe))
added
e6a757fec7d4c4e8278e7432f4868cebf2b73835394bc0ee8f2eb64636d63d51
self.assertTrue|test_header_parsing_errors|import unittest import pickle from urllib3.exceptions import (HTTPError, MaxRetryError, LocationParseError, ClosedPoolError, EmptyPoolError, HostChangedError, ReadTimeoutError, ConnectTimeoutError, HeaderParsingError) from urllib3.connectionpool import HTTPConnectionPool class...
null
null
null
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
207
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, ReadTim...
b'Response 2')
added
0cc651269db26b2a18b4446d3b1850f65a282cacbe84b0cdc43116f350bbd84f
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...
null
null
null
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
410
8
self.assertRaises
test_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, ReadTim...
ProxyError)
added
63108552aff44b0eaefa55c3fa3a0c189fd21f9bda0719fd9b0e32943fead0f8
self.assertRaises|test_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, R...
null
null
null
urllib3/urllib3
train
147
e79025d31bb953153e9c183b01aeb1727b5c18e8
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
703
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, ReadTim...
list(r.stream()))
added
141c8478e74f4fbb326f17cffc55e29f28361f3a2e9bf03e3c42f1407ed5c1f3
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
148
c7c829679a78ee31a0d0ecfd279581a537c07eb7
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
235
12
self.assertEqual
test_ca_certs_default_cert_required
import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolError, HostChanged...
'CERT_REQUIRED')
added
de0fda0a59033ac58781f70de8420ec48d340f9d98fa46b0c7bf55515e0168ff
self.assertEqual|test_ca_certs_default_cert_required|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError,...
null
null
null
urllib3/urllib3
train
148
c7c829679a78ee31a0d0ecfd279581a537c07eb7
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
425
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')
added
dc9416115fc9acbc67ccbdc641b8607b7c1143f63474510971c20968fbce2213
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...
null
null
null
urllib3/urllib3
train
148
c7c829679a78ee31a0d0ecfd279581a537c07eb7
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
440
12
self.assertTrue
test_warning_for_certs_without_a_san
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_...
warn.called)
added
e6e1e6ee0d3c8f4ef60a42395f18f7f747682a683284bf9555c8b25fa5ab9c6a
self.assertTrue|test_warning_for_certs_without_a_san|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...
null
null
null
urllib3/urllib3
train
149
7dd8b9226d2de1c41a385cc2441358ceb44f21bd
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
152
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
1e4ab6724d7cd22b1fb7afb08aaf135e05149b6372e20c3ed518e7eec7cda5fb
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')
149
8
urllib3/urllib3
train
149
7dd8b9226d2de1c41a385cc2441358ceb44f21bd
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')
added
0918c1e2815d0b0e2066ddd5e5c77cbe44d2b75c9259d5456d30e578ddc8941c
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
150
ac08c1bcbcbc52cd3ab19f003db1c6ed084e8f7b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
364
12
self.assertRaises
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, ReadTim...
ProtocolError)
added
db1ecb07b8232647282f043b370bc2b652cd35aee847971a64d93fe01338d000
self.assertRaises|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.excepti...
null
null
null
urllib3/urllib3
train
150
ac08c1bcbcbc52cd3ab19f003db1c6ed084e8f7b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
658
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, ReadTim...
ProtocolError)
added
a6067125adecc8bd3e691d5996491d05cc8f69fb624f5c15a5d00960d91a69b9
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
150
ac08c1bcbcbc52cd3ab19f003db1c6ed084e8f7b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
668
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, ReadTim...
ProtocolError)
added
d0eb02da112264d6dafa3a755c811362c4001f6fe0546f2657b677e3372a7614
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
150
ac08c1bcbcbc52cd3ab19f003db1c6ed084e8f7b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
760
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, ReadTim...
list(r.stream()))
added
178f16f3c9bb9fa4f521f0f68e8609bdf35e2ed822f879982e6581e7f91f1298
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
151
8d2ae4d2b2efaa0c3e7387d3f73e3d65177a34e3
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
52
8
self.assertRaises
test_proxy_conn_fail
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.poolmanager import proxy_from_ur...
MaxRetryError)
modified
74a3bca601de1f1f0bc98ad95697428a1941b092e439cba34adcfac3beac066f
self.assertRaises|test_proxy_conn_fail|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....
MaxRetryError)
52
8
urllib3/urllib3
train
151
8d2ae4d2b2efaa0c3e7387d3f73e3d65177a34e3
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
91
8
self.assertEqual
test_proxy_verified
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.poolmanager import proxy_from_ur...
VerifiedHTTPSConnection)
modified
87a18bcdac31dc213d9bdadfff424aec6694ad26613bba8fd084c08f055c6336
self.assertEqual|test_proxy_verified|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.po...
VerifiedHTTPSConnection)
91
8
urllib3/urllib3
train
151
8d2ae4d2b2efaa0c3e7387d3f73e3d65177a34e3
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
117
8
self.assertEqual
test_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.poolmanager import proxy_from_ur...
b'Dummy server!')
modified
6d90691288da380eb2ba903c204847984976cf41b04e4d66428078d58e6ba443
self.assertEqual|test_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.poolmana...
b'Dummy server!')
117
8
urllib3/urllib3
train
151
8d2ae4d2b2efaa0c3e7387d3f73e3d65177a34e3
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
135
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.poolmanager import proxy_from_ur...
self.http_host_alt)
modified
190b5cd5ca4a0701bf9ab3d72391dda5ac26f65301c655e5437ba997ba169080
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)
135
8
urllib3/urllib3
train
152
9f6ec3acebbaab7b432dc9cd92e208d42236eb01
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
35
8
self.assertEqual
test_getheaders
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A known random (i.e, not-too-co...
headers)
modified
901ec324e214767e2e97352e51cbb24d266e8f50b5c670ea2c094f6bfaed8fe4
self.assertEqual|test_getheaders|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A known ran...
headers)
35
8
urllib3/urllib3
train
152
9f6ec3acebbaab7b432dc9cd92e208d42236eb01
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
191
8
self.assertRaises
test_io
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A known random (i.e, not-too-co...
IOError)
modified
b38a6bfa4736eb7afc8c40e4bd496177b31411d01c97d045b3a22f4a6eba1ca3
self.assertRaises|test_io|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A known random (i....
IOError)
191
8
urllib3/urllib3
train
152
9f6ec3acebbaab7b432dc9cd92e208d42236eb01
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
373
8
self.assertRaises
test_deflate2_streaming
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A known random (i.e, not-too-co...
StopIteration)
modified
5d87d70f66812bc1d8932b9c65ae680df7998b689caf317badb8b3a778b627ad
self.assertRaises|test_deflate2_streaming|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A ...
StopIteration)
373
8
urllib3/urllib3
train
152
9f6ec3acebbaab7b432dc9cd92e208d42236eb01
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
490
8
self.assertRaises
test_invalid_chunks
import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A known random (i.e, not-too-co...
ProtocolError)
modified
a4bd6ac6b35029d1c6bce5ea4b216a419a4748003f73a32c2f5b479d0a815ad2
self.assertRaises|test_invalid_chunks|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked, ProtocolError from base64 import b64decode # A know...
httplib.IncompleteRead)
490
8
urllib3/urllib3
train
153
00470750c8fe9d21e246c4a5f02369790269031d
train
test/contrib/test_gae_manager.py
train
urllib3/urllib3:test/contrib/test_gae_manager.py
79
8
self.assertRaises
test_exceptions
import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngineManager, AppEngineP...
ProtocolError)
added
773bd6c38a76bc03e841a162caf0629a4e0fc4866afb317b9e1ae7c9f66150d2
self.assertRaises|test_exceptions|import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngine...
null
null
null
urllib3/urllib3
train
153
00470750c8fe9d21e246c4a5f02369790269031d
train
test/contrib/test_gae_manager.py
train
urllib3/urllib3:test/contrib/test_gae_manager.py
93
8
self.assertRaises
test_exceptions
import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngineManager, AppEngineP...
AppEnginePlatformError)
added
13d2fad9ba8c3c0e81cc649263577d31172990fe16552bd61c8f79c710805b24
self.assertRaises|test_exceptions|import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngine...
null
null
null
urllib3/urllib3
train
153
00470750c8fe9d21e246c4a5f02369790269031d
train
test/contrib/test_gae_manager.py
train
urllib3/urllib3:test/contrib/test_gae_manager.py
102
8
self.assertRaises
test_exceptions
import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngineManager, AppEngineP...
AppEnginePlatformError)
added
e7f7ef0937958b86c20761b7aa0811d68b1c1b947e5d29239a31b59fa67dba14
self.assertRaises|test_exceptions|import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngine...
null
null
null
urllib3/urllib3
train
153
00470750c8fe9d21e246c4a5f02369790269031d
train
test/contrib/test_gae_manager.py
train
urllib3/urllib3:test/contrib/test_gae_manager.py
153
8
self.assertRaises
test_exceptions
import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngineManager, AppEngineP...
SSLError)
added
a10af9605d074cdb27bddf109515a2aed735629147392092e7ebc232b8d201f6
self.assertRaises|test_exceptions|import unittest from dummyserver.testcase import HTTPSDummyServerTestCase from nose.plugins.skip import SkipTest try: from google.appengine.api import urlfetch (urlfetch) except ImportError: raise SkipTest("App Engine SDK not available.") from urllib3.contrib.appengine import AppEngine...
null
null
null
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
305
8
self.assertEqual
test_dict_conversion
import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) f...
dict(HTTPHeaderDict(hdict)))
added
cebdf67d284ba819e98b94bf79b9f164365502aa378816f60e3eee2b5d817079
self.assertEqual|test_dict_conversion|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container...
null
null
null
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
312
8
self.assertRaises
test_string_enforcement
import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) f...
Exception)
modified
cad10097f74b5203eaa6c1dae89d8522bc14a1617362bc6344e921ff743bbaed
self.assertRaises|test_string_enforcement|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Conta...
Exception)
311
8
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
339
8
self.assertEqual
test_from_httplib_py2
import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) f...
'asdf, bla')
modified
89d260d2cae8289e6b679488c5e5b1ec398ce50ee806e11e541d40ede45aff20
self.assertEqual|test_from_httplib_py2|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Containe...
'asdf, bla')
338
8
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
46
8
self.assertEqual
test_nagle_proxy
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...
"Expected TCP_NODELAY for proxies to be set " "to zero, instead was %s" % tcp_nodelay_setting)
modified
769ac606681906d7ebe730103ae878ab1b9360720f98a1ef3aaa56064d4af8fa
self.assertEqual|test_nagle_proxy|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._coll...
"Expected TCP_NODELAY for proxies to be set " "to zero, instead was %s" % tcp_nodelay_setting)
45
8
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
53
8
self.assertRaises
test_proxy_conn_fail
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...
MaxRetryError)
modified
2101700cedca01f4e0d66444c62bf042c073381dbb9545e40cdb2b66d298e722
self.assertRaises|test_proxy_conn_fail|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....
MaxRetryError)
52
8
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
118
8
self.assertEqual
test_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...
b'Dummy server!')
modified
44403c58262d427c14186519ace2b822510acc47240ed69b8f0baf9df92d04f6
self.assertEqual|test_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._collect...
b'Dummy server!')
117
8
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
334
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, ReadTim...
pool.pool.qsize())
modified
9ad4cc4cf14822058c596e7a34e6b0f3febf5cddfbe4c4204964f564e52363fd
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())
333
16
urllib3/urllib3
train
154
a76eb3bedf8cae7bb76c02889249ece6272c116f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
719
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, ReadTim...
parsed_headers)
added
3f3c1e199ae9e42a5592b3b74f02795728a15bbe3b659d6e5cc6c841c6ae99c3
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
155
7a826126bce7f7771a5db1ef1fb5811875ce8ab5
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
403
8
assert_*
test_ssl_wrap_socket_loads_certificate_directories
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, parse_url, ...
'/path/to/pems')
added
35c290ef4c89629094e3fa9bf8af0df91e9bddb83a62430ef06fab2103f5bede
assert_*|test_ssl_wrap_socket_loads_certificate_directories|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 fr...
null
null
null
urllib3/urllib3
train
155
7a826126bce7f7771a5db1ef1fb5811875ce8ab5
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
413
8
assert_*
test_ssl_wrap_socket_with_no_sni
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, parse_url, ...
socket)
added
81f11b822acba5104e542b9df9d6d2038a3c9d15a2823959feef89987d77bf7e
assert_*|test_ssl_wrap_socket_with_no_sni|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.ur...
null
null
null
urllib3/urllib3
train
155
7a826126bce7f7771a5db1ef1fb5811875ce8ab5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
100
16
self.assertTrue
test_ca_dir_verified
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_...
warn.called)
added
c0087395f4b573145a9d9f3243110977f2c8cb8829f716ab22cf5296e02f3b0a
self.assertTrue|test_ca_dir_verified|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
155
7a826126bce7f7771a5db1ef1fb5811875ce8ab5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
124
12
self.assertTrue
test_verified_with_bad_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 from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
'certificate verify failed' in str(e))
added
a17d06d97136a0274f09b1ba2181e582d861fbfd936ad0e63dfc70b52ed8393f
self.assertTrue|test_verified_with_bad_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 from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_...
null
null
null
urllib3/urllib3
train
155
7a826126bce7f7771a5db1ef1fb5811875ce8ab5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
281
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
9b8f797078d12e0861cf2d107a2d9c75ecef610628b194c89a60c76ed2f026e2
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
155
7a826126bce7f7771a5db1ef1fb5811875ce8ab5
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 from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_...
ReadTimeoutError)
added
9430caa0a7c14ab90472376372a3a6250f65b392a696959e4993d8563e97ad0a
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 from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, ...
null
null
null
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
459
8
self.assertEqual
test_post_with_urlencode
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...
urlencode(data))
added
a277577778549925a310fe0999620e9f01329ea39e050cd2d090181184a7c0cf
self.assertEqual|test_post_with_urlencode|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_ADDRE...
null
null
null
urllib3/urllib3
train
156
f9409436f83aeb79fbaf090181cd81b784f1b8ce
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
665
8
self.assertEqual
test_chunked_gzip
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...
response.read())
added
fa5c5fe52a7b908b3c9c46691a15665e40334bc4f4a9134ca2d48daaf60d0da2
self.assertEqual|test_chunked_gzip|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