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
351
fd2666e3f16c62c892e5dd9a5697f537de06628b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
665
8
assert
test_set_cert_default_cert_required
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM...
ssl.CERT_REQUIRED
modified
d37df4314c1b833d6a6c8a75c9f804e28b68812b90dcec1ab66b8d9ee7a47478
assert|test_set_cert_default_cert_required|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PE...
ssl.CERT_REQUIRED
667
8
urllib3/urllib3
train
352
9971e27e83a891ba7b832fa9e5d2f04bbcb1e65f
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
874
8
assert
test__iter__
# -*- coding: utf-8 -*- import re import socket import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, ProtocolError, InvalidHeader, ) f...
expected_stream
modified
5bf02348aa004f4b386c656cf9cbf2a279eabdbf6b80a6c3866de75c390daf2c
assert|test__iter__|# -*- coding: utf-8 -*- import re import socket import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, ProtocolError, InvalidHeader, ) f...
expected_stream
873
8
urllib3/urllib3
train
352
9971e27e83a891ba7b832fa9e5d2f04bbcb1e65f
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
895
8
assert
test__iter__decode_content
# -*- coding: utf-8 -*- import re import socket import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, ProtocolError, InvalidHeader, ) f...
data
modified
4587c054558378e72cc09d043ccc851497e63dae7a09b461a3f9098e97359abb
assert|test__iter__decode_content|# -*- coding: utf-8 -*- import re import socket import zlib from io import BytesIO, BufferedReader, TextIOWrapper import pytest import mock import six from urllib3.response import HTTPResponse, brotli from urllib3.exceptions import ( DecodeError, ResponseNotChunked, ProtocolError, Inva...
data
894
8
urllib3/urllib3
train
353
4903840bf36a05bcc8299f6553ff7a1816d4aa63
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
182
17
pytest.raises
test_client_encrypted_key_requires_password
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM...
MaxRetryError)
modified
3020f7d6b88b5406c3d7c655583f98d3e6b144a43e5972c862674607f4bde8a6
pytest.raises|test_client_encrypted_key_requires_password|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_...
MaxRetryError)
183
17
urllib3/urllib3
train
353
4903840bf36a05bcc8299f6553ff7a1816d4aa63
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
383
16
assert
test_ssl_unverified_with_ca_certs
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM...
InsecureRequestWarning
modified
80fd76d0239cfa696d0e869b7b133c95795b12171deffed6c0f0c189be7a266f
assert|test_ssl_unverified_with_ca_certs|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM,...
InsecureRequestWarning
384
16
urllib3/urllib3
train
353
4903840bf36a05bcc8299f6553ff7a1816d4aa63
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
458
16
assert
_test_request
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM...
isinstance(cm.value.reason, SSLError)
modified
dbdc76c5b63fb704a12f859f84ba2d0f54ebd31c9ff1425bd2ae9cf8404dfa13
assert|_test_request|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDI...
isinstance(cm.value.reason, SSLError)
459
16
urllib3/urllib3
train
353
4903840bf36a05bcc8299f6553ff7a1816d4aa63
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
637
16
assert
test_ssl_wrong_system_time
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM...
warning.category
modified
48f70f486e762d1ceef6b7c9853fdaac14efc5ed90bfd0d9aef0163ad755494f
assert|test_ssl_wrong_system_time|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT...
warning.category
638
16
urllib3/urllib3
train
354
6a15b1885a61b3ccf3db140e8256cd290b4762ea
train
test/contrib/test_securetransport.py
train
urllib3/urllib3:test/contrib/test_securetransport.py
52
13
pytest.raises
test_no_crash_with_empty_trust_bundle
# -*- coding: utf-8 -*- import contextlib import socket import ssl import pytest try: from urllib3.contrib.securetransport import WrappedSocket except ImportError: pass pytestmark = pytest.mark.skip() def setup_module(): try: from urllib3.contrib.securetransport import inject_into_urllib3 ...
ssl.SSLError)
modified
ec6c99790fed05e9a92efa7ab5128ff175d5d29d98aea3489346c167b4f445d6
pytest.raises|test_no_crash_with_empty_trust_bundle|# -*- coding: utf-8 -*- import contextlib import socket import ssl import pytest try: from urllib3.contrib.securetransport import WrappedSocket except ImportError: pass pytestmark = pytest.mark.skip() def setup_module(): try: from urllib3.contrib.securetransport impor...
ssl.SSLError)
50
13
urllib3/urllib3
train
354
6a15b1885a61b3ccf3db140e8256cd290b4762ea
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
182
12
assert
test_client_encrypted_key_requires_password
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
isinstance(e.value.reason, SSLError)
modified
76920bb846829c3a70896ee3173cc4dea8c7acb812f0ced4fbf3f7acf5a2aa4f
assert|test_client_encrypted_key_requires_password|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDI...
str(e.value)
185
12
urllib3/urllib3
train
354
6a15b1885a61b3ccf3db140e8256cd290b4762ea
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
282
12
assert
test_ca_dir_verified
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
VerifiedHTTPSConnection
added
0008ceee33a13fed9066661c404e8c022bfeb15dd4a40451811523b7bad0b5e3
assert|test_ca_dir_verified|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERME...
null
null
null
urllib3/urllib3
train
354
6a15b1885a61b3ccf3db140e8256cd290b4762ea
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
316
17
pytest.raises
test_verified_without_ca_certs
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
MaxRetryError)
added
0458e1be3f56258fe1c67b8f5741e1069a34e6c2cd3f9aa4c829faf23348c8a5
pytest.raises|test_verified_without_ca_certs|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PE...
null
null
null
urllib3/urllib3
train
354
6a15b1885a61b3ccf3db140e8256cd290b4762ea
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
513
17
pytest.raises
test_https_timeout
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
ConnectTimeoutError)
added
19003e33edf5ee40c6d4efbfb7f89fb1ba11cc08f7d569852fa3b14821439145
pytest.raises|test_https_timeout|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_IN...
null
null
null
urllib3/urllib3
train
355
d2a5a5920fffcc48e6141f4126c491343800d16a
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
115
12
assert
test_client_intermediate
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
subject["organizationalUnitName"].startswith("Testing cert")
modified
507c8bacd3d5892f52426603785e8f480129c9ac2ac5c3fc2a2f0d0bfad51b38
assert|test_client_intermediate|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INT...
subject["organizationalUnitName"].startswith("Testing cert")
116
12
urllib3/urllib3
train
355
d2a5a5920fffcc48e6141f4126c491343800d16a
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
347
16
assert
test_unverified_ssl
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
warn.called
modified
6b60c0ef50b3260ae40c3518b30f525c658e69650c00e571fb610b2f2b0fec33
assert|test_unverified_ssl|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMED...
warn.called
348
16
urllib3/urllib3
train
355
d2a5a5920fffcc48e6141f4126c491343800d16a
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
453
16
assert
_test_request
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
isinstance(cm.value.reason, SSLError)
modified
869d6c0cfd01257597d9c57ddb48a8de4100efba38ac55306c88cc5df274715d
assert|_test_request|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_K...
isinstance(cm.value.reason, SSLError)
454
16
urllib3/urllib3
train
355
d2a5a5920fffcc48e6141f4126c491343800d16a
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
512
17
pytest.raises
test_https_timeout
import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_INTERMEDIATE_KEY,...
ConnectTimeoutError)
modified
2697e7c37378a7225c9837a01b3ab0186735d99ba207c32e3949a48e5e019f4d
pytest.raises|test_https_timeout|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIATE_PEM, CLIENT_IN...
ConnectTimeoutError)
513
17
urllib3/urllib3
train
356
5fa45314abd726ff9b1f01301179871aae91f7eb
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
723
17
pytest.raises
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, ReadTimeoutError, ...
ProtocolError)
added
298f0f5e4f26d0a96150b8fdf950009bba0bcc7318c4bf4a481515fc98eb1a35
pytest.raises|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 ...
null
null
null
urllib3/urllib3
train
356
5fa45314abd726ff9b1f01301179871aae91f7eb
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,350
21
pytest.raises
test_ssl_load_default_certs_when_empty
# 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, ReadTimeoutError, ...
MaxRetryError)
added
08bbf3e94c96a23bd3594660461a516bca73ecb7748a04e1e59e3434133c5dfb
pytest.raises|test_ssl_load_default_certs_when_empty|# 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 ( MaxRet...
null
null
null
urllib3/urllib3
train
356
5fa45314abd726ff9b1f01301179871aae91f7eb
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,464
12
assert
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, ReadTimeoutError, ...
parsed_headers
added
d500263b32a824692d48ea28c7f9b9d10ba4aef97ade580824a116cdfaa85323
assert|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 ( MaxRetr...
null
null
null
urllib3/urllib3
train
356
5fa45314abd726ff9b1f01301179871aae91f7eb
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,537
12
assert_*
test_request_host_header_ignores_fqdn_dot
# 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, ReadTimeoutError, ...
"%s:%s" % (self.host, self.port))
added
4aa6cfa5c3ff0c221980a2028b493c39c8c2e502cc9c14f0b014a60ea7441a7b
assert_*|test_request_host_header_ignores_fqdn_dot|# 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
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
271
20
assert
test_verified_with_context
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
not warn.called
added
ec0bd41623493921accf3ef01f7553f9016c917ef558697fe6aa4487a312da0c
assert|test_verified_with_context|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA,...
null
null
null
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
452
16
assert
test_server_hostname
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
"localhost"
added
c6392cfd928257e151b9954178c3066bc45794a0de29898824881de5e6a6f698
assert|test_server_hostname|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAU...
null
null
null
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
516
17
pytest.raises
test_verify_none_and_bad_fingerprint
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
MaxRetryError)
added
c50cf735878c48ef0d74dfa8d7d623a039ee1db922864132a433ad1c88a91c74
pytest.raises|test_verify_none_and_bad_fingerprint|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key...
null
null
null
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
701
8
assert
test_set_cert_default_cert_required
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
ssl.CERT_REQUIRED
added
356ccf159c66b923e44be48876b0e5492bb79e2cab8d58626287be4962b8a391
assert|test_set_cert_default_cert_required|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DE...
null
null
null
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
106
12
assert
test_hostname_in_first_request_packet
# 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, ReadTimeoutError, ...
self.buf
modified
0caf6f902aadd86f2ae6ee82d1224dcd6b26137bfa4b4bac153e8d308deff532
assert|test_hostname_in_first_request_packet|# 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,...
self.buf
103
12
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
416
12
assert
test_connection_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, ReadTimeoutError, ...
http.pool.maxsize
added
f049519bf93decc7760bfb99bf1c4f586ce62ffce2ac665705e7246419860c51
assert|test_connection_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, ProxyErr...
null
null
null
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,014
17
pytest.raises
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, ReadTimeoutError, ...
ProxyError)
added
ed03ac204c4f9791edc588f0c2d734b687dcbaa0f4fdc22e46fe3820961a3e9c
pytest.raises|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, ReadT...
null
null
null
urllib3/urllib3
train
357
a9776d15013a7a4f2b92e4d7d1be2b5fe18d43d4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,205
21
pytest.raises
test_ssl_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
ReadTimeoutError)
added
7ea5f5edd01fcf81c059c78d4a6db9b415204f600c26fcbf1e83de0223530e1d
pytest.raises|test_ssl_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyErr...
null
null
null
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
247
20
assert
test_verified
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
not warn.called
modified
96b96a6ae9c3e77d5f680cce40820353712de7b675b6e497706746bc62df606f
assert|test_verified|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_K...
warn.called
245
20
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
408
16
assert
test_ssl_unverified_with_ca_certs
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
warn.called
added
67ac617aec0fee53634aa8a65dd37ebc52c72e4e5c77329c199c832a12a5d86c
assert|test_ssl_unverified_with_ca_certs|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFA...
null
null
null
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
558
17
pytest.raises
test_https_timeout
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
ConnectTimeoutError)
added
5a6906616cbd1b2cb26e449fea396e141e59bff8485de2f95cc2049c029e4c6b
pytest.raises|test_https_timeout|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, ...
null
null
null
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
678
16
assert
test_ssl_wrong_system_time
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
warning.category
modified
4d36c243c10dbf12cdb3fc3d73dc4396a1abe4a1504b068c9ed6011d6d55fd18
assert|test_ssl_wrong_system_time|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA,...
warning.message.args[0]
675
16
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
170
17
pytest.raises
test_cross_protocol_redirect
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
MaxRetryError)
added
25010c3abc7d522da3322a18bf312ffed45454d1c82bb074bd15cd89d928c62c
pytest.raises|test_cross_protocol_redirect|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import T...
null
null
null
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
216
12
assert
test_headers
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
"%s:%s" % ( self.https_host, self.https_port, )
modified
4fee2798718045626d2576b4eee14afc135550f560e4b05c7bf66183c2d695c1
assert|test_headers|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_ne...
"%s:%s" % ( self.http_host, self.http_port, )
213
12
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
292
12
assert
test_headerdict
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
"quux"
added
3cb986c2e8a64f48eb9e1b65d30c0424f9f801aeb93ecbdfd726f6ab67f45599
assert|test_headerdict|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires...
null
null
null
urllib3/urllib3
train
358
672eaabf3c84f6b6b8fec5f2b4d4f3d30ae84416
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
350
12
assert
test_https_proxy_pool_timeout
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
ConnectTimeoutError
added
a36ab5cfe7c74a7001c4fc9bf11d6c68f3b063cdabfcf37230069c140d869543
assert|test_https_proxy_pool_timeout|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_...
null
null
null
urllib3/urllib3
train
359
1dd69c5c5982fae7c87a620d487c2ebf7a6b436b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
682
13
pytest.raises
test_invalid_method_not_allowed
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
ValueError)
added
4353046ce49c285a3e8c334d15e0c947fcd7ac320efde55e4b9fb23cdcefd49c
pytest.raises|test_invalid_method_not_allowed|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HT...
null
null
null
urllib3/urllib3
train
359
1dd69c5c5982fae7c87a620d487c2ebf7a6b436b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
700
16
assert
test_source_address
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
b(addr[0])
added
a8feafba6e4a109307c420b0252999896d9e9abfbdf6abdc0b811a6b2cf9e0da
assert|test_source_address|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool fr...
null
null
null
urllib3/urllib3
train
359
1dd69c5c5982fae7c87a620d487c2ebf7a6b436b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
904
12
assert
test_retry_return_in_response
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
( RequestHistory("GET", "/successful_retry", None, 418, None), )
added
3381700250cc3e5be20a0d9a27810e49804f55a280ae54cf36783a04c33c8e1d
assert|test_retry_return_in_response|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnect...
null
null
null
urllib3/urllib3
train
359
1dd69c5c5982fae7c87a620d487c2ebf7a6b436b
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
1,084
12
assert
test_redirect_put_file
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
data
added
c713d2e5b6072febcb65b083aa86c1d49155b126219d94ab66b001da50103d9c
assert|test_redirect_put_file|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool...
null
null
null
urllib3/urllib3
train
360
c422c02afe576e976486c7e57c0320dfc599759b
train
test/test_ssl.py
train
urllib3/urllib3:test/test_ssl.py
167
4
assert
test_create_urllib3_context_pha
import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", ...
context
modified
d133c29706c664df23e31629e82fb1a221b8429473903959ad0c4d991394cd22
assert|test_create_urllib3_context_pha|import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zone I...
context
167
4
urllib3/urllib3
train
360
c422c02afe576e976486c7e57c0320dfc599759b
train
test/test_ssl.py
train
urllib3/urllib3:test/test_ssl.py
169
4
assert
test_create_urllib3_context_pha
import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", ...
expected_pha
modified
fba19f31927d1fcd2a24b51a483cae76a4880f32706d1f6091659628e23e54d0
assert|test_create_urllib3_context_pha|import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zone I...
expected_pha
169
4
urllib3/urllib3
train
360
c422c02afe576e976486c7e57c0320dfc599759b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
775
12
assert
test_ssl_wrap_socket_with_no_sni_warns
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.util.resp...
warnings
added
8261e977926252b2613ad103907357422369133885a3505065f0b1710e7c2d78
assert|test_ssl_wrap_socket_with_no_sni_warns|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rew...
null
null
null
urllib3/urllib3
train
360
c422c02afe576e976486c7e57c0320dfc599759b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
801
16
assert
test_has_ipv6_enabled_but_fails
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.util.resp...
not _has_ipv6("::1")
added
755b5af6a68d33a6ae2ff8b0b7bc2f199ba17eda369fc860307d974f77113f4c
assert|test_has_ipv6_enabled_but_fails|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rewind_bod...
null
null
null
urllib3/urllib3
train
360
c422c02afe576e976486c7e57c0320dfc599759b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
819
12
assert
test_ip_family_ipv6_enabled
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.util.resp...
socket.AF_UNSPEC
added
4dc9d2215bce37d3107b3f84b800135a0185ea6d2603024856937571e89770c2
assert|test_ip_family_ipv6_enabled|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rewind_body, _...
null
null
null
urllib3/urllib3
train
360
c422c02afe576e976486c7e57c0320dfc599759b
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
828
12
assert_*
test_assert_header_parsing_throws_typeerror_with_non_headers
# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.util.resp...
headers)
added
ed4c77808fd4ca50efbe398df17d6dbf6d226d7809f173c7fece50c0a227f90b
assert_*|test_assert_header_parsing_throws_typeerror_with_non_headers|# coding: utf-8 import hashlib import warnings import logging import io import ssl import socket from itertools import chain from mock import patch, Mock import pytest from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request ...
null
null
null
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
17
12
assert
test_proxy_headers
import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://...
default_headers
added
1214fbbf236c23997ac708b8bbbc7f9024dac6c0d9ceea0b1a0e245f104f271d
assert|test_proxy_headers|import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://s...
null
null
null
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
36
12
assert
test_proxy_headers
import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://...
expected_headers
added
dc996737ca4331c3263ff9a8ca5c604909a0f05ae28d87705c45d272ffc0d42d
assert|test_proxy_headers|import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://s...
null
null
null
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
47
13
pytest.raises
test_invalid_scheme
import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://...
ValueError)
modified
278929e93d3eea71541a702ab760598d16f774d970364e758a4849b096b971fa
pytest.raises|test_invalid_scheme|import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url =...
ValueError)
44
13
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
54
12
assert
test_proxy_tunnel
import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://...
p._proxy_requires_url_absolute_form(http_url)
added
bcbcfeb9c68508b4a5adf97df8afe9cb6527f781dd1acae9e7bdd77c3b562891
assert|test_proxy_tunnel|import pytest from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url class TestProxyManager(object): @pytest.mark.parametrize("proxy_scheme", ["http", "https"]) def test_proxy_headers(self, proxy_scheme): url = "http://pypi.org/project/urllib3/" proxy_url = "{}://so...
null
null
null
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
68
17
pytest.raises
test_https_proxy
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
ProxySchemeUnsupported)
added
e8f9b1eca1b28d4f7e918b333e507e4e6ccb4bb77708e31cefaea38a40f3a692
pytest.raises|test_https_proxy|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, ...
null
null
null
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
129
12
assert
test_proxy_verified
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
str(e.value.reason)
added
dcb63b052cce8efb9fdcee49a4d1925216ec89b19c3c9d1a9e33bfc41c335156
assert|test_proxy_verified|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requ...
null
null
null
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
272
12
assert
test_headers
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
None
modified
8b87398f7e5dd615bd611d687f92f5e5fe9c2bcd761a5879e8da615afcf53b1d
assert|test_headers|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_ne...
None
272
12
urllib3/urllib3
train
361
8c7a43b4a4ca0c8d36d55f132daa2a43d06fe3c4
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
415
12
assert
test_https_proxy_pool_timeout
import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_HOST, requires_network from urlli...
ConnectTimeoutError
added
6faea6c688c7b6e845d3d357cecc7e9d731493a3cf924246022f058144977889
assert|test_https_proxy_pool_timeout|import json import os.path import shutil import socket import tempfile import pytest import trustme from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, HAS_IPV6, get_unreachable_address from .. import TARPIT_...
null
null
null
urllib3/urllib3
train
362
16daad4ef27db7910887d3371fbf247f27587e67
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
228
20
assert
test_verified
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
warn.called
added
ae64c50a4456e02bc12d4e6c26db55acc9817007d450d4497a964bea1eb0f03b
assert|test_verified|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_K...
null
null
null
urllib3/urllib3
train
362
16daad4ef27db7910887d3371fbf247f27587e67
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
362
17
pytest.raises
test_no_ssl
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
MaxRetryError)
added
7e3d37534e9dd175c37695142c2f1d4ff274298dfc62d1c9f4ea8a118f810f31
pytest.raises|test_no_ssl|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT...
null
null
null
urllib3/urllib3
train
362
16daad4ef27db7910887d3371fbf247f27587e67
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
378
16
assert
test_unverified_ssl
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
[x[0][1] for x in calls]
added
3acaf23bfb49a55b30084fa19692e69f0172243032f8ef2fa237195c85ee49a9
assert|test_unverified_ssl|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAUL...
null
null
null
urllib3/urllib3
train
362
16daad4ef27db7910887d3371fbf247f27587e67
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
740
16
assert
test_warning_for_certs_without_a_san
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
warn.called
added
4baed4f95b8e7c7fcda09313cf4610b4b27e5f7933e0a922e6925d725f5cd7dc
assert|test_warning_for_certs_without_a_san|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, D...
null
null
null
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
64
8
assert
test_dnsname_to_stdlib_simple
# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): try: from urll...
expected_result
modified
2b089a73b7066ab249685acfb1a7e93bed6c303d47005847226e2a6b5bf7195d
assert|test_dnsname_to_stdlib_simple|# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): try: from...
expected_result
63
8
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
73
8
assert
test_dnsname_to_stdlib_leading_period
# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): try: from urll...
expected_result
modified
ccc0165b8e585b2324fcc395911dd53f5fd07e732bda2bd65a8ee5b928e1b1d4
assert|test_dnsname_to_stdlib_leading_period|# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): t...
expected_result
72
8
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
83
8
assert
test_dnsname_to_stdlib_leading_splat
# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): try: from urll...
expected_result
modified
3f4892022bb519539b505f3c3bdc12ebe7b7022dd7624ebd8316106ebb92d28c
assert|test_dnsname_to_stdlib_leading_splat|# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): tr...
expected_result
82
8
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
98
8
assert
test_get_subj_alt_name
# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): try: from urll...
isinstance(mock_warning.call_args[0][1], x509.DuplicateExtension)
modified
7faf602e9bb0c7116bdb4f80f011e379c27a8e95264be8148cf4ba4e37f186bd
assert|test_get_subj_alt_name|# -*- coding: utf-8 -*- import os import mock import pytest try: from urllib3.contrib.pyopenssl import _dnsname_to_stdlib, get_subj_alt_name from cryptography import x509 from OpenSSL.crypto import FILETYPE_PEM, load_certificate except ImportError: pass def setup_module(): try: from urllib...
isinstance(mock_warning.call_args[0][1], x509.DuplicateExtension)
97
8
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/contrib/test_securetransport.py
train
urllib3/urllib3:test/contrib/test_securetransport.py
53
13
pytest.raises
test_no_crash_with_empty_trust_bundle
# -*- coding: utf-8 -*- import contextlib import socket import ssl import pytest try: from urllib3.contrib.securetransport import WrappedSocket except ImportError: pass pytestmark = pytest.mark.skip() def setup_module(): try: from urllib3.contrib.securetransport import inject_into_urllib3 ...
ssl.SSLError)
modified
8b1a00c4585be0ded0f311b543400a27efe90fc69d54271fe7244610ca747964
pytest.raises|test_no_crash_with_empty_trust_bundle|# -*- coding: utf-8 -*- import contextlib import socket import ssl import pytest try: from urllib3.contrib.securetransport import WrappedSocket except ImportError: pass pytestmark = pytest.mark.skip() def setup_module(): try: from urllib3.contrib.securetransport impor...
ssl.SSLError)
52
13
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
334
13
pytest.raises
test_load_keyfile_with_invalid_password
# 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, ReadTimeoutError, ...
expected_error)
modified
eb35f029a2bc4a17939bcb0eee450cd570c0f1051cb46bee618db03e6cb9ace2
pytest.raises|test_load_keyfile_with_invalid_password|# 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 ( MaxRe...
expected_error)
332
13
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
388
17
pytest.raises
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, ReadTimeoutError, ...
MaxRetryError)
modified
69ce28eb9489c4095043c2e54889030d2e9db5a9116cc9a39c2e84c427a46e39
pytest.raises|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, ProxyE...
MaxRetryError)
386
17
urllib3/urllib3
train
364
eee53a69e1af019da18635d6974f893308db0ada
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
566
21
pytest.raises
test_delayed_body_read_timeout_with_preload
# 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, ReadTimeoutError, ...
ReadTimeoutError)
modified
eaf93be061c2d02a4ccfb6bfaaca02b445c05e7ec58ae44c9ba78b207f45a427
pytest.raises|test_delayed_body_read_timeout_with_preload|# 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...
ReadTimeoutError)
564
21
urllib3/urllib3
train
365
0b06d0c3c8dafd2c6ca459608df90df14fe353e6
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
435
21
pytest.raises
test_read_timeout_dont_retry_method_not_in_whitelist
# 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, ReadTimeoutError, ...
ReadTimeoutError)
modified
7f66f7f58c376a7f240fa8167c9179066b1f09620250a8882e9c2690eec86e82
pytest.raises|test_read_timeout_dont_retry_method_not_in_whitelist|# 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 i...
ReadTimeoutError)
434
21
urllib3/urllib3
train
365
0b06d0c3c8dafd2c6ca459608df90df14fe353e6
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
684
16
assert
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, ReadTimeoutError, ...
pool.pool.qsize()
modified
ce5ea681cbb9c57711c974c016397c1a180a30ba94741ff632db2d0f989079d9
assert|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 ( MaxRetryErro...
pool.pool.qsize()
683
16
urllib3/urllib3
train
365
0b06d0c3c8dafd2c6ca459608df90df14fe353e6
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,397
13
pytest.raises
test_load_verify_locations_exception
# 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, ReadTimeoutError, ...
SSLError)
modified
59625d457605b5c82f14228b64551f7b9e3bbfb3a929bae6c516eccdec1d6d4f
pytest.raises|test_load_verify_locations_exception|# 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...
SSLError)
1,396
13
urllib3/urllib3
train
365
0b06d0c3c8dafd2c6ca459608df90df14fe353e6
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,407
17
pytest.raises
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, ReadTimeoutError, ...
ProtocolError)
modified
a8ca49e7259c94a4fb5db867e7fc7440126be2d83eecde8fca01642d271d449b
pytest.raises|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...
ProtocolError)
1,406
17
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
161
8
assert
test_https_pool_key_fields
import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN class TestPoolManager(object): ...
all( x is not y for i, x in enumerate(conn_pools) for j, y in enumerate(conn_pools) if i != j )
modified
92854d6cbc3ace13886eaeb96cfadb029c47c7ac9fc8858234e745732936a74f
assert|test_https_pool_key_fields|import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN c...
all( x is not y for i, x in enumerate(conn_pools) for j, y in enumerate(conn_pools) if i != j )
159
8
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
356
8
assert
test_merge_pool_kwargs_none
import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN class TestPoolManager(object): ...
merged
modified
45c24956145d59199256797325716649712cea1f80a760fdf2b9dc602ac7d7a7
assert|test_merge_pool_kwargs_none|import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN ...
merged
354
8
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
362
8
assert
test_merge_pool_kwargs_remove_key
import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhostFQDN class TestPoolManager(object): ...
merged
modified
4db8589a262d71bc90dab21e9b331ecaace942857556cccd7028a5dc68e9e49f
assert|test_merge_pool_kwargs_remove_key|import socket import pytest from urllib3.poolmanager import PoolKey, key_fn_by_scheme, PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ClosedPoolError, LocationValueError from urllib3.util import retry, timeout from test import resolvesLocalhos...
merged
360
8
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
191
12
assert
test_client_key_password
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
subject["organizationalUnitName"].startswith("Testing cert")
modified
37d7e591ee9afb00670a311b39d6a691c94f237c7f6962a97bc9b2525dda92bb
assert|test_client_key_password|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, D...
subject["organizationalUnitName"].startswith("Testing cert")
191
12
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
291
20
assert
test_context_combines_with_ca_certs
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
InsecurePlatformWarning
modified
2c456c12107b9ec70b378a21c8f89dceff0db21ddf17fe22bc56b7707d2e7e6d
assert|test_context_combines_with_ca_certs|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DE...
InsecurePlatformWarning
291
20
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
435
21
pytest.raises
test_read_timeout_dont_retry_method_not_in_whitelist
# 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, ReadTimeoutError, ...
ReadTimeoutError)
modified
ecd679acbe435e0f5c41c4dab3d51e3a5f1664cbfded19dfe761ef8e1c253dc0
pytest.raises|test_read_timeout_dont_retry_method_not_in_whitelist|# 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 i...
ReadTimeoutError)
435
21
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
538
21
pytest.raises
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, ReadTimeoutError, ...
ReadTimeoutError)
modified
5edba44995c3aa98b96f7943161b7cdd1d689fdce8590254d572cbaaf1c44ca2
pytest.raises|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,...
ReadTimeoutError)
538
21
urllib3/urllib3
train
366
8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,208
21
pytest.raises
test_ssl_read_timeout
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
ReadTimeoutError)
modified
9d95324037a0e026b321b0008eed1cedd0a2ce20f79606625ff6d7ba2cc4f7d2
pytest.raises|test_ssl_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyErr...
ReadTimeoutError)
1,208
21
urllib3/urllib3
train
367
4e00ac7636671ebd37fa27eab22e3983f51dd28d
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
800
17
pytest.raises
test_max_retry
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
MaxRetryError)
added
df72cb65b91f6baca05647f47aee75f08bfdc039311625cd3772c4d1db433cad
pytest.raises|test_max_retry|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool ...
null
null
null
urllib3/urllib3
train
367
4e00ac7636671ebd37fa27eab22e3983f51dd28d
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
910
12
assert
test_retry_return_in_response
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
( RequestHistory("GET", "/successful_retry", None, 418, None), )
added
b58a3b92970abdb0351d0c6d0540f1e5e39f7a77cd628cb796100ba6e6dc09ea
assert|test_retry_return_in_response|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnect...
null
null
null
urllib3/urllib3
train
367
4e00ac7636671ebd37fa27eab22e3983f51dd28d
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
918
12
assert
test_retry_redirect_history
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
( RequestHistory("GET", "/redirect?target=%2F", None, 303, "/"), )
added
97bde688e548a4b92d0d0652f19580b372ae9ad0776dfe3e0730409176ab9a94
assert|test_retry_redirect_history|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectio...
null
null
null
urllib3/urllib3
train
367
4e00ac7636671ebd37fa27eab22e3983f51dd28d
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
941
12
assert
test_multi_redirect_history
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
b"Done redirecting"
added
7588ec05ef409058d940763eec8196ca73240d44ee8b2e67c10d4c03d1b7c5ee
assert|test_multi_redirect_history|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectio...
null
null
null
urllib3/urllib3
train
368
f761e0f0765c3994e11fb91e3760d894b9d9ee8a
train
test/contrib/test_securetransport.py
train
urllib3/urllib3:test/contrib/test_securetransport.py
51
13
pytest.raises
test_no_crash_with_empty_trust_bundle
# -*- coding: utf-8 -*- import contextlib import socket import ssl import pytest try: from urllib3.contrib.securetransport import WrappedSocket except ImportError: pass def setup_module(): try: from urllib3.contrib.securetransport import inject_into_urllib3 inject_into_urllib3() exc...
ssl.SSLError)
modified
918ab0dc15fd796e99a49dbd71108d10aa7cb71640f9e4701d8ab02db32f2e8a
pytest.raises|test_no_crash_with_empty_trust_bundle|# -*- coding: utf-8 -*- import contextlib import socket import ssl import pytest try: from urllib3.contrib.securetransport import WrappedSocket except ImportError: pass def setup_module(): try: from urllib3.contrib.securetransport import inject_into_urllib3 inject_int...
ssl.SSLError)
53
13
urllib3/urllib3
train
368
f761e0f0765c3994e11fb91e3760d894b9d9ee8a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
85
12
assert
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, ReadTimeoutError, ...
{"set-cookie": "foo=1, bar=1"}
modified
750a7ff95cefd93642bdea42b5a480cf65ec1a64c7d556f9c80eb8c75f21a178
assert|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, Read...
{"set-cookie": "foo=1, bar=1"}
84
12
urllib3/urllib3
train
368
f761e0f0765c3994e11fb91e3760d894b9d9ee8a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
109
12
assert
test_hostname_in_first_request_packet
# 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, ReadTimeoutError, ...
successful
modified
1c3619ab386323b8ee1a2526952f03e8a9ca93a5da7a985313b5d8dcf5047704
assert|test_hostname_in_first_request_packet|# 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,...
successful
108
12
urllib3/urllib3
train
368
f761e0f0765c3994e11fb91e3760d894b9d9ee8a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
415
21
pytest.raises
test_connection_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, ReadTimeoutError, ...
ReadTimeoutError)
modified
e2adc4cb5fa0f5a0a3876330f237f57b9eb3d90624841c07419a12438535bd9c
pytest.raises|test_connection_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, P...
ReadTimeoutError)
414
21
urllib3/urllib3
train
368
f761e0f0765c3994e11fb91e3760d894b9d9ee8a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,399
13
pytest.raises
test_load_verify_locations_exception
# 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, ReadTimeoutError, ...
SSLError)
modified
7a1ac25f3d959b5a622aa1611e65dc37abb767277c70b102c539eae8e580c399
pytest.raises|test_load_verify_locations_exception|# 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...
SSLError)
1,397
13
urllib3/urllib3
train
369
322dba4205493f1abf31a0dcacffa78c996b95e5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
345
12
assert
test_verified_without_ca_certs
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
"No root certificates specified" in str(e.value.reason) # PyPy sometimes uses all-caps here or "certificate verify failed" in str(e.value.reason).lower() or "invalid certificate chain" in str(e.value.reason)
modified
4d00869ddf09833987c8abdfa3c201b006dc7bfcaf0de64b0f653891386cd661
assert|test_verified_without_ca_certs|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT...
"No root certificates specified" in str(e.value.reason) # PyPy sometimes uses all-caps here or "certificate verify failed" in str(e.value.reason).lower() or "invalid certificate chain" in str(e.value.reason)
345
12
urllib3/urllib3
train
369
322dba4205493f1abf31a0dcacffa78c996b95e5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
362
17
pytest.raises
test_no_ssl
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
MaxRetryError)
modified
1ae9738b7b3dd0277c352a4b704dcde377dc91d6ded198d4365cef80c3c369ec
pytest.raises|test_no_ssl|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT...
MaxRetryError)
362
17
urllib3/urllib3
train
369
322dba4205493f1abf31a0dcacffa78c996b95e5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
372
16
assert
test_unverified_ssl
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
warn.called
modified
f7824b5b5b2e87d36d91762ecfb876844f5badf21ecc44d2b4905809084ecda3
assert|test_unverified_ssl|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAUL...
warn.called
372
16
urllib3/urllib3
train
369
322dba4205493f1abf31a0dcacffa78c996b95e5
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
697
16
assert
test_tls_protocol_name_of_socket
import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAULT_CA, DEFAULT_CA_KEY, ...
self.tls_protocol_name
modified
25ec30f23a4b63176310837a0dba8232bc91eb559e6354e31004b77ca1a1ca43
assert|test_tls_protocol_name_of_socket|import datetime import json import logging import os.path import ssl import sys import shutil import tempfile import warnings import mock import pytest import trustme from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import ( encrypt_key_pem, DEFAU...
self.tls_protocol_name
698
16
urllib3/urllib3
train
370
a9508d8d8ac58ed95bf06d8970382664af4e91e3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
526
12
assert
test_check_gzip
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
"gzip"
modified
26c0ff88c25f6d05397d79929a8e1b6501bb49d21568196238b964180d034eeb
assert|test_check_gzip|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from u...
"gzip"
526
12
urllib3/urllib3
train
370
a9508d8d8ac58ed95bf06d8970382664af4e91e3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
625
16
assert
test_lazy_load_twice
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
resp2_data[first_chunk:]
modified
96e43d09e7bd2244e15b3cbff647c70923c59d871c7b3e6fd0c02121f47b84c9
assert|test_lazy_load_twice|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool f...
resp2_data[first_chunk:]
625
16
urllib3/urllib3
train
370
a9508d8d8ac58ed95bf06d8970382664af4e91e3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
648
12
assert
test_for_double_release
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
MAXSIZE - 1
modified
36127af484fdfbd705e4f12c8f5ab21b1edfbc37c729295e21355867c1511d7c
assert|test_for_double_release|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPoo...
MAXSIZE - 1
648
12
urllib3/urllib3
train
370
a9508d8d8ac58ed95bf06d8970382664af4e91e3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
671
12
assert
test_release_conn_parameter
import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions imp...
MAXSIZE - 1
modified
2e4022421eae28d408396ca001efe490e872edcbc164856947317cf68f613885
assert|test_release_conn_parameter|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectio...
MAXSIZE - 1
671
12
urllib3/urllib3
train
371
29b214a129883301f91ae4a74fd7ef2958cbf7b0
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
121
17
pytest.raises
test_too_many_redirects
import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from urllib3.util.retry imp...
MaxRetryError)
modified
2fe4ad9f1169c5522182ebf3d00e0b2d935d6e93b314414f46f574e3d8d23fd6
pytest.raises|test_too_many_redirects|import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRe...
MaxRetryError)
120
17
urllib3/urllib3
train
371
29b214a129883301f91ae4a74fd7ef2958cbf7b0
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
214
12
assert
test_redirect_cross_host_set_removed_headers
import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from urllib3.util.retry imp...
data
added
9d5d587a6f097c4aa7e5214120bfb77f90bef4f08f5aba139a67b67d5f4b0746
assert|test_redirect_cross_host_set_removed_headers|import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exception...
null
null
null
urllib3/urllib3
train
371
29b214a129883301f91ae4a74fd7ef2958cbf7b0
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
288
12
assert
test_missing_port
import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from urllib3.util.retry imp...
b"Dummy server!"
added
34279e79e5a562d6b20afda1462a4bb47a85f702164d0cfc0ec26a2eab3cd713
assert|test_missing_port|import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from...
null
null
null
urllib3/urllib3
train
371
29b214a129883301f91ae4a74fd7ef2958cbf7b0
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
320
12
assert
test_headers
import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from urllib3.util.retry imp...
"quux"
added
0367b3e8b20b11ab61ef2d9ff48a4b2c400bac9e839d111ee0cfbd68c478f330
assert|test_headers|import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from urll...
null
null
null
urllib3/urllib3
train
372
84073f9a469669dc98aa03ca084c12aded9d6ba8
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
24
12
assert
test_proxy_headers
import pytest from .port_helpers import find_unused_port from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url from urllib3.util.retry import Retry from urllib3.exceptions import ( MaxRetryError, ProxyError, NewConnectionError, ) class TestProxyManager(object): @pytest.m...
default_headers
added
4e574eb64f6d4f7e11db23718c683415faad4e7f01642401b80ac2fa3ab11b1e
assert|test_proxy_headers|import pytest from .port_helpers import find_unused_port from urllib3.poolmanager import ProxyManager from urllib3.util.url import parse_url from urllib3.util.retry import Retry from urllib3.exceptions import ( MaxRetryError, ProxyError, NewConnectionError, ) class TestProxyManager(object): @p...
null
null
null