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
372
84073f9a469669dc98aa03ca084c12aded9d6ba8
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
52
13
pytest.raises
test_invalid_scheme
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...
AssertionError)
added
e336574c6c1e886808c20e00e0dbaa931a43da4c177e2de54a521bf40b93afdb
pytest.raises|test_invalid_scheme|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(obj...
null
null
null
urllib3/urllib3
train
372
84073f9a469669dc98aa03ca084c12aded9d6ba8
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
62
12
assert
test_proxy_tunnel
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...
False
modified
356d435100971665bef3bdb807676d36a1891095f910a3fcd68c38a914fddf61
assert|test_proxy_tunnel|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): @py...
p._proxy_requires_url_absolute_form(https_url)
59
12
urllib3/urllib3
train
372
84073f9a469669dc98aa03ca084c12aded9d6ba8
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
78
17
pytest.raises
test_proxy_connect_retry
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...
MaxRetryError)
added
903c7af5c8642fa13f7d1993a6b94551c26901b3d4d1a9b9359bda81c1c4a133
pytest.raises|test_proxy_connect_retry|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 TestProxyManage...
null
null
null
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
72
17
pytest.raises
test_proxy_connect_retry
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...
ProxyError)
modified
f81d79ab0be7822ca22d7b1e5f0e437d16e030fd4868be1e56fd759845ba5549
pytest.raises|test_proxy_connect_retry|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 TestProxyManage...
ProxyError)
72
21
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
74
12
assert
test_proxy_connect_retry
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...
isinstance(ei.value.original_error, NewConnectionError)
modified
a1754f40394d5cdfbbe13d164e7b1af55217f501024df8dc7da03b7adde3bf18
assert|test_proxy_connect_retry|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(objec...
isinstance(ei.value.original_error, NewConnectionError)
74
16
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
78
17
pytest.raises
test_proxy_connect_retry
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...
MaxRetryError)
modified
c45fe06d84616938f46886fef7d401a165a68ec74cf6735ee98ce8f1e0af0662
pytest.raises|test_proxy_connect_retry|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 TestProxyManage...
MaxRetryError)
78
17
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/test_proxymanager.py
val
urllib3/urllib3:test/test_proxymanager.py
80
12
assert
test_proxy_connect_retry
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...
isinstance(ei.value.reason.original_error, NewConnectionError)
modified
6d84d136128f0b039da2bb9ae7d635b2c40ac27e96b6a35f9c83747960c19800
assert|test_proxy_connect_retry|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(objec...
isinstance(ei.value.reason.original_error, NewConnectionError)
80
12
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
356
12
assert
test_connection_error_retries
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...
NewConnectionError
modified
d20a174beecab7b35c68db48c2c7ac480a0710235e39d6658e918af7af4691e5
assert|test_connection_error_retries|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...
NewConnectionError
356
16
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
438
12
assert
test_keepalive_close
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...
None
modified
691a154f49ae67d91021bf6a3d01c968de24575398236617f08e892d9f77360e
assert|test_keepalive_close|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...
None
438
12
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
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)
modified
f6c38fbab11bffa277498213080b6e2b41f0a69d14340b4ed3253bcad11a349e
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...
ValueError)
682
13
urllib3/urllib3
train
373
3d1d320098bc3067387f3872f0789c79ae09b1a1
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
783
12
assert
test_cleanup_on_connection_error
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...
http.pool.maxsize
modified
85a58911dda4fdb36750413a8c393f4fec1eb19cdf6cd78e7d15bf48dca8a2b7
assert|test_cleanup_on_connection_error|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, HTTPConn...
http.pool.maxsize
783
12
urllib3/urllib3
train
374
263da24d4b5c33392772e638b12d02e5b07abf9f
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
465
8
assert
test_parse_url_unicode_python_2
# 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...
isinstance(url.host, six.text_type)
added
8826db478b09578a3a35150d379620840c7275b4082eb2ff8a108ab9854b3807
assert|test_parse_url_unicode_python_2|# 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
374
263da24d4b5c33392772e638b12d02e5b07abf9f
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
536
13
pytest.raises
test_rewind_body_bad_position
# 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...
ValueError)
added
69405eba85660d3287d65f47b1d8add7c15f5e4eaef69f022b04a4fb150ad9da
pytest.raises|test_rewind_body_bad_position|# 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, rewin...
null
null
null
urllib3/urllib3
train
374
263da24d4b5c33392772e638b12d02e5b07abf9f
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
562
8
assert
test_split_first
# 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...
expected
added
fab930a630b3843fcb47d7332bbf2b7c6b9e259a93ae3d17aeffb71edc285626
assert|test_split_first|# 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 ...
null
null
null
urllib3/urllib3
train
374
263da24d4b5c33392772e638b12d02e5b07abf9f
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
840
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
5032123cf122c8ad5bdc5809f642b156037a7f1cfeeebed9d65bfe542b1d74f8
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
375
065404601431a913fce712e69c2e8b4b651d6e3a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
685
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
b57460d8b26ee2ed094285cb5c8e6bafd835bbf1c9ff133e1c5972e9a2abb43a
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()
685
16
urllib3/urllib3
train
375
065404601431a913fce712e69c2e8b4b651d6e3a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
751
12
assert
test_connection_closed_on_read_timeout_preload_false
# 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, ...
rlist
modified
e3206aca4b8e4ff1bf4c901a9b8c0a6eb2ca6f9fe7f4984eaec1da697d13cfd1
assert|test_connection_closed_on_read_timeout_preload_false|# 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 (...
rlist
751
12
urllib3/urllib3
train
375
065404601431a913fce712e69c2e8b4b651d6e3a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
977
12
assert
test_headers
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
r.data
modified
0dee35528d4fe06904988b98a8222c0f6120b94b994041bc054f4f3e0e9f9b0b
assert|test_headers|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutE...
r.data
977
12
urllib3/urllib3
train
375
065404601431a913fce712e69c2e8b4b651d6e3a
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,700
12
assert
test_stream_none_unchunked_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
list(r.stream(None))
modified
06275ebb1d7882f6b80f4219971f52861712b499a932ca41d11a75ad991a5f81
assert|test_stream_none_unchunked_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( Ma...
list(r.stream(None))
1,700
12
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/appengine/test_gae_manager.py
test
urllib3/urllib3:test/appengine/test_gae_manager.py
73
13
pytest.raises
test_exceptions
import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests from the connection pool. #...
appengine.AppEnginePlatformError)
modified
8237ad7838dd45c7d443bb9cd5fd0952fc976f9e80e9d6aa42c1a7271ed72f77
pytest.raises|test_exceptions|import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests f...
appengine.AppEnginePlatformError)
73
13
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/appengine/test_gae_manager.py
test
urllib3/urllib3:test/appengine/test_gae_manager.py
121
13
pytest.raises
test_exceptions
import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests from the connection pool. #...
urllib3.exceptions.SSLError)
modified
49f919067f1025f4830fcdc82e52d941628f8a932143e2a153f1af8c14aec0d5
pytest.raises|test_exceptions|import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests f...
urllib3.exceptions.SSLError)
121
13
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/appengine/test_gae_manager.py
test
urllib3/urllib3:test/appengine/test_gae_manager.py
152
8
assert
test_retry_return_in_response
import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests from the connection pool. #...
( urllib3.util.retry.RequestHistory( "GET", self.pool._absolute_url("/successful_retry"), None, 418, None ), )
modified
b5069f9797e3d58ad5fb9287435938bbb580127b2d92f8ce53fec21ad8110135
assert|test_retry_return_in_response|import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the ...
( urllib3.util.retry.RequestHistory( "GET", self.pool._absolute_url("/successful_retry"), None, 418, None ), )
152
8
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/appengine/test_gae_manager.py
test
urllib3/urllib3:test/appengine/test_gae_manager.py
176
4
assert
test_gae_environ
import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests from the connection pool. #...
not appengine.is_local_appengine()
modified
f3c14f723d3f56c51b066ac594139d6a7227333145cd3642a777c015c8d2bcdf
assert|test_gae_environ|import dummyserver.testcase import pytest from urllib3.contrib import appengine import urllib3.exceptions import urllib3.util.url import urllib3.util.retry from test.with_dummyserver import test_connectionpool from test import SHORT_TIMEOUT # This class is used so we can re-use the tests from th...
not appengine.is_local_appengine()
176
4
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
726
8
assert
test_mock_gzipped_transfer_encoding_chunked_decoded
# -*- 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
fc642130a986d6953869c78e92fca5296d9f2b52022b52710b984fc8368cbf34
assert|test_mock_gzipped_transfer_encoding_chunked_decoded|# -*- 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, ResponseNotChu...
data
726
8
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
740
8
assert
test_mock_transfer_encoding_chunked_custom_read
# -*- 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...
response
modified
5362cb774806d66da1823873e48e39ea6a9023a4c9a75793febaa733d1d5b1f5
assert|test_mock_transfer_encoding_chunked_custom_read|# -*- 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...
response
740
8
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
771
13
pytest.raises
test_invalid_chunks
# -*- 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...
ProtocolError)
modified
e4c15b838036590cfb6a9153848953f7aa3dbd3bf6519e805d959a0366438232
pytest.raises|test_invalid_chunks|# -*- 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...
ProtocolError)
771
13
urllib3/urllib3
train
376
63b53aa6e56d309c9099a4c1af23f7da1d382229
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
834
8
assert
test_geturl
# -*- 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...
request_url
modified
0a478db38d8bff00a38f68cdb29e88433cc8b91a1705c55c1b325b6194650751
assert|test_geturl|# -*- 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, ) fr...
request_url
834
8
urllib3/urllib3
train
377
caad948e02b24c9516da453b7411df13af357449
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
100
8
assert
test_retry_default
import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryEr...
not Retry(False).raise_on_redirect
modified
0528c25b4677d10518108d006f3718be7264d3ee215fc89c2aa81c73f9b8f133
assert|test_retry_default|import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeade...
not Retry(False).raise_on_redirect
98
8
urllib3/urllib3
train
377
caad948e02b24c9516da453b7411df13af357449
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
159
8
assert
test_backoff
import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryEr...
max_backoff
added
b3e2be5a5928e803827b32a69f315e6587caa358f104e62fcc204d96e91636c0
assert|test_backoff|import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, Max...
null
null
null
urllib3/urllib3
train
377
caad948e02b24c9516da453b7411df13af357449
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
213
8
assert
test_exhausted
import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryEr...
not Retry(0).is_exhausted()
added
7df3c77c57724cc7f5676c9fda9982c4ae323fc7ee4919e71e62ba49a2c6c7e4
assert|test_exhausted|import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, M...
null
null
null
urllib3/urllib3
train
377
caad948e02b24c9516da453b7411df13af357449
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
307
8
assert
test_parse_retry_after
import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryEr...
expected
added
aef282b230fbd8e3ed44d6af6cddf9000c9c2a99f134b4089224745b67761ea2
assert|test_parse_retry_after|import datetime import mock import pytest import time from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidH...
null
null
null
urllib3/urllib3
train
378
46fc29d5108553a58cc14d28e73443e864be76c2
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
87
12
assert
test_same_host
from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from ur...
c.is_same_host(b)
modified
b0fdb6c0bfc489996c34bdaa336ec003c66ea264a512c68a2fc0bccd381a2362
assert|test_same_host|from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout fro...
c.is_same_host(b)
86
12
urllib3/urllib3
train
378
46fc29d5108553a58cc14d28e73443e864be76c2
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
133
12
assert
test_same_host_no_port_http
from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from ur...
c.is_same_host(b)
modified
8d3a39826b9c3ac38e804d6bd44a2936bd4c642aff1f680c879c1f36e4c31281
assert|test_same_host_no_port_http|from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout impor...
c.is_same_host(b)
132
12
urllib3/urllib3
train
378
46fc29d5108553a58cc14d28e73443e864be76c2
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
364
12
assert
test_pool_timeouts
from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from ur...
None
added
6ddc3f7b28cb2af0e8a233359a495759de835c4d9025ec6d571ce1d582cf25e2
assert|test_pool_timeouts|from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout...
null
null
null
urllib3/urllib3
train
378
46fc29d5108553a58cc14d28e73443e864be76c2
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
393
12
assert
test_absolute_url
from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from ur...
c._absolute_url( "path?query=foo" )
added
d75dc58e0e205fb3282d7d0c507efcbab5eb30b51e00371d4fb0009d548dfb40
assert|test_absolute_url|from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout ...
null
null
null
urllib3/urllib3
train
379
d478147543abaf6e71ebb92c404d3b6a5eb81276
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
8634ab2ae4f5db3cb6669bc83894d10761a5b1cb620fc9f82abd73a595166829
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
64
8
urllib3/urllib3
train
379
d478147543abaf6e71ebb92c404d3b6a5eb81276
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
ca4c0cc479dff2b9eef4e49826de2568536397eda61e1526f9aa3f92edd21386
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
73
8
urllib3/urllib3
train
379
d478147543abaf6e71ebb92c404d3b6a5eb81276
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
391b79694c42960a822f7d1750191cfab4db93168e18cb96c38ae4d1858e7055
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
83
8
urllib3/urllib3
train
379
d478147543abaf6e71ebb92c404d3b6a5eb81276
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
1ebf8e67beaef0b303ca3e8ff7cf91b47b9939227bba0b08710afaf2614b1eec
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)
98
8
urllib3/urllib3
train
379
d478147543abaf6e71ebb92c404d3b6a5eb81276
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
1abf57d8e79faaa5e98af29b8b994333174ccb63afb29d3477a361a2f547213e
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)
51
13
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
134
12
assert
test_same_host_no_port_http
from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import HTTPResponse from urllib3.util.timeout import Timeout from urllib3.pac...
c.is_same_host(b)
modified
4d329d127008b8c875c7b4fbb64e511319881ba54fd773fe928ff0063ce40dfa
assert|test_same_host_no_port_http|from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import HTTPResponse from urllib3.util.timeout import Timeout...
c.is_same_host(b)
133
12
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
394
12
assert
test_absolute_url
from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import HTTPResponse from urllib3.util.timeout import Timeout from urllib3.pac...
c._absolute_url( "path?query=foo" )
modified
2bb0f7acc5ac6b62bd16ca522855b15b9649ba29e62f79ec64c93daca57e6395
assert|test_absolute_url|from __future__ import absolute_import import ssl import pytest from mock import Mock from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import HTTPResponse from urllib3.util.timeout import Timeout from urll...
c._absolute_url( "path?query=foo" )
393
12
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
80
8
assert
test_none
# -*- 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, ...
None
modified
e6b2146d2d117e50d8c8165c62964521c7872cd83cab82d9ff371637c0423c13
assert|test_none|# -*- 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, httpli...
None
77
8
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
643
13
pytest.raises
test_length_with_multiple_content_lengths
# -*- 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, ...
InvalidHeader)
modified
8265b2d265390d07d4e8f9b6c645ec85fb4ebf245b5cd78cdd46e48e08a8087e
pytest.raises|test_length_with_multiple_content_lengths|# -*- 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, ResponseNotChunke...
InvalidHeader)
640
13
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
729
8
assert
test_mock_gzipped_transfer_encoding_chunked_decoded
# -*- 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, ...
data
modified
4722486a41e9dd6ccfc933df2dce0db2423f6787ffe45414c6621dd189b9b785
assert|test_mock_gzipped_transfer_encoding_chunked_decoded|# -*- 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, ResponseNotChu...
data
726
8
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
110
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
cb1744da9300fc420f3ff0f85b46d5de4b6ff2e2ca5a1b2be5e22c9517129ff4
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
110
12
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
264
17
pytest.raises
test_missing_client_certs_raises_error
# 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
e94588b5c30f2ad5e1da409743e66536792d036ecfc65484c3b4ecddb4ed856a
pytest.raises|test_missing_client_certs_raises_error|# 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...
MaxRetryError)
264
17
urllib3/urllib3
train
380
90cae5d12261da1da71effec099ae9817b270301
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,210
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
188e810ac14ff97008d59adccf4ff8dae95af4167c0aca2638c165b45b73433b
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,210
21
urllib3/urllib3
train
381
b8733538ef3a258ee76329c3900acb9456fae98e
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
718
12
assert
test_sslkeylogfile
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, ...
keylog_file.check(file=1)
added
13821b8a0cf99fda4eaea06ec25666589974062f6462512780372a8eea0e2118
assert|test_sslkeylogfile|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
381
b8733538ef3a258ee76329c3900acb9456fae98e
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
721
12
assert
test_sslkeylogfile
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, ...
keylog_file.read().startswith("# TLS secrets log file")
added
4eaa5d20ee9e28891f76549bfc53ad34bbf3dbf4c598b3d9e1fc12901df1aee3
assert|test_sslkeylogfile|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
381
b8733538ef3a258ee76329c3900acb9456fae98e
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
764
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
389552aa36d3da8daaed55b72233b2db4f3468d4ddde34002bb560ba911a45ff
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
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
712
12
assert
test_sslkeylogfile
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, ...
keylog_file.check(file=1)
added
00bca0af714bfabde3d284ae9cc6eaaa9483a16f24244e3ca0ac0444fc83d2fc
assert|test_sslkeylogfile|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
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
715
12
assert
test_sslkeylogfile
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, ...
keylog_file.read().startswith("# TLS secrets log file")
modified
30fbc4ecee1206e612af1e37ec86550cc5d68d253fd88e8d26c08e078a1c3365
assert|test_sslkeylogfile|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...
keylog_file.check(file=1)
718
12
urllib3/urllib3
train
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
758
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
e45b287f4a4ac452bad60ab504790618018008f668f884619e34abfda9878bee
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
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
391
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
86934d53c6ce0764d52f92ed4c0368b8c4441d570b2d303e37aaf9bd82d9242a
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)
390
17
urllib3/urllib3
train
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
833
12
assert
test_closing_response_actually_closes_connection
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
successful
modified
0148ecb7fcaa0ad9f697bf6791902f39158729810e1d2f82a30407393300cbbb
assert|test_closing_response_actually_closes_connection|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( Max...
successful
832
12
urllib3/urllib3
train
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,580
12
assert
test_response_headers_are_returned_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
actual_response_headers
modified
d040f9882a76b36bc5c1183901ed6790c4fd320b2c85d28b14ef110f7002c165
assert|test_response_headers_are_returned_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions impo...
actual_response_headers
1,579
12
urllib3/urllib3
train
382
fd1ad730bae89992e9591e84494713fc1cde3ad4
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,672
12
assert
test_empty_head_response_does_not_hang
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyError, ReadTimeoutError, ...
list(r.stream())
modified
f3fbdc17f3b75cc0a8e25c94cb93f5e15c7caae78ad761f95e91d1f39ea1ae44
assert|test_empty_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError...
list(r.stream())
1,671
12
urllib3/urllib3
train
383
3ba4755960f54a21a6a1e492aa0d1df8b88aaba6
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
43
12
assert
test_redirect
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, URLSchemeUnknown from urll...
b"Dummy server!"
modified
7de4aafc41e669977bf0114fa913bf50fe7d7b8af4f9e55bfb231fba950fe45c
assert|test_redirect|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, URLSche...
b"Dummy server!"
43
12
urllib3/urllib3
train
383
3ba4755960f54a21a6a1e492aa0d1df8b88aaba6
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
213
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, URLSchemeUnknown from urll...
data
modified
73ed80ab165a45363e6f40ecfdf3ce898b04f960ba161dbaea6ac6234f999232
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...
data
213
12
urllib3/urllib3
train
383
3ba4755960f54a21a6a1e492aa0d1df8b88aaba6
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
336
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, URLSchemeUnknown from urll...
"quux"
added
66cca2c0a32dc2fd7ce6a69766bc100e083a5cc8891f9307339291e82f243f1d
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, URLSchem...
null
null
null
urllib3/urllib3
train
383
3ba4755960f54a21a6a1e492aa0d1df8b88aaba6
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
372
12
assert
test_encode_http_target
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, URLSchemeUnknown from urll...
expected_target
added
19b7c54053e8594e3d7689dc3310a0c3246419ab51e6cd69bbf628d1ec1aa2be
assert|test_encode_http_target|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 MaxRetryErro...
null
null
null
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
40
12
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket # Retry failed tests pytestmark = pytest.mark.flaky class TestChunkedTransfer(Soc...
self.buffer
modified
8ce4bbcb50a86346e741e256f4503df068f8f2b1db28f4f3142049527ded1811
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket # Retry failed tests pytestmark = pytest.mark.flaky class TestChunk...
self.buffer
39
12
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
47
16
assert
test_chunks
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket # Retry failed tests pytestmark = pytest.mark.flaky class TestChunkedTransfer(Soc...
chunk.encode("utf-8")
modified
d29c8d88dfe87832d2500e7b71fa7953a16c1a7e34ba934831e7945a01322631
assert|test_chunks|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket # Retry failed tests pytestmark = pytest.mark.flaky class TestChunk...
chunk.encode("utf-8")
46
16
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_chunked_transfer.py
train
urllib3/urllib3:test/with_dummyserver/test_chunked_transfer.py
65
16
assert
_test_body
# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket # Retry failed tests pytestmark = pytest.mark.flaky class TestChunkedTransfer(Soc...
b"0\r\n\r\n"
modified
e6fef72b3d0163851b3070ee2d4b3b7b092cd16e9a1a14d9e24e202f1ee7645c
assert|_test_body|# -*- coding: utf-8 -*- import pytest from urllib3 import HTTPConnectionPool from urllib3.util.retry import Retry from urllib3.util import SUPPRESS_USER_AGENT from dummyserver.testcase import SocketDummyServerTestCase, consume_socket # Retry failed tests pytestmark = pytest.mark.flaky class TestChunke...
b"0\r\n\r\n"
64
16
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
155
21
pytest.raises
test_total_applies_connect
import io import json 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.co...
ConnectTimeoutError)
modified
7984977b4cac4263c2bd05c563935fa3e34fcb1e2af3179c8070155079646ec5
pytest.raises|test_total_applies_connect|import io import json 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_formd...
ConnectTimeoutError)
152
21
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
643
12
assert
test_for_double_release
import io import json 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.co...
MAXSIZE
modified
8c0809475f349f79ade9ab1bbfe839309b8920d7cc578512c8dd2f678440954c
assert|test_for_double_release|import io import json 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, HTTPC...
MAXSIZE
640
12
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
797
12
assert
test_preserves_path_dot_segments
import io import json 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.co...
b"/echo_uri/seg0/../seg2"
modified
29eeaa04a2dfb8568c07a8739360eebbff9355ebf0858824ac759babeba94e99
assert|test_preserves_path_dot_segments|import io import json 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_formda...
b"/echo_uri/seg0/../seg2"
794
12
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,436
12
assert
test_httplib_headers_case_insensitive
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
dict(r.headers.items())
modified
5be81c284986aff2928bd0034919f66bee43bffabada4288ea9f4b8f2f341ce3
assert|test_httplib_headers_case_insensitive|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_use...
dict(r.headers.items())
1,434
12
urllib3/urllib3
train
384
a5a45dc36f3821e97bb9d6f2b4cd438a3f518af3
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,514
12
assert
test_request_headers_are_sent_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
request_headers
modified
4b51053fe135f1ce8436cc547cbc76c4d8b2baa3f863c1afde03da3dadb01f85
assert|test_request_headers_are_sent_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _g...
actual_request_headers
1,511
12
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
286
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, ...
warn.called
modified
95457c367d79d27e7883aae96637b6ba3a3006ad5ac9fcfd65ff397711072f4f
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...
warn.called
285
20
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
361
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, ...
SSLError)
modified
fe88e6d04cb3af826e19a62e0d17ed0e72230db2bf14d23314d5adcea6b4eb5b
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...
SSLError)
360
17
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
476
21
pytest.raises
_test_request
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
6e23ec0c81a46bb5341e2b4346e5c6b13c3136c931a424f2a0ae66967cd99c12
pytest.raises|_test_request|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...
MaxRetryError)
475
21
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
768
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
d8c5000a6539e6c314d5a744f8aef941d1a7742f6a5a0d1e50c8d54571dc2511
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
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
851
12
assert
test_closing_response_actually_closes_connection
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
not new_data
added
96c03c687d34bb62b97d7be6db362e8dca0f0c17d7f8cede291e3f14f5aa7406
assert|test_closing_response_actually_closes_connection|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_...
null
null
null
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,378
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.connection import _get_default_user_agent from urllib3.exceptions import ( ...
MaxRetryError)
added
bd4ead571196c7567d6388a473a0e0a4451f068907385cb71627c4bdd177afa5
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.connection import _get_def...
null
null
null
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,441
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.connection import _get_default_user_agent from urllib3.exceptions import ( ...
ProtocolError)
added
46f29605500bc0429292b368580b36893248fc9b999d7663985ca5f814441012
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.connection import _get_default_user_agent fro...
null
null
null
urllib3/urllib3
train
385
688584d692f3d77f5d6beca6bb97faef15f0977b
train
test/with_dummyserver/test_socketlevel.py
train
urllib3/urllib3:test/with_dummyserver/test_socketlevel.py
1,590
12
assert
test_response_headers_are_returned_in_the_original_order
# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection import _get_default_user_agent from urllib3.exceptions import ( ...
actual_response_headers
added
6ccdbd24d8a3dbf944ceab653ab5e4efa3c189809b4a89f853691fa7a0f61305
assert|test_response_headers_are_returned_in_the_original_order|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.connection impo...
null
null
null
urllib3/urllib3
train
386
3671b807e83e28971cfe2ae75de7a9fb2742cee3
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
110
13
pytest.raises
test_start_closed_socket
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
OSError)
added
a084d7d19c02438066c80c7555e192a5102af8f3293f3b99981570959e55ccbf
pytest.raises|test_start_closed_socket|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket ca...
null
null
null
urllib3/urllib3
train
386
3671b807e83e28971cfe2ae75de7a9fb2742cee3
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
135
12
assert
test_wrap_existing_socket
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
None
added
897978b3916304fd285a962d23de8fde6b486c0a9e2ced83d002013fb316ed9a
assert|test_wrap_existing_socket|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iter...
null
null
null
urllib3/urllib3
train
386
3671b807e83e28971cfe2ae75de7a9fb2742cee3
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
220
12
assert
test_socket_object_attributes
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
test_timeout
added
9f2e3042704f8aff2587d88341b9f55e9351b59e2316d262be0fce41f7e2b2dc
assert|test_socket_object_attributes|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can ...
null
null
null
urllib3/urllib3
train
386
3671b807e83e28971cfe2ae75de7a9fb2742cee3
train
test/contrib/test_ssltransport.py
train
urllib3/urllib3:test/contrib/test_ssltransport.py
368
17
pytest.raises
test_wrong_sni_hint
from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can iterate forever, we add t...
Exception)
added
d5036a696a98afd3c2a77b31e147dbb95a8ee98e7130512de1fa3cb732f36550
pytest.raises|test_wrong_sni_hint|from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from dummyserver.server import ( DEFAULT_CERTS, DEFAULT_CA, ) from urllib3.contrib.ssl import SSLTransport import select import pytest import socket import ssl import sys import platform # consume_socket can ite...
null
null
null
urllib3/urllib3
train
387
0210ddb33c28249425ddeb7704c357d5b07c46f6
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
28
8
assert
test_string
import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ...
"Retry(total=7, connect=None, read=None, redirect=None, status=None)"
modified
04000db0be53bdb763a2163bbe0ae36ced263c6c0e97b6b2284fa21200ffc2b4
assert|test_string|import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError,...
"Retry(total=7, connect=None, read=None, redirect=None, status=None)"
30
8
urllib3/urllib3
train
387
0210ddb33c28249425ddeb7704c357d5b07c46f6
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
120
8
assert
test_retry_read_zero
import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ...
error
modified
5783c2b28b60af1fbdc41e218deae0ce726a8e0845ca957eee823cf3fdea6a08
assert|test_retry_read_zero|import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTime...
error
122
8
urllib3/urllib3
train
387
0210ddb33c28249425ddeb7704c357d5b07c46f6
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
129
8
assert
test_status_counter
import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ...
ResponseError.SPECIFIC_ERROR.format( status_code=400 )
modified
7fe6993f933850a448855fe7cda8d59dc5000bc6c2a30f00b6c67ec7a8e8e129
assert|test_status_counter|import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeo...
ResponseError.SPECIFIC_ERROR.format( status_code=400 )
131
8
urllib3/urllib3
train
387
0210ddb33c28249425ddeb7704c357d5b07c46f6
train
test/test_retry.py
train
urllib3/urllib3:test/test_retry.py
197
8
assert
test_status_forcelist
import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ...
not retry.is_retry("GET", status_code=418)
modified
bbd1de3bca30b382c56dd82d6e4ba466df9b0d9c965dc35350c684f0ee840aa1
assert|test_status_forcelist|import mock import pytest from urllib3.response import HTTPResponse from urllib3.packages import six from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry, RequestHistory from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTim...
not retry.is_retry("GET", status_code=418)
199
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
65
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
02769dba7cbf1da416a51e3e28457b5cb6c34e632b612751b0a802878c006e02
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
64
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
74
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
9bfe27f09317dc89521dc0fbbc8d5e03ab60c4d9c23e2786f051e186b3ea3d42
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
73
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
84
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
e92e2bba41e2ac4b88f920c10f09656b577012ef8d9639fb8ad2378df02c3d75
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
83
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/contrib/test_pyopenssl.py
train
urllib3/urllib3:test/contrib/test_pyopenssl.py
99
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
88c71cd992b404c31b109a04772c680fb8fd9af16f53dd9223a91be2adb80d52
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)
98
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
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 def setup_module(): try: from urllib3.contrib.securetransport import inject_into_urllib3 inject_into_urllib3() exc...
ssl.SSLError)
modified
18df20605e56440e547cb2b5da33ea0696fd6d6788a43260f4b7dec96b2edff5
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)
51
13
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
311
8
assert
test_parse_url
# 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, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
expected_url
modified
d8680bc0d7344bab51f91510a81b56b1a5063d6e6f1524fa34be2c79e851668c
assert|test_parse_url|# 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, util from urllib3.util.request import make_headers, rewind_body, _FAILEDT...
expected_url
311
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
562
8
assert
test_split_first
# 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, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
expected
modified
0c40959bd0300373e4c2ff1ddda76e23e87b1fe6b13421a97ec0228208c67bca
assert|test_split_first|# 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, util from urllib3.util.request import make_headers, rewind_body, _FAILE...
expected
562
8
urllib3/urllib3
train
388
16dc22b419e3958e0457bcfbc97d8a160d95208a
train
test/test_util.py
train
urllib3/urllib3:test/test_util.py
603
8
assert
test_invalid_timeouts
# 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, util from urllib3.util.request import make_headers, rewind_body, _FAILEDTELL from urllib3.uti...
str(e.value)
modified
bb27d4ac0d36b757375f8d7c4d0fdccd0793b1bb062918cc90fe0eb26c35e5a5
assert|test_invalid_timeouts|# 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, util from urllib3.util.request import make_headers, rewind_body, _...
str(e.value)
603
8
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
716
12
assert
test_sslkeylogfile
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, ...
keylog_file.read().startswith( "# TLS secrets log file" )
modified
2f494aa34c680e61b8b052e53f958a1909b70c45ec6f0251ef68c9a72a546a8d
assert|test_sslkeylogfile|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...
keylog_file.read().startswith("# TLS secrets log file")
716
12
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
729
12
assert
test_alpn_default
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, ...
util.ALPN_PROTOCOLS[0]
modified
44fbdec5791663ca04da094c2c46b9f93fac7cf2a6d446ca5b995466659337dd
assert|test_alpn_default|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_...
util.ALPN_PROTOCOLS[0]
728
12
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_https.py
train
urllib3/urllib3:test/with_dummyserver/test_https.py
769
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
modified
f135c5245388b68ff642640a605a3766e0d16cdebd3e78848719fd1f14f22e22
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...
warn.called
768
16
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
105
17
pytest.raises
test_proxy_conn_fail
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)
modified
6e609622387159f552f060410fdba5ec4234d2b74df7632a77c17b34c243a224
pytest.raises|test_proxy_conn_fail|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_HO...
MaxRetryError)
102
17
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
178
17
pytest.raises
test_cross_host_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)
modified
65fa54983f7efc8c846d4ef36070371ac04d5c74e263d1f8754e2f51f6c783bd
pytest.raises|test_cross_host_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 TARPI...
MaxRetryError)
175
17
urllib3/urllib3
train
390
d455be9463b547b4a6efb3b6de52abfe2b62e3e8
train
test/with_dummyserver/test_proxy_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py
211
12
assert
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...
self.https_host
modified
e0435d332f36e9b6ffe3b5aac76dd1e243cd19956d0ff39ce7e19951c2d5c326
assert|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_H...
self.https_host
208
12