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 | 325 | 15e64de5a67a87f5350538cff1f011cb03ffde03 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 726 | 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.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | rlist | modified | ab8c34dfc31ac8cf73629fe06dc2260eb1233876a30cc4609ac3990f403c3eb7 | 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. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from ... | rlist | 723 | 12 |
urllib3/urllib3 | train | 325 | 15e64de5a67a87f5350538cff1f011cb03ffde03 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,496 | 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.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | actual_request_headers | modified | ddcb5f1ed4cef6b2a7aaf81133eeb5f4a6a0e3ccc5542721b992815c94e2f98b | 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. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from u... | actual_request_headers | 1,493 | 12 |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/contrib/test_socks.py | train | urllib3/urllib3:test/contrib/test_socks.py | 452 | 12 | assert | test_source_address_works | import threading
import socket
from urllib3.contrib import socks
from urllib3.exceptions import ConnectTimeoutError, NewConnectionError
from dummyserver.server import DEFAULT_CERTS, DEFAULT_CA
from dummyserver.testcase import IPV4SocketDummyServerTestCase
import pytest
try:
import ssl
from urllib3.util impo... | "127.0.0.1" | modified | 6f945ac26f9902d9d8167f18d12b765b5022b5b2cff24f71c3f58d5598e6b039 | assert|test_source_address_works|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS, DEFAULT_CA from dummyserver.testcase import IPV4SocketDummyServerTestCase import pytest try: import ssl f... | "127.0.0.1" | 455 | 12 |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/contrib/test_socks.py | train | urllib3/urllib3:test/contrib/test_socks.py | 522 | 12 | assert | test_basic_request | import threading
import socket
from urllib3.contrib import socks
from urllib3.exceptions import ConnectTimeoutError, NewConnectionError
from dummyserver.server import DEFAULT_CERTS, DEFAULT_CA
from dummyserver.testcase import IPV4SocketDummyServerTestCase
import pytest
try:
import ssl
from urllib3.util impo... | "SocksTestServer" | modified | 45d20d444afd58b46b95be286af6da10f115ad8790fa5654ddb2628996d940ac | assert|test_basic_request|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS, DEFAULT_CA from dummyserver.testcase import IPV4SocketDummyServerTestCase import pytest try: import ssl from url... | "SocksTestServer" | 525 | 12 |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 1,128 | 12 | assert | test_redirect_with_failed_tell | 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... | str(e.value) | added | 4fc467f80723a6c10c23946fe63a5f728e54b41060726c7c28164695d3e6f60d | assert|test_redirect_with_failed_tell|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, HTTPConnec... | null | null | null |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 455 | 16 | assert | _test_request | import datetime
import json
import logging
import ssl
import sys
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT_CLIENT_CERTS,
DEFAU... | isinstance(cm.value.reason, SSLError) | added | 78bd32d5b2369e1606e5c765ebf4f2e04878d407c858846dd3718019d5b90745 | assert|_test_request|import datetime import json import logging import ssl import sys import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, DEFAULT_CLIENT_CERTS, DEFAUL... | null | null | null |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 142 | 12 | assert | test_redirect_cross_host_remove_headers | import json
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError
from urllib3.util.retry imp... | data | added | 0cdb40746dd128f80dd73ef1179c6662a4c74d4a42668750023787bb86d7ab1d | assert|test_redirect_cross_host_remove_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 imp... | null | null | null |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 172 | 12 | assert | test_redirect_cross_host_no_remove_headers | import json
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError
from urllib3.util.retry imp... | "foo" | added | 1b0284e5c55192f48ac763485c38a823d9e975a71f59c5d41151c532e1e4a15b | assert|test_redirect_cross_host_no_remove_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 ... | null | null | null |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 201 | 12 | assert | test_headers | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address
from .. import TARPIT_HOST, requires_network
from urllib3._collections import HTTPHeaderDict
from urllib3.pool... | "%s:%s" % ( self.https_host, self.https_port, ) | modified | 61903b6cf01762813ef850433ed97801e68e814025928e9bc3515c69cc27f23c | assert|test_headers|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address from .. import TARPIT_HOST, requires_network from urllib3._collections import HTTPHeaderDict ... | "bar" | 204 | 12 |
urllib3/urllib3 | train | 327 | 42a3ef3ce763ec8434a6ae48bac59434e1b0c9b1 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 652 | 21 | pytest.raises | 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.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | ReadTimeoutError) | added | 966aa1ae5b988245898c82320c0ed65510f6390ff8767d23da110f4de9252c8d | pytest.raises|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. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib... | null | null | null |
urllib3/urllib3 | train | 328 | 1733719676ea30f62dae29ab837c29b548108926 | train | test/test_queue_monkeypatch.py | train | urllib3/urllib3:test/test_queue_monkeypatch.py | 30 | 21 | pytest.raises | test_queue_monkeypatching | from __future__ import absolute_import
import mock
import pytest
from urllib3 import HTTPConnectionPool
from urllib3.exceptions import EmptyPoolError
from urllib3.packages.six.moves import queue
class BadError(Exception):
"""
This should not be raised.
"""
pass
class TestMonkeypatchResistance(ob... | EmptyPoolError) | modified | b73568de044b4364b8c5958307cff6ec4760dc55d2da0d67e45285e7f8490300 | pytest.raises|test_queue_monkeypatching|from __future__ import absolute_import import mock import pytest from urllib3 import HTTPConnectionPool from urllib3.exceptions import EmptyPoolError from urllib3.packages.six.moves import queue class BadError(Exception): """ This should not be raised. """ pass class TestMonkeypa... | EmptyPoolError) | 30 | 21 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 372 | 13 | pytest.raises | test_contextmanager | from __future__ import absolute_import
import ssl
import pytest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
HTTPSConnectionPool,
)
from urllib3.response import httplib, HTTPResponse
from urllib3.util.timeout import Timeout
from urllib3.packages.six.mov... | ClosedPoolError) | modified | 4e2c21e16fbf2cf6a2a2eed78e07d42674fd61bdbb72ef457f2d48f58b439242 | pytest.raises|test_contextmanager|from __future__ import absolute_import import ssl import pytest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.... | ClosedPoolError) | 372 | 13 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 383 | 12 | assert | test_absolute_url | from __future__ import absolute_import
import ssl
import pytest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
HTTPSConnectionPool,
)
from urllib3.response import httplib, HTTPResponse
from urllib3.util.timeout import Timeout
from urllib3.packages.six.mov... | c._absolute_url( "path?query=foo" ) | modified | be8e9c1bc6605fefa726bb90210283c1c9c364919f3ec3cad943e70535a20a5d | assert|test_absolute_url|from __future__ import absolute_import import ssl import pytest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.packages.... | c._absolute_url( "path?query=foo" ) | 383 | 12 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 390 | 12 | assert | test_ca_certs_default_cert_required | from __future__ import absolute_import
import ssl
import pytest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
HTTPSConnectionPool,
)
from urllib3.response import httplib, HTTPResponse
from urllib3.util.timeout import Timeout
from urllib3.packages.six.mov... | ssl.CERT_REQUIRED | modified | 9a57fc58eb7246cd63a03e47abc4c408d109c6b88b15ab8d1a6204c1746f24f8 | assert|test_ca_certs_default_cert_required|from __future__ import absolute_import import ssl import pytest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from... | ssl.CERT_REQUIRED | 390 | 12 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 496 | 12 | assert | test_custom_http_response_class | from __future__ import absolute_import
import ssl
import pytest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
HTTPSConnectionPool,
)
from urllib3.response import httplib, HTTPResponse
from urllib3.util.timeout import Timeout
from urllib3.packages.six.mov... | isinstance(response, CustomHTTPResponse) | modified | 1cc1e3330c2eceea632b9cbf8b580d9845994253cc1a3e1b3c538b8dc47c338e | assert|test_custom_http_response_class|from __future__ import absolute_import import ssl import pytest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from url... | isinstance(response, CustomHTTPResponse) | 496 | 12 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/test_queue_monkeypatch.py | train | urllib3/urllib3:test/test_queue_monkeypatch.py | 30 | 21 | pytest.raises | test_queue_monkeypatching | from __future__ import absolute_import
import mock
import pytest
from urllib3 import HTTPConnectionPool
from urllib3.exceptions import EmptyPoolError
from urllib3.packages.six.moves import queue
class BadError(Exception):
"""
This should not be raised.
"""
pass
class TestMonkeypatchResistance(ob... | EmptyPoolError) | modified | c3a9bb2e8a7e1a2a118a53fb0951055073fffe2c2671142b58aeae7f0275a1d3 | pytest.raises|test_queue_monkeypatching|from __future__ import absolute_import import mock import pytest from urllib3 import HTTPConnectionPool from urllib3.exceptions import EmptyPoolError from urllib3.packages.six.moves import queue class BadError(Exception): """ This should not be raised. """ pass class TestMonkeypa... | EmptyPoolError) | 30 | 21 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,190 | 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.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | ReadTimeoutError) | modified | ba1c1810aca01566e6ae3493e64eb583011129a4033363f240442227f3ded055 | 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. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions impor... | ReadTimeoutError) | 1,190 | 21 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,241 | 13 | pytest.raises | test_ssl_failed_fingerprint_verification | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | MaxRetryError) | modified | a54a06320ea1304a4936a70501b66b980a2cacd2c42ac11088f05e78a5307d37 | pytest.raises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urlli... | MaxRetryError) | 1,241 | 13 |
urllib3/urllib3 | train | 329 | 11d68efa7c150823472f0e5309c3a08a1a10c2f2 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,377 | 25 | pytest.raises | test_ssl_dont_load_default_certs_when_given | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | MaxRetryError) | modified | 3d9f2cf25b0be9674f936d0d211200d8b7745b3a8526b1ba13d440d0812e9fc5 | pytest.raises|test_ssl_dont_load_default_certs_when_given|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from ur... | MaxRetryError) | 1,377 | 25 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/appengine/test_gae_manager.py | test | urllib3/urllib3:test/appengine/test_gae_manager.py | 49 | 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.TimeoutError) | modified | 89a8231f1c1911aca245539bfc31c900c1d244e6678b8df79efe83459bd7c895 | 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.TimeoutError) | 48 | 13 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/contrib/test_socks.py | train | urllib3/urllib3:test/contrib/test_socks.py | 558 | 12 | assert | test_local_dns | import threading
import socket
from urllib3.contrib import socks
from urllib3.exceptions import ConnectTimeoutError, NewConnectionError
from dummyserver.server import DEFAULT_CERTS, DEFAULT_CA
from dummyserver.testcase import IPV4SocketDummyServerTestCase
import pytest
from test import SHORT_TIMEOUT
try:
import... | "SocksTestServer" | modified | b1b0051c949aef35e9a5774c848c0f209c5159e277b084da1c3f54d58b5ebbbf | assert|test_local_dns|import threading import socket from urllib3.contrib import socks from urllib3.exceptions import ConnectTimeoutError, NewConnectionError from dummyserver.server import DEFAULT_CERTS, DEFAULT_CA from dummyserver.testcase import IPV4SocketDummyServerTestCase import pytest from test import SHORT_TIMEO... | "SocksTestServer" | 555 | 12 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 384 | 12 | assert | test_absolute_url | from __future__ import absolute_import
import ssl
import pytest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
HTTPSConnectionPool,
)
from urllib3.response import httplib, HTTPResponse
from urllib3.util.timeout import Timeout
from urllib3.packages.six.mov... | c._absolute_url( "path?query=foo" ) | modified | aecb1bc3b4a0b440c2075a1aff69145b709083961e1f9991d50377547fbb1d2f | assert|test_absolute_url|from __future__ import absolute_import import ssl import pytest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, HTTPSConnectionPool, ) from urllib3.response import httplib, HTTPResponse from urllib3.util.timeout import Timeout from urllib3.packages.... | c._absolute_url( "path?query=foo" ) | 383 | 12 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 318 | 16 | assert | test_nagle | 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... | tcp_nodelay_setting | added | d57438c43b538b39574f420377103a828cdc3bb2fcc90cabd2407b0cf81ff673 | assert|test_nagle|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 urllib... | null | null | null |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 578 | 17 | pytest.raises | test_enhanced_timeout | import datetime
import json
import logging
import ssl
import sys
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT_CLIENT_CERTS,
DEFAU... | ConnectTimeoutError) | modified | 9755c75156025785e4a0e6f498dd95a7d19120822789b163a82d182dccf8b33c | pytest.raises|test_enhanced_timeout|import datetime import json import logging import ssl import sys import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, DEFAULT_CLIEN... | ConnectTimeoutError) | 576 | 17 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 271 | 12 | assert | test_missing_port | import json
import pytest
from dummyserver.server import HAS_IPV6
from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError
from urllib3.util.retry imp... | b"Dummy server!" | modified | baf377e420f2f33ac65bf80731a56d386ea141d410a49d54410c08774b315c4b | assert|test_missing_port|import json import pytest from dummyserver.server import HAS_IPV6 from dummyserver.testcase import HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError from... | b"Dummy server!" | 269 | 12 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 129 | 12 | assert | test_redirect | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address
from .. import TARPIT_HOST, requires_network
from urllib3._collections import HTTPHeaderDict
from urllib3.pool... | b"Dummy server!" | modified | 77fbef5d6c94cec3bc87425c238d7db149298cd6c89250fb62649e268b388960 | assert|test_redirect|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address from .. import TARPIT_HOST, requires_network from urllib3._collections import HTTPHeaderDict... | b"Dummy server!" | 127 | 12 |
urllib3/urllib3 | train | 330 | b2fe7be1d035bcf07c024856869960c0510ee6fe | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,184 | 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.
import platform
import sys
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyErr... | ReadTimeoutError) | added | 7cca8e9470bf5acdb660f60d814496f4284e2c9949c17696ec6c62f24cc9d5c9 | 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. import platform import sys from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions impor... | null | null | null |
urllib3/urllib3 | train | 331 | 5665d6a4b64137c88f138ab1be3ec6824288f06f | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 332 | 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
from urllib3.util.retry imp... | expected_target | added | c532c68d2b56be3b7ee4c27506a07b25345c897ff91f3f2a6a9d9eadb57b5ac8 | 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 | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 28 | 4 | assert | test_is_ipaddress_true | import mock
import pytest
from urllib3.util import ssl_
from urllib3.exceptions import SNIMissingWarning
from test import notPyPy2
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
"127.0.0.1",
"8.8.8.8",
... | ssl_.is_ipaddress(addr) | modified | a4bc100f1080ebaa306fcbac67884186b265c8790d5e76d966b82c29600488d2 | assert|test_is_ipaddress_true|import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zone IDs "FE80:... | ssl_.is_ipaddress(addr) | 29 | 4 |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 41 | 4 | assert | test_is_ipaddress_false | import mock
import pytest
from urllib3.util import ssl_
from urllib3.exceptions import SNIMissingWarning
from test import notPyPy2
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
"127.0.0.1",
"8.8.8.8",
... | not ssl_.is_ipaddress(addr) | modified | 4bad25e2af2007a0244c5b4795ee223f92ee175519cb731feff23dea668e2e3d | assert|test_is_ipaddress_false|import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zone IDs "FE80... | not ssl_.is_ipaddress(addr) | 42 | 4 |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 116 | 4 | assert | test_create_urllib3_context_set_ciphers | import mock
import pytest
from urllib3.util import ssl_
from urllib3.exceptions import SNIMissingWarning
from test import notPyPy2
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
"127.0.0.1",
"8.8.8.8",
... | mock.call(expected_ciphers) | modified | aee30a99c7e44b7f9f949e56022ffdbcf39f278d278a5beb562ee0f683b491bf | assert|test_create_urllib3_context_set_ciphers|import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w... | mock.call(expected_ciphers) | 117 | 4 |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/test_ssl.py | train | urllib3/urllib3:test/test_ssl.py | 169 | 4 | assert | test_create_urllib3_context_pha | import mock
import pytest
from urllib3.util import ssl_
from urllib3.exceptions import SNIMissingWarning
from test import notPyPy2
@pytest.mark.parametrize(
"addr",
[
# IPv6
"::1",
"::",
"FE80::8939:7684:D84b:a5A4%251",
# IPv4
"127.0.0.1",
"8.8.8.8",
... | expected_pha | modified | 37b1207e2ff0136c34191181fe51567725c7d38c1e0b7843b2fe151abc995c21 | assert|test_create_urllib3_context_pha|import mock import pytest from urllib3.util import ssl_ from urllib3.exceptions import SNIMissingWarning from test import notPyPy2 @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", b"127.0.0.1", # IPv6 w/ Zone I... | expected_pha | 172 | 4 |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 793 | 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,
... | not new_data | modified | f9dfd1aeade3a9ce492a8a1c9a8837fe7c9a65fb039eee8418f6d72a149f6980 | 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... | not new_data | 795 | 12 |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,182 | 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 | ff165ac7ffd38566daef0d7eba1fc164c2ee6ff5a89d4c5755e6b1fff8d04295 | 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,184 | 21 |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,382 | 17 | pytest.raises | test_unknown_protocol | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | ProtocolError) | added | 654af20b855634e909e7c7e9f05137fc34d89cfeba7e220cd3baf07f813635f0 | pytest.raises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyErr... | null | null | null |
urllib3/urllib3 | train | 332 | 53c909e32512551cc9f0947ddbf380fc8c040156 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,475 | 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.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | actual_request_headers | added | 75f0b127889c46005a859a1a491d467e45cb33d97b7490f6b5bc533fdd72d91f | 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.exceptions import ( ... | null | null | null |
urllib3/urllib3 | train | 333 | 4cbf3246f0e33e7cad96198c09a2673077a5aaa9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 120 | 12 | assert | test_client_intermediate | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from backports import tempfile
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,... | subject["organizationalUnitName"].startswith("Testing server cert") | modified | 6e306a6efdc046b57cd7ff9b084f1b98644b8597f921ccb690acbcf635a4d22a | assert|test_client_intermediate|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from backports import tempfile from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAU... | subject["organizationalUnitName"].startswith("Testing server cert") | 118 | 12 |
urllib3/urllib3 | train | 333 | 4cbf3246f0e33e7cad96198c09a2673077a5aaa9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 307 | 12 | assert | test_invalid_common_name | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from backports import tempfile
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,... | "doesn't match" in str( e.value.reason ) or "certificate verify failed" in str(e.value.reason) | added | 27fcaf89fb47fe250f628e4ed44613c16b2155dd008c0c143b06fb0bd8bc2656 | assert|test_invalid_common_name|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from backports import tempfile from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAU... | null | null | null |
urllib3/urllib3 | train | 333 | 4cbf3246f0e33e7cad96198c09a2673077a5aaa9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 351 | 12 | assert | test_no_ssl | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from backports import tempfile
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,... | isinstance(cm.value.reason, SSLError) | added | dc23adccbef1b2ca241deab185484b251580f66ae0ec6991538c9609100929e3 | assert|test_no_ssl|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from backports import tempfile from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAUL... | null | null | null |
urllib3/urllib3 | train | 333 | 4cbf3246f0e33e7cad96198c09a2673077a5aaa9 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 586 | 17 | pytest.raises | test_enhanced_timeout | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from backports import tempfile
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,... | ConnectTimeoutError) | added | d4c9bddfd625fa98099689ad39276d173be682a8ba4cdd9961422abc1114d494 | pytest.raises|test_enhanced_timeout|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from backports import tempfile from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( D... | null | null | null |
urllib3/urllib3 | train | 334 | adc843d2cdbd7c40a5f2844375635a590f9873df | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 187 | 17 | pytest.raises | test_client_encrypted_key_requires_password | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT... | MaxRetryError) | modified | 44d15b3c58f432dccf4a9cfe36040e9da9dcf1fda936cb8507504ce4234c045c | pytest.raises|test_client_encrypted_key_requires_password|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA... | MaxRetryError) | 188 | 17 |
urllib3/urllib3 | train | 334 | adc843d2cdbd7c40a5f2844375635a590f9873df | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 302 | 17 | pytest.raises | test_invalid_common_name | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT... | MaxRetryError) | modified | 9ad8872e04d6899c4d838aa3ff20ff2f811df487c5351b7b749157ad636a9cde | pytest.raises|test_invalid_common_name|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, D... | MaxRetryError) | 304 | 17 |
urllib3/urllib3 | train | 334 | adc843d2cdbd7c40a5f2844375635a590f9873df | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 463 | 16 | assert | _test_request | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT... | isinstance(cm.value.reason, SSLError) | modified | bd1a161142b74a208e0771993a664109cc6f95bb2c43711d6f492c2656df41ff | assert|_test_request|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, DEFA... | isinstance(cm.value.reason, SSLError) | 465 | 16 |
urllib3/urllib3 | train | 334 | adc843d2cdbd7c40a5f2844375635a590f9873df | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 642 | 16 | assert | test_ssl_wrong_system_time | import datetime
import json
import logging
import os
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT... | warning.category | modified | edacd30cb3a63ff9510ce070d815fba61ba34d8b5204bf53df0b158ab5867fe2 | assert|test_ssl_wrong_system_time|import datetime import json import logging import os import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAUL... | warning.category | 644 | 16 |
urllib3/urllib3 | train | 335 | 7ea0eea29129cc5044d5c7abfa3e9e1ddcde9583 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 238 | 20 | assert | test_verified_with_context | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT_CLIENT_CE... | not warn.called | modified | 2a876b056204be1bccce63a49052d846c50de78055801a019b867039b2c244c5 | assert|test_verified_with_context|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, D... | not warn.called | 239 | 20 |
urllib3/urllib3 | train | 335 | 7ea0eea29129cc5044d5c7abfa3e9e1ddcde9583 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 254 | 12 | assert | test_context_combines_with_ca_certs | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT_CLIENT_CE... | VerifiedHTTPSConnection | modified | 2d90523d969bab50d067ea9ce7db30e93b646e66e085cc7685e2698e845f5551 | assert|test_context_combines_with_ca_certs|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT... | VerifiedHTTPSConnection | 255 | 12 |
urllib3/urllib3 | train | 335 | 7ea0eea29129cc5044d5c7abfa3e9e1ddcde9583 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 460 | 21 | pytest.raises | _test_request | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT_CLIENT_CE... | MaxRetryError) | modified | 56a34fd507df59e6a3f3d7ebebaf877e5f3daf9236e3440c0cc5766473886142 | pytest.raises|_test_request|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, DEFAULT... | MaxRetryError) | 461 | 21 |
urllib3/urllib3 | train | 335 | 7ea0eea29129cc5044d5c7abfa3e9e1ddcde9583 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 485 | 12 | assert | test_verify_none_and_bad_fingerprint | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
DEFAULT_CERTS,
DEFAULT_CLIENT_CE... | isinstance(cm.value.reason, SSLError) | modified | 8b2cbd0909162419bba0b1e1985fb03683e7e923ce6d326bfd07b13100915a0c | assert|test_verify_none_and_bad_fingerprint|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, DEFAUL... | isinstance(cm.value.reason, SSLError) | 486 | 12 |
urllib3/urllib3 | train | 336 | 62d9df906437b558f72ca0d4799bc374a284186b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 123 | 12 | assert | test_client_intermediate | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | subject["organizationalUnitName"].startswith("Testing cert") | added | e618b9e4940675d6149309772fd4661896c09479ee7a45e715f6a47a9ba0d9dd | assert|test_client_intermediate|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_N... | null | null | null |
urllib3/urllib3 | train | 336 | 62d9df906437b558f72ca0d4799bc374a284186b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 210 | 20 | assert | test_verified | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | warn.called | added | b3acdb801cbcc3e883190cb5b79d6387bf23546f3b18897e10a559fbf6f8d5b8 | assert|test_verified|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDI... | null | null | null |
urllib3/urllib3 | train | 336 | 62d9df906437b558f72ca0d4799bc374a284186b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 322 | 17 | pytest.raises | test_verified_without_ca_certs | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | MaxRetryError) | added | ab9c2faf723809805f6ef80464174a3ead21681e7682c1c5454af83ce94ff01a | pytest.raises|test_verified_without_ca_certs|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_... | null | null | null |
urllib3/urllib3 | train | 336 | 62d9df906437b558f72ca0d4799bc374a284186b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 354 | 16 | assert | test_unverified_ssl | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | warn.called | modified | 98db9120167d8acd7f0c16fe8bbeb5dbc33449eac642bf50e340218f864c89ce | assert|test_unverified_ssl|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INT... | warn.called | 356 | 16 |
urllib3/urllib3 | train | 337 | efe8230d0cb21e7916e7b9fbb7d1e3cd419f9cbc | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 301 | 12 | assert | test_invalid_common_name | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | isinstance(e.value.reason, SSLError) | modified | 13dec4e902c5245f3c0fde191c1311e28e208bd77abf88ee8671c0748206b440 | assert|test_invalid_common_name|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_N... | isinstance(e.value.reason, SSLError) | 301 | 12 |
urllib3/urllib3 | train | 337 | efe8230d0cb21e7916e7b9fbb7d1e3cd419f9cbc | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 460 | 16 | assert | _test_request | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | isinstance(cm.value.reason, SSLError) | modified | a35042f756950ef9be7027a80ecf595d779683d507207171ca8f0fc3e543d1a4 | assert|_test_request|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDI... | isinstance(cm.value.reason, SSLError) | 460 | 16 |
urllib3/urllib3 | train | 337 | efe8230d0cb21e7916e7b9fbb7d1e3cd419f9cbc | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 519 | 17 | pytest.raises | test_https_timeout | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | ConnectTimeoutError) | modified | 35daa9e723f1a45b39d9df02b570d6f7e1b1b59affdbce421ec086c0c626bce7 | pytest.raises|test_https_timeout|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_... | ConnectTimeoutError) | 519 | 17 |
urllib3/urllib3 | train | 337 | efe8230d0cb21e7916e7b9fbb7d1e3cd419f9cbc | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 666 | 8 | assert | test_set_cert_default_cert_required | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | ssl.CERT_REQUIRED | modified | 741c02a69c6baab09eb4ff8007a192849fd969c6a1aaafd20a53afdf23296dab | assert|test_set_cert_default_cert_required|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PE... | ssl.CERT_REQUIRED | 666 | 8 |
urllib3/urllib3 | train | 338 | 26528f7200986957d01f5b1a8f2c5c844536a059 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 310 | 13 | pytest.raises | test_load_keyfile_with_invalid_password | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | expected_error) | modified | 76ddf7db2ddcce01484e6b6c60bf18e695495c281267dd3d691d537b6a92d576 | pytest.raises|test_load_keyfile_with_invalid_password|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRe... | expected_error) | 309 | 13 |
urllib3/urllib3 | train | 338 | 26528f7200986957d01f5b1a8f2c5c844536a059 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,144 | 12 | assert | test_ssl_failure_midway_through_conn | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | isinstance(cm.value.reason, SSLError) | modified | dad5d69e8f05d27b141779eb6fc951799c8a2a9b599384a4e510175e86c6ba8c | assert|test_ssl_failure_midway_through_conn|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ... | isinstance(cm.value.reason, SSLError) | 1,143 | 12 |
urllib3/urllib3 | train | 338 | 26528f7200986957d01f5b1a8f2c5c844536a059 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,229 | 8 | assert | test_ssl_failed_fingerprint_verification | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | isinstance(cm.value.reason, SSLError) | modified | 8b1f459d0b3dcaef35e6218c375c150ff492f79db095d7de58d92232263caeb0 | assert|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryErr... | isinstance(cm.value.reason, SSLError) | 1,228 | 8 |
urllib3/urllib3 | train | 338 | 26528f7200986957d01f5b1a8f2c5c844536a059 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,624 | 12 | assert | test_chunked_head_response_does_not_hang | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | list(r.stream()) | modified | 8bf074b3c371b69c05f2ca07d1a75e090ccfb022803f06e5fa804b7bb23b9ff7 | assert|test_chunked_head_response_does_not_hang|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryErr... | list(r.stream()) | 1,623 | 12 |
urllib3/urllib3 | train | 339 | c2bb10f1322e852627cc31a3e87d71c9aa1e39cf | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 94 | 17 | pytest.raises | test_timeout | 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... | ReadTimeoutError) | modified | ff3f5bff297278858cdbab38eb90d10a016aa37dd79aa7cc8d5743ab6f21e405 | pytest.raises|test_timeout|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool fr... | ReadTimeoutError) | 94 | 17 |
urllib3/urllib3 | train | 339 | c2bb10f1322e852627cc31a3e87d71c9aa1e39cf | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 410 | 12 | assert | test_bad_connect | 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 | added | 349f2c8f1d73aa0e7978064a1f6343c6b52fe0fe283d92a1a6da2af2f39090aa | assert|test_bad_connect|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 ... | null | null | null |
urllib3/urllib3 | train | 339 | c2bb10f1322e852627cc31a3e87d71c9aa1e39cf | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 622 | 16 | assert | test_lazy_load_twice | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | resp2_data[:first_chunk] | added | 38ddb0b3c30c735e942a6b008fe0b28f57f69079f54c280a6736ef1a5403c71d | assert|test_lazy_load_twice|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool f... | null | null | null |
urllib3/urllib3 | train | 339 | c2bb10f1322e852627cc31a3e87d71c9aa1e39cf | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 683 | 12 | assert | test_percent_encode_invalid_target_chars | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | b"[('k', '\\n \\n'), ('q', '\\r')]" | added | ecf695a187102a367401493a50dd95d6ba0577c1dffa25450c9fd824bc992259 | assert|test_percent_encode_invalid_target_chars|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, ... | null | null | null |
urllib3/urllib3 | train | 340 | fbd67aa19c10590383c7565c4555d3882db94329 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 199 | 17 | pytest.raises | test_create_connection_timeout | 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... | ConnectTimeoutError) | modified | 318f7c6aa34de4aebf7bee2b0cf45444838e50c22ba15eb4297e989ad7e898c6 | pytest.raises|test_create_connection_timeout|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, HTT... | ConnectTimeoutError) | 199 | 17 |
urllib3/urllib3 | train | 340 | fbd67aa19c10590383c7565c4555d3882db94329 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 291 | 16 | assert | test_nagle | 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... | tcp_nodelay_setting | modified | 2a6cf09943b5ad9c95f37eb5108c25875b1714381a7995e09b81b1acce12cc8f | assert|test_nagle|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 urllib... | tcp_nodelay_setting | 291 | 16 |
urllib3/urllib3 | train | 340 | fbd67aa19c10590383c7565c4555d3882db94329 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 539 | 17 | pytest.raises | test_bad_decode | 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... | DecodeError) | modified | fbd678050f7205e934cd1da3d0d2c1c1477f4175c45f0aaa5b62f21d890c3c50 | pytest.raises|test_bad_decode|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... | DecodeError) | 539 | 17 |
urllib3/urllib3 | train | 340 | fbd67aa19c10590383c7565c4555d3882db94329 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 694 | 16 | assert | test_source_address | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | b(addr[0]) | modified | 5f07f43200ebe9579dc7343e37b6c23ff0ac2ca9d7a3ecc8dc29f62f21aaff0e | assert|test_source_address|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool fr... | b(addr[0]) | 694 | 16 |
urllib3/urllib3 | train | 341 | 29041a282f972da7a96776d43f1043d8a6708379 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 248 | 12 | assert | test_one_name_multiple_values | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | b"foo=a&foo=b" | modified | 314fb8b60cd006d08b4b736764abb1a15aee204a590d331cb697784c2dd2141e | assert|test_one_name_multiple_values|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... | b"foo=a&foo=b" | 248 | 12 |
urllib3/urllib3 | train | 341 | 29041a282f972da7a96776d43f1043d8a6708379 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 694 | 16 | assert | test_source_address | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | b(addr[0]) | modified | 392cc5fe71e5f85c72756a47d12d00b38ec37bab44226526701fe58f72c4f32b | assert|test_source_address|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectionPool fr... | b(addr[0]) | 694 | 16 |
urllib3/urllib3 | train | 341 | 29041a282f972da7a96776d43f1043d8a6708379 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 717 | 20 | assert | test_stream_keepalive | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | b"123" | modified | 9c6d732256621c232b4d4476ab83442ceca16c768db78da0fd7b654e39adc08f | assert|test_stream_keepalive|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 ... | b"123" | 717 | 20 |
urllib3/urllib3 | train | 341 | 29041a282f972da7a96776d43f1043d8a6708379 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 942 | 12 | assert | test_multi_redirect_history | import io
import logging
import socket
import sys
import time
import warnings
import pytest
import mock
from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES
from ..port_helpers import find_unused_port
from urllib3 import encode_multipart_formdata, HTTPConnectionPool
from urllib3.exceptions imp... | expected | modified | 86b0ca71f404998fb03d22ccc4cad59468d7d181c54e11b1c7d03794f25f1631 | assert|test_multi_redirect_history|import io import logging import socket import sys import time import warnings import pytest import mock from .. import TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES from ..port_helpers import find_unused_port from urllib3 import encode_multipart_formdata, HTTPConnectio... | expected | 942 | 12 |
urllib3/urllib3 | train | 342 | 6996da3982eef09ed86316e8a67b8011ac9a9acb | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 625 | 12 | assert | test_retry_weird_http_version | # 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,
... | b"foo" | modified | 9f47ea8b9b3bff692d1712fd57a8a06a8749477686074b0e61b6965746ad26da | assert|test_retry_weird_http_version|# 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, ProxyEr... | b"foo" | 626 | 12 |
urllib3/urllib3 | train | 342 | 6996da3982eef09ed86316e8a67b8011ac9a9acb | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 805 | 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 | 6b9da8c9e3a53227a2b7d2132130bbc66fcc37b58184e353db74ecfb703bc77a | 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 | 806 | 12 |
urllib3/urllib3 | train | 342 | 6996da3982eef09ed86316e8a67b8011ac9a9acb | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,143 | 12 | assert | test_ssl_failure_midway_through_conn | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | isinstance(cm.value.reason, SSLError) | modified | 564ff8072ef51ae88818d3f1b5deba3cfe22e4abd81c76f830a479f0ebe3c2a2 | assert|test_ssl_failure_midway_through_conn|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ... | isinstance(cm.value.reason, SSLError) | 1,144 | 12 |
urllib3/urllib3 | train | 342 | 6996da3982eef09ed86316e8a67b8011ac9a9acb | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,284 | 12 | assert | test_retry_ssl_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,
... | b"Success" | modified | 5d2da1041d5e6bc33cce78d51b4243336517c80fdfe9577d4579eb4d5278cac2 | assert|test_retry_ssl_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, Read... | b"Success" | 1,285 | 12 |
urllib3/urllib3 | train | 344 | 01c7c7107d4dc0834fd4c96514944f2fd3c3514d | train | test/test_compatibility.py | train | urllib3/urllib3:test/test_compatibility.py | 44 | 8 | assert | test_extract | import warnings
import pytest
from urllib3.connection import HTTPConnection
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import http_cookiejar, urllib
class TestVersionCompatibility(object):
def test_connection_strict(self):
with warnings.catch_warnings(record=True) as w:
... | len(cookies) | modified | d433b998a5c866faeddb1e831e9eaadb4826360167663fca259c721249bde9e9 | assert|test_extract|import warnings import pytest from urllib3.connection import HTTPConnection from urllib3.response import HTTPResponse from urllib3.packages.six.moves import http_cookiejar, urllib class TestVersionCompatibility(object): def test_connection_strict(self): with warnings.catch_warnings(record=True) as w... | len(cookies) | 44 | 8 |
urllib3/urllib3 | train | 346 | d966757d66128961c82a518c89f1feeda99b2a1e | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 656 | 21 | pytest.raises | 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,
... | ReadTimeoutError) | modified | e30a74e513ac371f19c53c6a68773530e3f68118e9cba593ba41bfd0c2b2b3fe | pytest.raises|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 ( MaxRe... | ReadTimeoutError) | 656 | 21 |
urllib3/urllib3 | train | 346 | d966757d66128961c82a518c89f1feeda99b2a1e | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 693 | 12 | assert | test_connection_cleanup_on_protocol_error_during_read | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | pool.pool.qsize() | modified | b9198bb48b0c42d595d3053e66a5c7bb01c9a4d0a43f6dea5edf9b777f3a005f | assert|test_connection_cleanup_on_protocol_error_during_read|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ... | pool.pool.qsize() | 693 | 12 |
urllib3/urllib3 | train | 346 | d966757d66128961c82a518c89f1feeda99b2a1e | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,398 | 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.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | dict(r.headers.items()) | modified | 523717235a17ba1e70aa3ba4a6ce79ca62aeb1e2efa8d9ec0cb65b756878812a | 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.exceptions import ( MaxRetryError,... | dict(r.headers.items()) | 1,398 | 12 |
urllib3/urllib3 | train | 346 | d966757d66128961c82a518c89f1feeda99b2a1e | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 1,505 | 12 | assert_* | test_request_host_header_ignores_fqdn_dot | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
... | "%s:%s" % (self.host, self.port)) | modified | c5c04b51045169112b11dc524d4b87318d7372cfa282756925495dc0c18c2206 | assert_*|test_request_host_header_ignores_fqdn_dot|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetry... | "%s:%s" % (self.host, self.port)) | 1,505 | 12 |
urllib3/urllib3 | train | 347 | 1bc219d88ec58fc3ae44bbaa2d2621a812d97daf | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 174 | 12 | assert | test_client_key_password | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | subject["organizationalUnitName"].startswith("Testing server cert") | modified | 6850a305ea513b266abf853cd61ee67d574ada4dd467de1962ea030cef301f37 | assert|test_client_key_password|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_N... | subject["organizationalUnitName"].startswith("Testing server cert") | 173 | 12 |
urllib3/urllib3 | train | 347 | 1bc219d88ec58fc3ae44bbaa2d2621a812d97daf | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 189 | 12 | assert | test_client_encrypted_key_requires_password | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | isinstance(e.value.reason, SSLError) | modified | 931d36d0a620b8a2d237710d07114b0524052d5a362eeb401fd598120c1592ba | assert|test_client_encrypted_key_requires_password|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERME... | isinstance(e.value.reason, SSLError) | 188 | 12 |
urllib3/urllib3 | train | 347 | 1bc219d88ec58fc3ae44bbaa2d2621a812d97daf | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 266 | 20 | assert | test_context_combines_with_ca_certs | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | not warn.called | modified | c390ce0960a44c18da61283361fb71ee6dacc236ff238ba5a93ab4676f451d59 | assert|test_context_combines_with_ca_certs|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PE... | not warn.called | 265 | 20 |
urllib3/urllib3 | train | 347 | 1bc219d88ec58fc3ae44bbaa2d2621a812d97daf | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 311 | 17 | pytest.raises | test_verified_with_bad_ca_certs | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | MaxRetryError) | modified | 6fcfe45d7b628051bbe1c672266fb2799a3ad5a367d25dab9b06aac358505c8a | pytest.raises|test_verified_with_bad_ca_certs|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE... | MaxRetryError) | 310 | 17 |
urllib3/urllib3 | train | 348 | 6ad48b61d74f322a0ae8457f8e3798b542775c96 | train | test/appengine/test_gae_manager.py | test | urllib3/urllib3:test/appengine/test_gae_manager.py | 175 | 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_appengine_sandbox() | added | 8f32365610618b78300f4ae6d11f6df6f95faa124822d6b6149ee3df5c3b895a | 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... | null | null | null |
urllib3/urllib3 | train | 348 | 6ad48b61d74f322a0ae8457f8e3798b542775c96 | 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() | added | 7eaf3e6635e6fc84b704de4fc381f23fd26a6225731c1498ee0018b144c9dca9 | 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... | null | null | null |
urllib3/urllib3 | train | 348 | 6ad48b61d74f322a0ae8457f8e3798b542775c96 | train | test/appengine/test_gae_manager.py | test | urllib3/urllib3:test/appengine/test_gae_manager.py | 177 | 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_prod_appengine() | added | 70fb0d46fd9f35eb83d772198415046b5bfd3f8152e864de17c42576a8301de0 | 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... | null | null | null |
urllib3/urllib3 | train | 348 | 6ad48b61d74f322a0ae8457f8e3798b542775c96 | train | test/appengine/test_gae_manager.py | test | urllib3/urllib3:test/appengine/test_gae_manager.py | 178 | 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_prod_appengine_mvms() | added | 950b149d7460080f9d051bac7ba003c8c6dca5e0f3f72204395512ce6c899d50 | 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... | null | null | null |
urllib3/urllib3 | train | 349 | bb7d3f24876c7c4470ec088d528b53eda3f1fde1 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 153 | 17 | pytest.raises | test_cross_protocol_redirect | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address
from .. import TARPIT_HOST, requires_network
from urllib3._collections import HTTPHeaderDict
from urllib3.pool... | MaxRetryError) | modified | 9a8e4c61ea68ed61033df37a3676f3a8bee3fbfa674707eb65366764e1907ee5 | pytest.raises|test_cross_protocol_redirect|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address from .. import TARPIT_HOST, requires_network from urllib3._collections... | MaxRetryError) | 155 | 17 |
urllib3/urllib3 | train | 349 | bb7d3f24876c7c4470ec088d528b53eda3f1fde1 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 255 | 12 | assert | test_headers | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address
from .. import TARPIT_HOST, requires_network
from urllib3._collections import HTTPHeaderDict
from urllib3.pool... | None | modified | 068734ff6c1987125af17f4eb0a8c62b5dad355129ae75589e2aa101381a30bc | assert|test_headers|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address from .. import TARPIT_HOST, requires_network from urllib3._collections import HTTPHeaderDict ... | None | 257 | 12 |
urllib3/urllib3 | train | 349 | bb7d3f24876c7c4470ec088d528b53eda3f1fde1 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 275 | 12 | assert | test_headerdict | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address
from .. import TARPIT_HOST, requires_network
from urllib3._collections import HTTPHeaderDict
from urllib3.pool... | "quux" | modified | b0e573360bc611e6a36e4787dc523c50a93c0025fdc9fa8d09f56b099484b55a | assert|test_headerdict|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address from .. import TARPIT_HOST, requires_network from urllib3._collections import HTTPHeaderDi... | "bar" | 278 | 12 |
urllib3/urllib3 | train | 349 | bb7d3f24876c7c4470ec088d528b53eda3f1fde1 | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 321 | 17 | pytest.raises | test_https_proxy_timeout | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address
from .. import TARPIT_HOST, requires_network
from urllib3._collections import HTTPHeaderDict
from urllib3.pool... | MaxRetryError) | added | c9ac438471b88c7161f20ed56858d04fabc6da7c845ad36e48394df54e072e9f | pytest.raises|test_https_proxy_timeout|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address from .. import TARPIT_HOST, requires_network from urllib3._collections imp... | null | null | null |
urllib3/urllib3 | train | 350 | fb344af2865f20ecc416b04ed4b739ea8138c08b | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 93 | 12 | assert | test_proxy_verified | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
HAS_IPV6,
get_unreachable_address,
)
from .. import TARPIT_HOST, requires_network
from urllib3._collections import H... | str(e.value.reason) | added | b6750fcd4376b85b118d9d7a09902c8492ac9a23a29414835e9127b7ef7f393c | assert|test_proxy_verified|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, HAS_IPV6, get_unreachable_address, ) from .. import TARPIT_HOST, requires_network from urllib3._collections ... | null | null | null |
urllib3/urllib3 | train | 350 | fb344af2865f20ecc416b04ed4b739ea8138c08b | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 172 | 12 | assert | test_cross_protocol_redirect | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
HAS_IPV6,
get_unreachable_address,
)
from .. import TARPIT_HOST, requires_network
from urllib3._collections import H... | self.https_host | added | a0f4763d4ebf52620026e5dfc646667c29848db999ee36b0a37a36d1365b4a93 | assert|test_cross_protocol_redirect|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, HAS_IPV6, get_unreachable_address, ) from .. import TARPIT_HOST, requires_network from urllib3._col... | null | null | null |
urllib3/urllib3 | train | 350 | fb344af2865f20ecc416b04ed4b739ea8138c08b | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 224 | 12 | assert | test_headers | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
HAS_IPV6,
get_unreachable_address,
)
from .. import TARPIT_HOST, requires_network
from urllib3._collections import H... | "dickory" | added | fba7c95eca94629db7312ab5a688a21214f454286b11c0137d593ec3ec845c97 | assert|test_headers|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, HAS_IPV6, get_unreachable_address, ) from .. import TARPIT_HOST, requires_network from urllib3._collections import ... | null | null | null |
urllib3/urllib3 | train | 350 | fb344af2865f20ecc416b04ed4b739ea8138c08b | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 336 | 17 | pytest.raises | test_https_proxy_pool_timeout | import json
import socket
import pytest
from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA,
DEFAULT_CA_BAD,
HAS_IPV6,
get_unreachable_address,
)
from .. import TARPIT_HOST, requires_network
from urllib3._collections import H... | MaxRetryError) | added | 8667e71e661a27711d5519f3787388424588def6376fee38ec20b8d6c0d3d4a0 | pytest.raises|test_https_proxy_pool_timeout|import json import socket import pytest from dummyserver.testcase import HTTPDummyProxyTestCase, IPv6HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, HAS_IPV6, get_unreachable_address, ) from .. import TARPIT_HOST, requires_network from urll... | null | null | null |
urllib3/urllib3 | train | 351 | fd2666e3f16c62c892e5dd9a5697f537de06628b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 183 | 17 | pytest.raises | test_client_encrypted_key_requires_password | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | MaxRetryError) | modified | 72cb461e21b9fda842b450ca33efe59ad3a323b3c653e0143715880b670c99aa | pytest.raises|test_client_encrypted_key_requires_password|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_... | MaxRetryError) | 185 | 17 |
urllib3/urllib3 | train | 351 | fd2666e3f16c62c892e5dd9a5697f537de06628b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 287 | 12 | assert | test_ca_dir_verified | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | VerifiedHTTPSConnection | modified | 2fb92c9a133a74d7f18dfc51662cdf28fe40d509580eccacdaf90f32cc8638b7 | assert|test_ca_dir_verified|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_IN... | VerifiedHTTPSConnection | 289 | 12 |
urllib3/urllib3 | train | 351 | fd2666e3f16c62c892e5dd9a5697f537de06628b | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 345 | 12 | assert | test_no_ssl | import datetime
import json
import logging
import ssl
import sys
import shutil
import warnings
import mock
import pytest
from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase
from dummyserver.server import (
CLIENT_CERT,
CLIENT_INTERMEDIATE_PEM,
CLIENT_NO_INTERMEDIATE_PEM... | isinstance(cm.value.reason, SSLError) | modified | 1294a2a080e1accac92e4dec9fa5152d9eb9828540501afc5ae8d6b372258161 | assert|test_no_ssl|import datetime import json import logging import ssl import sys import shutil import warnings import mock import pytest from dummyserver.testcase import HTTPSDummyServerTestCase, IPV6HTTPSDummyServerTestCase from dummyserver.server import ( CLIENT_CERT, CLIENT_INTERMEDIATE_PEM, CLIENT_NO_INTERMEDIAT... | isinstance(cm.value.reason, SSLError) | 347 | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.