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 | 112 | 43e84aa14a389241b06f26dd29be8bb1dfd20857 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 274 | 12 | self.assertTrue | test_invalid_timeouts | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
sp... | 'int or float' in str(e)) | added | e908e98755e26b2ddb851d2f8c974d7f9cbcffbff6d94fd4aacc74a8c1684bf4 | self.assertTrue|test_invalid_timeouts|import warnings import logging import unittest import ssl from itertools import chain from mock import patch from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import (... | null | null | null |
urllib3/urllib3 | train | 112 | 43e84aa14a389241b06f26dd29be8bb1dfd20857 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 374 | 8 | self.assertRaises | test_is_fp_closed_object_has_neither_fp_nor_closed | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
sp... | ValueError) | added | 5d4bb2b27a79ecc0dd5f763800acf4a9500d9a5123e4bb60303b0221b9b259f7 | self.assertRaises|test_is_fp_closed_object_has_neither_fp_nor_closed|import warnings import logging import unittest import ssl from itertools import chain from mock import patch from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout... | null | null | null |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 117 | 8 | self.assertEqual | test_retry_exception_str | import unittest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
)
from urllib3.util.timeout import Timeout
from urllib3.packages.ssl_match_hostname import CertificateError
from urllib3.exceptions import (
ClosedPoolError,
EmptyPoolError,
HostChanged... | "HTTPConnectionPool(host='localhost', port=None): " "Max retries exceeded with url: Test. (Caused by None)") | modified | 6a7ada1954b5fdab3c08cdf1160ae123af012ab3d34d04c727f14b7398e745e1 | self.assertEqual|test_retry_exception_str|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolE... | "HTTPConnectionPool(host='localhost', port=None): " "Max retries exceeded with url: Test. (Caused by redirect)") | 117 | 8 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 206 | 8 | self.assertRaises | test_no_host | import unittest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
)
from urllib3.util.timeout import Timeout
from urllib3.packages.ssl_match_hostname import CertificateError
from urllib3.exceptions import (
ClosedPoolError,
EmptyPoolError,
HostChanged... | LocationValueError) | modified | c725238eed7832c7ccafc447e88dada639f33415e0248005356177ac510f92db | self.assertRaises|test_no_host|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolError, HostC... | LocationValueError) | 206 | 8 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 68 | 8 | self.assertFalse | test_retry_total_none | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
ReadTimeoutError,
MaxRetryError
)
class RetryTest(unittest.TestCase):
def test_string(self):
""" ... | retry.is_exhausted()) | modified | bffe4703c6c67107db27e9a351dbbbcd79f372a1e10edc743852f3889fe5fdd9 | self.assertFalse|test_retry_total_none|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, ReadTimeoutError, MaxRetryError ) class RetryTest(unittest.TestCase): def test_string(... | retry.is_exhausted()) | 67 | 8 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 88 | 8 | self.assertFalse | test_retry_default | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
ReadTimeoutError,
MaxRetryError
)
class RetryTest(unittest.TestCase):
def test_string(self):
""" ... | Retry(False).raise_on_redirect) | modified | 4136ebd4fe243c3916857353c0694c854299debd7e3ddf6f475baaa28bd3ef46 | self.assertFalse|test_retry_default|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, ReadTimeoutError, MaxRetryError ) class RetryTest(unittest.TestCase): def test_string(sel... | Retry(False).raise_on_redirect) | 87 | 8 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 151 | 8 | self.assertFalse | test_exhausted | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
ReadTimeoutError,
MaxRetryError
)
class RetryTest(unittest.TestCase):
def test_string(self):
""" ... | Retry(0).is_exhausted()) | modified | 47d3bde8833838679d03ea747c1bf5942c38d82a4f28ca5d46237bb577933edb | self.assertFalse|test_exhausted|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, ReadTimeoutError, MaxRetryError ) class RetryTest(unittest.TestCase): def test_string(self): ... | Retry(0).is_exhausted()) | 150 | 8 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 134 | 16 | self.assertRaises | test_conn_closed | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | socket.error) | modified | 18027ef18798331069cdf3591efbf8051deb19e6a687e880e1729ee5fe475aa1 | self.assertRaises|test_conn_closed|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD... | socket.error) | 135 | 16 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 366 | 12 | self.assertTrue | test_bad_connect | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | isinstance(e.reason, ProtocolError)) | modified | bedf9d23e64609245627781cb4bca6b1acb1541b6b4c2bca836ebfc026cebca8 | self.assertTrue|test_bad_connect|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDR... | isinstance(e.reason, ProtocolError)) | 367 | 12 |
urllib3/urllib3 | train | 113 | a47faf1817b1ddafc476ca985cbcd06b5d13c234 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 643 | 8 | self.assertRaises | test_disabled_retry | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | ProtocolError) | modified | 7c6f3aa843d742b93faf3aadbb283dd4a4e5c0c0a84c5ca8aa41e1e9f199e5d6 | self.assertRaises|test_disabled_retry|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE... | ProtocolError) | 644 | 8 |
urllib3/urllib3 | train | 114 | 07fa77caa512cf21ba5d1e4830a4066d080a3f74 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 19 | 8 | self.assertEqual | test_string | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
MaxRetryError,
ReadTimeoutError,
ResponseError,
)
class RetryTest(unittest.TestCase):
def test_string... | 'Retry(total=10, connect=None, read=None, redirect=None)') | modified | 370d28d6d0244525f74d7ce4b2ab77a4377ef4f3223ec9c107a344e068ce905e | self.assertEqual|test_string|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def test_s... | 'Retry(total=10, connect=None, read=None, redirect=None)') | 18 | 8 |
urllib3/urllib3 | train | 114 | 07fa77caa512cf21ba5d1e4830a4066d080a3f74 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 42 | 8 | self.assertRaises | test_retry_higher_total_loses | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
MaxRetryError,
ReadTimeoutError,
ResponseError,
)
class RetryTest(unittest.TestCase):
def test_string... | MaxRetryError) | modified | bc79f48f898278a0d97466da569011807602440e7853b24aba1261c3a830e291 | self.assertRaises|test_retry_higher_total_loses|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.Te... | MaxRetryError) | 41 | 8 |
urllib3/urllib3 | train | 114 | 07fa77caa512cf21ba5d1e4830a4066d080a3f74 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 152 | 8 | self.assertFalse | test_exhausted | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
MaxRetryError,
ReadTimeoutError,
ResponseError,
)
class RetryTest(unittest.TestCase):
def test_string... | Retry(0).is_exhausted()) | modified | e81d19100321e3cbc11defa05136565377c6892753e8c67a68fefef71b7beed2 | self.assertFalse|test_exhausted|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def tes... | Retry(0).is_exhausted()) | 151 | 8 |
urllib3/urllib3 | train | 114 | 07fa77caa512cf21ba5d1e4830a4066d080a3f74 | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 157 | 8 | self.assertRaises | test_disabled | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
MaxRetryError,
ReadTimeoutError,
ResponseError,
)
class RetryTest(unittest.TestCase):
def test_string... | MaxRetryError) | modified | c4ecb4e474dfa5819b7ead2b39cab0feba60ed214e58c782db7f1b28154f28bf | self.assertRaises|test_disabled|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def tes... | MaxRetryError) | 156 | 8 |
urllib3/urllib3 | train | 115 | ce2e5107fd9c7773fcd76e113de430098905cf8e | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 178 | 12 | self.assertEqual | test_error_message | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
MaxRetryError,
ReadTimeoutError,
ResponseError,
)
class RetryTest(unittest.TestCase):
def test_string... | ResponseError.GENERIC_ERROR) | modified | 6b961f10e9d729aadf1f459c31f1d8ba531aadcfe343e201cc9dc3aef013b9b5 | self.assertEqual|test_error_message|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def... | 'received erroneous response too many times') | 178 | 12 |
urllib3/urllib3 | train | 115 | ce2e5107fd9c7773fcd76e113de430098905cf8e | train | test/test_retry.py | train | urllib3/urllib3:test/test_retry.py | 198 | 12 | self.assertEqual | test_error_message | import unittest
from urllib3.response import HTTPResponse
from urllib3.packages.six.moves import xrange
from urllib3.util.retry import Retry
from urllib3.exceptions import (
ConnectTimeoutError,
MaxRetryError,
ReadTimeoutError,
ResponseError,
)
class RetryTest(unittest.TestCase):
def test_string... | 'conntimeout') | modified | e471dacb7956f3d5a0decd3d414cc8a3bdf535b3dd3d944b3890bc6dca32d511 | self.assertEqual|test_error_message|import unittest from urllib3.response import HTTPResponse from urllib3.packages.six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, MaxRetryError, ReadTimeoutError, ResponseError, ) class RetryTest(unittest.TestCase): def... | 'conntimeout') | 198 | 12 |
urllib3/urllib3 | train | 116 | fbfc9d94a041fdca78574b7fb4a5c737e6554b56 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 223 | 12 | self.assertRaises | test_delayed_body_read_timeout | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | ReadTimeoutError) | added | ff8f52ef27fda0b71568002504f81e3d582f5d9d9b572f00b56502a21692ea4a | self.assertRaises|test_delayed_body_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryEr... | null | null | null |
urllib3/urllib3 | train | 116 | fbfc9d94a041fdca78574b7fb4a5c737e6554b56 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 253 | 8 | self.assertRaises | test_incomplete_response | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | ProtocolError) | added | 9a49c67094d8fc0166e5bc268564543aae1a9e9e3f97e7605a261cbfc4291f3b | self.assertRaises|test_incomplete_response|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, P... | null | null | null |
urllib3/urllib3 | train | 116 | fbfc9d94a041fdca78574b7fb4a5c737e6554b56 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 326 | 8 | self.assertEqual | test_simple | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | sorted([ b'GET http://google.com/ HTTP/1.1', b'Host: google.com', b'Accept-Encoding: identity', b'Accept: */*', b'', b'', ])) | added | 28949041fa2d7d0a8c0f01e6bb8f694d9c6fbd6fc6c29529c773b97204c8e1ac | self.assertEqual|test_simple|# 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, Rea... | null | null | null |
urllib3/urllib3 | train | 116 | fbfc9d94a041fdca78574b7fb4a5c737e6554b56 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 485 | 8 | self.assertRaises | test_ssl_failure_midway_through_conn | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | SSLError) | added | eb2811dfae22acb9c6619cf67978dc601cfcc4c93205076267fe80db221f62ee | self.assertRaises|test_ssl_failure_midway_through_conn|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxR... | null | null | null |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 91 | 12 | self.assertRaises | test_invalid_host | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | LocationParseError) | modified | 14d024e93b161de50fb2dd68deec8f3f06cbf9345ab210c59d82c8c99a371757 | self.assertRaises|test_invalid_host|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url impo... | LocationParseError) | 90 | 12 |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 329 | 8 | self.assertRaises | test_timeout_elapsed | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | TimeoutStateError) | modified | 675e7e80e2ec0d1cd8f13dd7bf49b179cefba0d6aaee4e701590b84dd35d24d9 | self.assertRaises|test_timeout_elapsed|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url i... | TimeoutStateError) | 328 | 8 |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 341 | 8 | self.assertEqual | test_resolve_cert_reqs | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | ssl.CERT_NONE) | modified | 19f518ed10198c6e0f1b03e634146bbb9667b7c5a0e427f8f0f841d265f8c6a1 | self.assertEqual|test_resolve_cert_reqs|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url ... | ssl.CERT_NONE) | 340 | 8 |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 401 | 8 | assert_* | test_ssl_wrap_socket_with_no_sni | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | socket) | added | be1fff3566b6ebeb5ade26b551bb41dc18aea04cf29a2a06fa3e04a2e747cc88 | assert_*|test_ssl_wrap_socket_with_no_sni|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.ur... | null | null | null |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 231 | 8 | self.assertRaises | test_verify_none_and_bad_fingerprint | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS
from test import (
onlyPy26OrOlder,
requir... | SSLError) | modified | f6459ab4def75ae629746f69505be2507271e8c088185a7cdeb0b2b3cff07784 | self.assertRaises|test_verify_none_and_bad_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERT... | SSLError) | 231 | 8 |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 312 | 8 | self.assertRaises | test_enhanced_timeout | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS
from test import (
onlyPy26OrOlder,
requir... | ConnectTimeoutError) | modified | cdb256368013ebfe686d5aa50c3fb799061ceba4eb0399852b1bbd1a39e377f0 | self.assertRaises|test_enhanced_timeout|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS from test imp... | ConnectTimeoutError) | 312 | 8 |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 366 | 8 | self.assertRaises | test_ssl_version_as_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS
from test import (
onlyPy26OrOlder,
requir... | SSLError) | modified | 9563ae026aa679be02536583e2b77112a39816e4fa843000959f185a01699013 | self.assertRaises|test_ssl_version_as_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS from tes... | SSLError) | 366 | 8 |
urllib3/urllib3 | train | 117 | 523860eba6e26ae88be78e7057db621d87869670 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 370 | 8 | self.assertRaises | test_ssl_version_as_short_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS
from test import (
onlyPy26OrOlder,
requir... | SSLError) | modified | f25d8b6dc56c91d95ab0040916b542b650abbeab23b809da337df620c33f4ae7 | self.assertRaises|test_ssl_version_as_short_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS fr... | SSLError) | 370 | 8 |
urllib3/urllib3 | train | 118 | ff926d07307790629f25e1dbc6749b9583a3ee6c | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 54 | 8 | self.assertEqual | test_set_ssl_version_to_tlsv1 | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | r.data) | modified | 6679322e04b0a4316ec43a866364a0b4cec32277753547fe99a93fc20e98d8ac | self.assertEqual|test_set_ssl_version_to_tlsv1|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_S... | r.data) | 53 | 8 |
urllib3/urllib3 | train | 118 | ff926d07307790629f25e1dbc6749b9583a3ee6c | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 104 | 12 | self.assertTrue | test_verified_without_ca_certs | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | 'No root certificates specified' in str(e) or 'certificate verify failed' in str(e)) | modified | 0bfbc3ca4e098dce28dab39d58ade53a75db2f575c46500c81571cd134e2b5f9 | self.assertTrue|test_verified_without_ca_certs|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_S... | 'No root certificates specified' in str(e) or 'certificate verify failed' in str(e)) | 103 | 12 |
urllib3/urllib3 | train | 118 | ff926d07307790629f25e1dbc6749b9583a3ee6c | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 218 | 8 | self.assertRaises | test_assert_invalid_fingerprint | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | modified | be319ea80f011a62a470fc9669ceb3f13107e9d26a19a22a3c77bd9cd8e1d6a0 | self.assertRaises|test_assert_invalid_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, N... | SSLError) | 217 | 8 |
urllib3/urllib3 | train | 118 | ff926d07307790629f25e1dbc6749b9583a3ee6c | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 367 | 8 | self.assertRaises | test_ssl_version_as_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | modified | 10ca2d6d9723ec0160a9048c6de0d7cfba876bcbfc37dba6e21552aef26f4e9c | self.assertRaises|test_ssl_version_as_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN... | SSLError) | 366 | 8 |
urllib3/urllib3 | train | 119 | 48c75d3e1f5ef49501e6622bd1762de8bce2a644 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 371 | 8 | self.assertRaises | test_ssl_version_as_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | 0381a4331c203e1f7bc42c87ad6e6da86ca415e1fa251e1ea722ea0e4d6559e8 | self.assertRaises|test_ssl_version_as_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN... | null | null | null |
urllib3/urllib3 | train | 119 | 48c75d3e1f5ef49501e6622bd1762de8bce2a644 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 375 | 8 | self.assertRaises | test_ssl_version_as_short_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | cf3630caa8763f21dac230b129f05637a1120932de9d6d5dfa34af240a3aff3f | self.assertRaises|test_ssl_version_as_short_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ... | null | null | null |
urllib3/urllib3 | train | 119 | 48c75d3e1f5ef49501e6622bd1762de8bce2a644 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 379 | 8 | self.assertRaises | test_discards_connection_on_sslerror | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | 1e398bfb9a73d87d6313d025a62dbca021c7c262c04217211e16ad174d82cfb8 | self.assertRaises|test_discards_connection_on_sslerror|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CER... | null | null | null |
urllib3/urllib3 | train | 119 | 48c75d3e1f5ef49501e6622bd1762de8bce2a644 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 396 | 12 | self.assertTrue | test_warning_for_certs_without_a_san | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | warn.called) | added | e2aeadd43957bd6b532cbadafe3eedf6ade46042b28d04463446d81a236ada4a | self.assertTrue|test_warning_for_certs_without_a_san|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS... | null | null | null |
urllib3/urllib3 | train | 120 | a1a5a94ec949829cd69c8c3ab3f038d65b549512 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 177 | 8 | self.assertTrue | test_disable_default_socket_options | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | using_nagle) | added | dd019b701280c19dbe099c71b911cb9a1530f355ec4e2a4c9068e3ee7d61b6c8 | self.assertTrue|test_disable_default_socket_options|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, ... | null | null | null |
urllib3/urllib3 | train | 120 | a1a5a94ec949829cd69c8c3ab3f038d65b549512 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 248 | 8 | self.assertRaises | test_connect_timeout | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | ConnectTimeoutError) | modified | e27065bfb1f302258973bd66ab3aaeb3211460f70f212b7d2d3403b2559c4e24 | self.assertRaises|test_connect_timeout|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURC... | MaxRetryError) | 245 | 8 |
urllib3/urllib3 | train | 120 | a1a5a94ec949829cd69c8c3ab3f038d65b549512 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 535 | 8 | self.assertEqual | test_lazy_load_twice | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | resp_data[:first_chunk]) | modified | 6a1f18e1386249fbdfce56a2ee702e6e9dc5969d297498321bae7a6653e83d3c | self.assertEqual|test_lazy_load_twice|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE... | resp2_data[:first_chunk]) | 537 | 12 |
urllib3/urllib3 | train | 120 | a1a5a94ec949829cd69c8c3ab3f038d65b549512 | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 621 | 8 | self.assertEqual | test_httplib_headers_case_insensitive | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | dict(r.headers.items())) | added | dad2094d8c29d25dbab3e2131841b86963a4fd35aeb3eee8fd443c8e70b0bcf7 | self.assertEqual|test_httplib_headers_case_insensitive|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSE... | null | null | null |
urllib3/urllib3 | train | 121 | 03240df20bd43bf2e996210021e86beed99e71ff | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 473 | 8 | self.assertEqual | test_check_deflate | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | 'deflate') | modified | d78832e7d723aaa79acf09ae6f3596ece8b00712958f3e971cabfa1f471ceb43 | self.assertEqual|test_check_deflate|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_A... | 'deflate') | 473 | 8 |
urllib3/urllib3 | train | 121 | 03240df20bd43bf2e996210021e86beed99e71ff | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 514 | 8 | self.assertEqual | test_partial_response | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | resp_data[5:]) | modified | a3619395a12c117e83cb9a46d20301ead8458e736c2cc4e3f3f8152c9af1809a | self.assertEqual|test_partial_response|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURC... | resp_data[5:]) | 514 | 8 |
urllib3/urllib3 | train | 121 | 03240df20bd43bf2e996210021e86beed99e71ff | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 593 | 8 | self.assertEqual | test_release_conn_parameter | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | MAXSIZE-1) | modified | 0795d8112fed30260ac6a844706e1c8cad357e59a70fdb4bae234336f0025278 | self.assertEqual|test_release_conn_parameter|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID... | MAXSIZE-1) | 593 | 8 |
urllib3/urllib3 | train | 121 | 03240df20bd43bf2e996210021e86beed99e71ff | train | test/with_dummyserver/test_connectionpool.py | train | urllib3/urllib3:test/with_dummyserver/test_connectionpool.py | 604 | 12 | assert | test_source_address | import errno
import logging
import socket
import sys
import unittest
import time
import mock
try:
from urllib.parse import urlencode
except:
from urllib import urlencode
from .. import (
requires_network, onlyPy3, onlyPy26OrOlder,
TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,
)
from ... | b(addr[0]) | modified | 0597ec5332edf3affba6ebba60eae7fd1bd23d1bd76a507450a70b05d62439b1 | assert|test_source_address|import errno import logging import socket import sys import unittest import time import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_ADDRESSES,... | b(addr[0]) | 604 | 12 |
urllib3/urllib3 | train | 122 | 736f040b6066b47944e4627cd3a9353bbf4a895c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 102 | 12 | self.assertTrue | test_proxy_verified | import json
import socket
import unittest
from nose.tools import timed
from dummyserver.testcase import HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address)
from .. import TARPIT_HOST
from urllib3.poolmanager import proxy_from_url, ProxyManager
from urllib3... | "doesn't match" in str(e)) | added | 42724009d6dcae0654ee129c5bb2df8ea141bd94337c978032d5ce3d69ebdf7b | self.assertTrue|test_proxy_verified|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3.poolmanager import proxy_from_u... | null | null | null |
urllib3/urllib3 | train | 122 | 736f040b6066b47944e4627cd3a9353bbf4a895c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 117 | 8 | self.assertEqual | test_redirect | import json
import socket
import unittest
from nose.tools import timed
from dummyserver.testcase import HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address)
from .. import TARPIT_HOST
from urllib3.poolmanager import proxy_from_url, ProxyManager
from urllib3... | b'Dummy server!') | added | e49683af4657924a41863dd8b1fa3b91ab2a6cd0cac629e4ae508e7dc0bbcb63 | self.assertEqual|test_redirect|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3.poolmanager import proxy_from_url, P... | null | null | null |
urllib3/urllib3 | train | 122 | 736f040b6066b47944e4627cd3a9353bbf4a895c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 213 | 8 | self.assertEqual | test_headers | import json
import socket
import unittest
from nose.tools import timed
from dummyserver.testcase import HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address)
from .. import TARPIT_HOST
from urllib3.poolmanager import proxy_from_url, ProxyManager
from urllib3... | 'quux') | modified | 556527571f5b269289951f554ea935d16109a9cb35f6e4469bd274c83b8b1e2f | self.assertEqual|test_headers|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3.poolmanager import proxy_from_url, Pr... | 'dickory') | 210 | 8 |
urllib3/urllib3 | train | 122 | 736f040b6066b47944e4627cd3a9353bbf4a895c | train | test/with_dummyserver/test_proxy_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_proxy_poolmanager.py | 284 | 12 | assert | test_https_proxy_pool_timeout | import json
import socket
import unittest
from nose.tools import timed
from dummyserver.testcase import HTTPDummyProxyTestCase
from dummyserver.server import (
DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address)
from .. import TARPIT_HOST
from urllib3.poolmanager import proxy_from_url, ProxyManager
from urllib3... | isinstance(e.reason, ConnectTimeoutError) | added | 06997cb0b7f22d1a04bdf03db84bd36be6f199a51ea4c5abf48b5a242d215504 | assert|test_https_proxy_pool_timeout|import json import socket import unittest from nose.tools import timed from dummyserver.testcase import HTTPDummyProxyTestCase from dummyserver.server import ( DEFAULT_CA, DEFAULT_CA_BAD, get_unreachable_address) from .. import TARPIT_HOST from urllib3.poolmanager import proxy_from_... | null | null | null |
urllib3/urllib3 | train | 123 | 532a4a5257f40265a22fb93778f818f8231116b1 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 557 | 8 | self.assertRaises | test_ssl_failed_fingerprint_verification | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | SSLError) | added | 063b31f5b79edaffd7a59e4e62404878b6a9dffe203089b568a0fa581358df33 | self.assertRaises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( ... | null | null | null |
urllib3/urllib3 | train | 123 | 532a4a5257f40265a22fb93778f818f8231116b1 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 559 | 8 | self.assertRaises | test_ssl_failed_fingerprint_verification | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | SSLError) | added | 82cbadc691ecc52e6c587c58dd497d87d1033fb6878ca18678512a17e86b872a | self.assertRaises|test_ssl_failed_fingerprint_verification|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( ... | null | null | null |
urllib3/urllib3 | train | 123 | 532a4a5257f40265a22fb93778f818f8231116b1 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 589 | 8 | self.assertRaises | test_bad_statusline | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | ProtocolError) | added | d82161cfcbdb4bc7c3ecc1edae80a14b93713e0c03796dbffd14f024fb7e6e3f | self.assertRaises|test_bad_statusline|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, ProxyE... | null | null | null |
urllib3/urllib3 | train | 123 | 532a4a5257f40265a22fb93778f818f8231116b1 | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 599 | 8 | self.assertRaises | test_unknown_protocol | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | ProtocolError) | added | 809fd66a073b48e581ddc4d7a11f86af10b7aa69c0729b2488c14194300d4174 | self.assertRaises|test_unknown_protocol|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, Prox... | null | null | null |
urllib3/urllib3 | train | 124 | 0b6a8e487ca64ef9304aa6c5cab455ebcdf3d7cb | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 155 | 8 | self.assertTrue | test_body_blob | import unittest
from io import BytesIO, BufferedReader
from urllib3.response import HTTPResponse
from urllib3.exceptions import DecodeError
from base64 import b64decode
# A known random (i.e, not-too-compressible) payload generated with:
# "".join(random.choice(string.printable) for i in xrange(512))
# .enco... | resp.closed) | added | 87480e2a948d3d3ce0e81a358f01643f7c3d142b878d3482c240a9bfd1cfa39c | self.assertTrue|test_body_blob|import unittest from io import BytesIO, BufferedReader from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError from base64 import b64decode # A known random (i.e, not-too-compressible) payload generated with: # "".join(random.choice(string.printable) for i in ... | null | null | null |
urllib3/urllib3 | train | 124 | 0b6a8e487ca64ef9304aa6c5cab455ebcdf3d7cb | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 170 | 8 | self.assertRaises | test_io | import unittest
from io import BytesIO, BufferedReader
from urllib3.response import HTTPResponse
from urllib3.exceptions import DecodeError
from base64 import b64decode
# A known random (i.e, not-too-compressible) payload generated with:
# "".join(random.choice(string.printable) for i in xrange(512))
# .enco... | IOError) | added | 01dd7d4f16956ef9ecf0577230463d6b2c9da5b805f215409278523253254120 | self.assertRaises|test_io|import unittest from io import BytesIO, BufferedReader from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError from base64 import b64decode # A known random (i.e, not-too-compressible) payload generated with: # "".join(random.choice(string.printable) for i in xrang... | null | null | null |
urllib3/urllib3 | train | 124 | 0b6a8e487ca64ef9304aa6c5cab455ebcdf3d7cb | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 241 | 8 | self.assertRaises | test_streaming | import unittest
from io import BytesIO, BufferedReader
from urllib3.response import HTTPResponse
from urllib3.exceptions import DecodeError
from base64 import b64decode
# A known random (i.e, not-too-compressible) payload generated with:
# "".join(random.choice(string.printable) for i in xrange(512))
# .enco... | StopIteration) | added | 3ca37330d93c0a0e5a8445c0f3678f537875f59a192eb56fa635dac13e325664 | self.assertRaises|test_streaming|import unittest from io import BytesIO, BufferedReader from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError from base64 import b64decode # A known random (i.e, not-too-compressible) payload generated with: # "".join(random.choice(string.printable) for i i... | null | null | null |
urllib3/urllib3 | train | 124 | 0b6a8e487ca64ef9304aa6c5cab455ebcdf3d7cb | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 373 | 8 | self.assertRaises | test_deflate2_streaming | import unittest
from io import BytesIO, BufferedReader
from urllib3.response import HTTPResponse
from urllib3.exceptions import DecodeError
from base64 import b64decode
# A known random (i.e, not-too-compressible) payload generated with:
# "".join(random.choice(string.printable) for i in xrange(512))
# .enco... | StopIteration) | added | a3d7e5cdb50dc125e34762ab59ab95163444e60b497b54200f1c8cace97da5f0 | self.assertRaises|test_deflate2_streaming|import unittest from io import BytesIO, BufferedReader from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError from base64 import b64decode # A known random (i.e, not-too-compressible) payload generated with: # "".join(random.choice(string.printable... | null | null | null |
urllib3/urllib3 | train | 125 | f450228e4e427fa7230de7c12a855a829e0812ac | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 233 | 8 | self.assertRaises | test_assert_invalid_fingerprint | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | 9d54863da96771d58f680d3389198955da83c1b3732a27692913dadf55c420bb | self.assertRaises|test_assert_invalid_fingerprint|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, N... | null | null | null |
urllib3/urllib3 | train | 125 | f450228e4e427fa7230de7c12a855a829e0812ac | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 274 | 8 | self.assertRaises | test_https_timeout | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | ReadTimeoutError) | added | b38ce31231b9076a3c0217bbfa3bfed51142e57204c7bd003cc08cd455e3fb09 | self.assertRaises|test_https_timeout|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, ... | null | null | null |
urllib3/urllib3 | train | 125 | f450228e4e427fa7230de7c12a855a829e0812ac | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 329 | 8 | self.assertRaises | test_enhanced_timeout | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | ConnectTimeoutError) | added | 808afc3ec942914062a8f3ec55dbeb84ea5a7354862f485511551fa961b13524 | self.assertRaises|test_enhanced_timeout|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERT... | null | null | null |
urllib3/urllib3 | train | 125 | f450228e4e427fa7230de7c12a855a829e0812ac | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 406 | 12 | self.assertTrue | test_warning_for_certs_without_a_san | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | warn.called) | added | 30e38410c6a0187aa1d62954e94279d449cb41550a5433d4ea7ab15551436958 | self.assertTrue|test_warning_for_certs_without_a_san|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS... | null | null | null |
urllib3/urllib3 | train | 126 | bc8bfdf51ea113b6728c047840ce9890e9de8d0d | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 332 | 8 | self.assertRaises | test_enhanced_timeout | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | ConnectTimeoutError) | modified | 048c603900d9c3259b8089c6860dddf343c11290110e3b2eef05af11efc51132 | self.assertRaises|test_enhanced_timeout|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERT... | ConnectTimeoutError) | 329 | 8 |
urllib3/urllib3 | train | 126 | bc8bfdf51ea113b6728c047840ce9890e9de8d0d | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 373 | 12 | self.assertEqual | test_ssl_wrong_system_time | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | warning.category) | added | 17e15fcd9a377672a031230a0525ee04e5337e37329ae72223c185ad9b324599 | self.assertEqual|test_ssl_wrong_system_time|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_... | null | null | null |
urllib3/urllib3 | train | 126 | bc8bfdf51ea113b6728c047840ce9890e9de8d0d | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 390 | 8 | self.assertRaises | test_ssl_version_as_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | 449aa0e4405bd489d67eaba81640e694f64e1c142229e185e4fbe4bab21df2a1 | self.assertRaises|test_ssl_version_as_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN... | null | null | null |
urllib3/urllib3 | train | 126 | bc8bfdf51ea113b6728c047840ce9890e9de8d0d | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 398 | 8 | self.assertRaises | test_discards_connection_on_sslerror | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | d95010f05fdc3152c0cdaa94dde54befcf5b08af78319c234c7cefe7d8a15c87 | self.assertRaises|test_discards_connection_on_sslerror|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CER... | null | null | null |
urllib3/urllib3 | train | 127 | fa00541fe217580fa8f932245538b5848be610e5 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 221 | 8 | self.assertRaises | test_contextmanager | import unittest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
)
from urllib3.util.timeout import Timeout
from urllib3.packages.ssl_match_hostname import CertificateError
from urllib3.exceptions import (
ClosedPoolError,
EmptyPoolError,
HostChanged... | ClosedPoolError) | added | 644ae239fcedd55c17afef51f989468c2dab16ed94bd2a630aab4a8a55794c94 | self.assertRaises|test_contextmanager|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolError... | null | null | null |
urllib3/urllib3 | train | 127 | fa00541fe217580fa8f932245538b5848be610e5 | train | test/test_connectionpool.py | train | urllib3/urllib3:test/test_connectionpool.py | 225 | 8 | self.assertRaises | test_contextmanager | import unittest
from urllib3.connectionpool import (
connection_from_url,
HTTPConnection,
HTTPConnectionPool,
)
from urllib3.util.timeout import Timeout
from urllib3.packages.ssl_match_hostname import CertificateError
from urllib3.exceptions import (
ClosedPoolError,
EmptyPoolError,
HostChanged... | ClosedPoolError) | added | 6fe072b9e0ef350975ddb21c90be78c39ea161becaa4d0663392b2dd9002e7a7 | self.assertRaises|test_contextmanager|import unittest from urllib3.connectionpool import ( connection_from_url, HTTPConnection, HTTPConnectionPool, ) from urllib3.util.timeout import Timeout from urllib3.packages.ssl_match_hostname import CertificateError from urllib3.exceptions import ( ClosedPoolError, EmptyPoolError... | null | null | null |
urllib3/urllib3 | train | 127 | fa00541fe217580fa8f932245538b5848be610e5 | train | test/test_poolmanager.py | train | urllib3/urllib3:test/test_poolmanager.py | 82 | 8 | self.assertRaises | test_contextmanager | import unittest
from urllib3.poolmanager import PoolManager
from urllib3 import connection_from_url
from urllib3.exceptions import (
ClosedPoolError,
LocationValueError,
)
class TestPoolManager(unittest.TestCase):
def test_same_url(self):
# Convince ourselves that normally we don't get the same o... | ClosedPoolError) | added | 8d56218622a5ca12fcd23cca9c359c1c3d7843b3a53b5c86c31fdbe87570d027 | self.assertRaises|test_contextmanager|import unittest from urllib3.poolmanager import PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError, LocationValueError, ) class TestPoolManager(unittest.TestCase): def test_same_url(self): # Convince ourselves that normally we don't... | null | null | null |
urllib3/urllib3 | train | 127 | fa00541fe217580fa8f932245538b5848be610e5 | train | test/test_poolmanager.py | train | urllib3/urllib3:test/test_poolmanager.py | 86 | 8 | self.assertRaises | test_contextmanager | import unittest
from urllib3.poolmanager import PoolManager
from urllib3 import connection_from_url
from urllib3.exceptions import (
ClosedPoolError,
LocationValueError,
)
class TestPoolManager(unittest.TestCase):
def test_same_url(self):
# Convince ourselves that normally we don't get the same o... | ClosedPoolError) | added | efef68df25bda724efdb9136fe9c2031c54753ba6fc89ec54dfcb855d6999027 | self.assertRaises|test_contextmanager|import unittest from urllib3.poolmanager import PoolManager from urllib3 import connection_from_url from urllib3.exceptions import ( ClosedPoolError, LocationValueError, ) class TestPoolManager(unittest.TestCase): def test_same_url(self): # Convince ourselves that normally we don't... | null | null | null |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 165 | 8 | self.assertEqual | test_update | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
for i in xrange(5):
d[i] = st... | ['foo', 'bar', 'with, comma']) | added | f34d5317f397d30ea305be31709240fa0480029d1106a35a1c7b92e50376d8ca | self.assertEqual|test_update|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.asser... | null | null | null |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 169 | 8 | self.assertFalse | test_delitem | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
for i in xrange(5):
d[i] = st... | 'a' in self.d) | added | c2ac1c4dabc48d82fefff3738977cc5c8d48041943c801e1ef226d08ee6d85e0 | self.assertFalse|test_delitem|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.asse... | null | null | null |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 170 | 8 | self.assertFalse | test_delitem | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
for i in xrange(5):
d[i] = st... | 'A' in self.d) | added | 7ff68688779ac7437728d762fb81a45048c0de2211796cc58974182f733bef98 | self.assertFalse|test_delitem|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.asse... | null | null | null |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 73 | 8 | self.assertTrue | test_hostname_in_first_request_packet | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | self.host.encode() in self.buf) | modified | 0f6cda111edc4e124e61bbb728309e50a6b5392fe4d03996aafedad26c5cedfe | self.assertTrue|test_hostname_in_first_request_packet|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRe... | self.host.encode() in self.buf) | 72 | 8 |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 137 | 12 | self.assertRaises | test_connection_read_timeout | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | ReadTimeoutError) | modified | fe881e07b40246dc9fe480adefd213e95c61389fe4773cb789a4dc02355cc807 | self.assertRaises|test_connection_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryErro... | ReadTimeoutError) | 136 | 12 |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 327 | 8 | self.assertEqual | test_simple | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | sorted([ b'GET http://google.com/ HTTP/1.1', b'Host: google.com', b'Accept-Encoding: identity', b'Accept: */*', b'', b'', ])) | modified | 742306cf1f4241274dd5aaa8b04b90df7b26d370f4e1b1738dd6e8f77e711568 | self.assertEqual|test_simple|# 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, Rea... | sorted([ b'GET http://google.com/ HTTP/1.1', b'Host: google.com', b'Accept-Encoding: identity', b'Accept: */*', b'', b'', ])) | 326 | 8 |
urllib3/urllib3 | train | 128 | 5193cdaf7aa881cd2350649bcfdc6f63733d2efe | train | test/with_dummyserver/test_socketlevel.py | train | urllib3/urllib3:test/with_dummyserver/test_socketlevel.py | 521 | 12 | self.assertRaises | test_ssl_read_timeout | # TODO: Break this module up into pieces. Maybe group by functionality tested
# rather than the socket level-ness of it.
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTim... | ReadTimeoutError) | modified | 9c8140b2d8c7a92e8693664bb845a947567497e62e9617e2a9b7223fee65bc63 | self.assertRaises|test_ssl_read_timeout|# TODO: Break this module up into pieces. Maybe group by functionality tested # rather than the socket level-ness of it. from urllib3 import HTTPConnectionPool, HTTPSConnectionPool from urllib3.poolmanager import proxy_from_url from urllib3.exceptions import ( MaxRetryError, Prox... | ReadTimeoutError) | 520 | 12 |
urllib3/urllib3 | train | 129 | 4d4fb55e76ff3893206bf036ff462c1e39782fa3 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 51 | 8 | self.assertEqual | test_same_key | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | ['foo']) | modified | 164680b7bea69baee518e9a0edeeedb3e932b67c213bff72e1f453ff0ddbb8c8 | self.assertEqual|test_same_key|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for... | ['foo']) | 50 | 8 |
urllib3/urllib3 | train | 129 | 4d4fb55e76ff3893206bf036ff462c1e39782fa3 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 114 | 8 | self.assertEqual | test_disposal | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | list(xrange(1, 6))) | modified | 3edaab97b2ee3948e12c5e4baa09766eb1d513a482d72bf0973fd3b292beff8d | self.assertEqual|test_disposal|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for... | list(xrange(1, 6))) | 113 | 8 |
urllib3/urllib3 | train | 129 | 4d4fb55e76ff3893206bf036ff462c1e39782fa3 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 192 | 8 | self.assertEqual | test_getlist | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | ['foo', 'bar']) | added | 547ad24e27ab6e85a3a82cdc95e362e5c09c99a7a07fda7f3f3db9ed331b4b71 | self.assertEqual|test_getlist|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for ... | null | null | null |
urllib3/urllib3 | train | 129 | 4d4fb55e76ff3893206bf036ff462c1e39782fa3 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 228 | 8 | self.assertTrue | test_pop | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | dummy is self.d.pop(key, dummy)) | added | 59e860afe7b141d3acc2ad130db204c431a1db80c0fe647a42cd74fae22264f7 | self.assertTrue|test_pop|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in ... | null | null | null |
urllib3/urllib3 | train | 130 | e54d1b96d9d627bdd48e73ca6f507303f2223516 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 31 | 8 | self.assertEqual | test_redirect | import unittest
import json
from dummyserver.testcase import (HTTPDummyServerTestCase,
IPv6HTTPDummyServerTestCase)
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, SSLError
from urllib3.util.re... | b'Dummy server!') | modified | 9883a454799497c6b53e54e77648f629f3343bf7e5614bc652259e4b5aaacddb | self.assertEqual|test_redirect|import unittest import json from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError, SSLError from urllib3.util.retry ... | b'Dummy server!') | 30 | 8 |
urllib3/urllib3 | train | 130 | e54d1b96d9d627bdd48e73ca6f507303f2223516 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 46 | 8 | self.assertEqual | test_redirect_twice | import unittest
import json
from dummyserver.testcase import (HTTPDummyServerTestCase,
IPv6HTTPDummyServerTestCase)
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, SSLError
from urllib3.util.re... | b'Dummy server!') | modified | fd59244a782874d3943304df0c8742241e4e90f49965cb18884c42e4e03133d8 | self.assertEqual|test_redirect_twice|import unittest import json from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError, SSLError from urllib3.util.... | b'Dummy server!') | 45 | 8 |
urllib3/urllib3 | train | 130 | e54d1b96d9d627bdd48e73ca6f507303f2223516 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 80 | 8 | self.assertEqual | test_cross_host_redirect | import unittest
import json
from dummyserver.testcase import (HTTPDummyServerTestCase,
IPv6HTTPDummyServerTestCase)
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, SSLError
from urllib3.util.re... | self.host_alt) | modified | ed8ea5683e0745c9189d16c09ca2c346446be70e5d8dcbc6ea47761f3e4e724f | self.assertEqual|test_cross_host_redirect|import unittest import json from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError, SSLError from urllib3.... | self.host_alt) | 79 | 8 |
urllib3/urllib3 | train | 130 | e54d1b96d9d627bdd48e73ca6f507303f2223516 | train | test/with_dummyserver/test_poolmanager.py | train | urllib3/urllib3:test/with_dummyserver/test_poolmanager.py | 126 | 8 | self.assertEqual | test_missing_port | import unittest
import json
from dummyserver.testcase import (HTTPDummyServerTestCase,
IPv6HTTPDummyServerTestCase)
from urllib3.poolmanager import PoolManager
from urllib3.connectionpool import port_by_scheme
from urllib3.exceptions import MaxRetryError, SSLError
from urllib3.util.re... | b'Dummy server!') | added | 1150a752ae805f632036263e96a93f7fbceacfeea374f16a56bcaa3349e25074 | self.assertEqual|test_missing_port|import unittest import json from dummyserver.testcase import (HTTPDummyServerTestCase, IPv6HTTPDummyServerTestCase) from urllib3.poolmanager import PoolManager from urllib3.connectionpool import port_by_scheme from urllib3.exceptions import MaxRetryError, SSLError from urllib3.util.re... | null | null | null |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 139 | 12 | self.assertEqual | test_parse_url | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | expected_Url) | modified | c8beced7bb64c97bce84d30d7d36a63392c38c1322b053f58e72efcd1df8cb36 | self.assertEqual|test_parse_url|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import (... | expected_Url) | 136 | 12 |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 143 | 12 | self.assertEqual | test_unparse_url | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | expected_Url.url) | modified | 1139dcc122d13e3a9adc7cc1c4ddbb4dba2d51f99ae68012dedb60a7912fdf5c | self.assertEqual|test_unparse_url|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import... | expected_Url.url) | 140 | 12 |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 166 | 12 | self.assertEqual | test_request_uri | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | expected_request_uri) | modified | 61f1f79b00bf7a698b68f96ce85d30590c3a8cbb1bbb9bb3cff7909cb0d4e73d | self.assertEqual|test_request_uri|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.url import... | expected_request_uri) | 163 | 12 |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/test_util.py | train | urllib3/urllib3:test/test_util.py | 404 | 8 | assert_* | test_ssl_wrap_socket_with_no_sni | import warnings
import logging
import unittest
import ssl
from itertools import chain
from mock import patch, Mock
from urllib3 import add_stderr_logger, disable_warnings
from urllib3.util.request import make_headers
from urllib3.util.timeout import Timeout
from urllib3.util.url import (
get_host,
parse_url,
... | socket) | modified | b8d6ac7a9ba96bb8320b086e0862e714b7edfd5afdb7e1afaf198e21c611486c | assert_*|test_ssl_wrap_socket_with_no_sni|import warnings import logging import unittest import ssl from itertools import chain from mock import patch, Mock from urllib3 import add_stderr_logger, disable_warnings from urllib3.util.request import make_headers from urllib3.util.timeout import Timeout from urllib3.util.ur... | socket) | 401 | 8 |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 85 | 12 | self.assertTrue | test_invalid_common_name | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | "doesn't match" in str(e)) | added | b3a1def35ddfdbf1551eacad188ccb22e98a9496efb040c479adb30fe67517ac | self.assertTrue|test_invalid_common_name|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CER... | null | null | null |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 122 | 8 | self.assertRaises | test_no_ssl | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | 67e048ee4138deb2f94a9dacd8c9c5b591266782ec7a3e0460673132d41e70ff | self.assertRaises|test_no_ssl|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, NO_SAN_... | null | null | null |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 132 | 12 | self.assertTrue | test_unverified_ssl | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | warn.called) | added | 7ce64d475817eaca2600d5f65748d4243f31b3ac0e71c6de955e67327a2914df | self.assertTrue|test_unverified_ssl|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, NO_SAN_CERTS, N... | null | null | null |
urllib3/urllib3 | train | 131 | fb5e39af60dc5751f5400e641dc7db956ed06489 | train | test/with_dummyserver/test_https.py | train | urllib3/urllib3:test/with_dummyserver/test_https.py | 405 | 8 | self.assertRaises | test_ssl_version_as_short_string | import datetime
import logging
import ssl
import sys
import unittest
import warnings
import mock
from nose.plugins.skip import SkipTest
from dummyserver.testcase import HTTPSDummyServerTestCase
from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS,
NO_SAN_CERTS, NO_... | SSLError) | added | c1bea02e3786cc6f9375a4024f36c56b37b1c73775c3e7c28dabfe49908545c1 | self.assertRaises|test_ssl_version_as_short_string|import datetime import logging import ssl import sys import unittest import warnings import mock from nose.plugins.skip import SkipTest from dummyserver.testcase import HTTPSDummyServerTestCase from dummyserver.server import (DEFAULT_CA, DEFAULT_CA_BAD, DEFAULT_CERTS, ... | null | null | null |
urllib3/urllib3 | train | 132 | af603b0a77b1a0effc454a9c06d78a90a95104d0 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 159 | 8 | self.assertEqual | test_getlist_after_copy | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | HTTPHeaderDict(self.d).getlist('cookie')) | added | 1514bbf68364564521a712e490bff71d45959b725afe5c485416ab2cb18aa50a | self.assertEqual|test_getlist_after_copy|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Contai... | null | null | null |
urllib3/urllib3 | train | 132 | af603b0a77b1a0effc454a9c06d78a90a95104d0 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 170 | 8 | self.assertEqual | test_add_comma_separated_multiheader | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | ['foo', 'bar', 'asdf']) | added | ac227c49eb86da6ceaa796c78137e7daf7ab9f19a3b76f763c962b347134eaa8 | self.assertEqual|test_add_comma_separated_multiheader|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self... | null | null | null |
urllib3/urllib3 | train | 132 | af603b0a77b1a0effc454a9c06d78a90a95104d0 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 200 | 8 | self.assertFalse | test_delitem | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | 'cookie' in self.d) | added | 24671432db5249d58aeadfa74e5ea18c86556f530483dcf8a02b39e98e947234 | self.assertFalse|test_delitem|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for ... | null | null | null |
urllib3/urllib3 | train | 132 | af603b0a77b1a0effc454a9c06d78a90a95104d0 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 270 | 8 | self.assertEqual | test_from_httplib | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
fo... | 'nginx') | modified | cf9cfd79af15d854b01721e4143cc474248b5a430751972b7c3855beff0552b1 | self.assertEqual|test_from_httplib|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5)... | 'nginx') | 273 | 8 |
urllib3/urllib3 | train | 133 | 9dafd9b96b74c3a33c4bce88a53ed5a3d0518073 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 202 | 8 | self.assertEqual | test_add_well_known_multiheader | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
f... | ['foo', 'bar', 'asdf']) | added | 3a15aab2a3e96d01d62afec10306177b47918770210a417e49c5e2f7214f30fb | self.assertEqual|test_add_well_known_multiheader|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d ... | null | null | null |
urllib3/urllib3 | train | 133 | 9dafd9b96b74c3a33c4bce88a53ed5a3d0518073 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 227 | 8 | self.assertEqual | test_extend_from_container | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
f... | 'foofoo') | added | 17eb73f1473b055d7e003fdebd3247f0adece75391a4c5533bd86be045f676fb | self.assertEqual|test_extend_from_container|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Con... | null | null | null |
urllib3/urllib3 | train | 133 | 9dafd9b96b74c3a33c4bce88a53ed5a3d0518073 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 234 | 8 | self.assertEqual | test_extend_from_headerdict | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
f... | 'foofoo') | added | a742621db3b6f000df5cbc357f6b07e5be100eb4552847006bfef246dc3c7445 | self.assertEqual|test_extend_from_headerdict|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Co... | null | null | null |
urllib3/urllib3 | train | 133 | 9dafd9b96b74c3a33c4bce88a53ed5a3d0518073 | train | test/test_collections.py | train | urllib3/urllib3:test/test_collections.py | 244 | 8 | self.assertEqual | test_getlist | import unittest
from urllib3._collections import (
HTTPHeaderDict,
RecentlyUsedContainer as Container
)
from urllib3.packages import six
xrange = six.moves.xrange
from nose.plugins.skip import SkipTest
class TestLRUContainer(unittest.TestCase):
def test_maxsize(self):
d = Container(5)
f... | ['foo', 'bar']) | added | 2074ed0850f5def4f3cd7ce6d7692bce6f72e6b027d7bd3466a40517442c7569 | self.assertEqual|test_getlist|import unittest from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) from urllib3.packages import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for ... | null | null | null |
urllib3/urllib3 | train | 134 | 47d809127103bb4a0492fcea3c960b6097968770 | train | test/test_response.py | train | urllib3/urllib3:test/test_response.py | 170 | 8 | self.assertRaises | test_io | import unittest
from io import BytesIO, BufferedReader
try:
import http.client as httplib
except ImportError:
import httplib
from urllib3.response import HTTPResponse
from urllib3.exceptions import DecodeError, ResponseNotChunked
from base64 import b64decode
# A known random (i.e, not-too-compressible) pay... | IOError) | modified | 689eb9964b78f9f4d439a2da2c726625f79e52d68fb6e20d141312dc3c69de24 | self.assertRaises|test_io|import unittest from io import BytesIO, BufferedReader try: import http.client as httplib except ImportError: import httplib from urllib3.response import HTTPResponse from urllib3.exceptions import DecodeError, ResponseNotChunked from base64 import b64decode # A known random (i.e, not-too-comp... | IOError) | 170 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.