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
4
ec30e58d1ee36b04b4356120f5f078b59319d270
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
88
8
self.assertEqual
test_make_headers
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
modified
a01364cc34ddab4ccb94497b298a9d17ef44ccbe6b60b2bd22319846f884462e
self.assertEqual|test_make_headers|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'google.com...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
87
8
urllib3/urllib3
train
4
ec30e58d1ee36b04b4356120f5f078b59319d270
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
92
8
self.assertEqual
test_make_headers
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
{'user-agent': 'banana'})
modified
56c6c9b77f681f2729f6e4f9d164cab2386dd497c22edb19d0ee20d2b09586f8
self.assertEqual|test_make_headers|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'google.com...
{'user-agent': 'banana'})
91
8
urllib3/urllib3
train
5
c53bdc0338d8c3251c19d4934e5a7834d26113ee
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
68
8
self.assertEqual
test_get_connection
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
r.data)
added
b6f18449a7386fbf19c1e422e752e65cb3cba41793f04136345fe9113ebca77e
self.assertEqual|test_get_connection|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'google.c...
null
null
null
urllib3/urllib3
train
5
c53bdc0338d8c3251c19d4934e5a7834d26113ee
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
77
8
self.assertEqual
test_get_connection
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
r.data)
added
e5b37e5db04c51e91b4fd72a15c9d3639fa6c1f926583b3c0b567fbe11fe6e56
self.assertEqual|test_get_connection|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'google.c...
null
null
null
urllib3/urllib3
train
5
c53bdc0338d8c3251c19d4934e5a7834d26113ee
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
80
8
self.assertEqual
test_make_headers
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
{'accept-encoding': 'gzip,deflate'})
added
37428f6f0475ba1511659aee93df74ad99baf9c42438aff7178597a5f8abcd93
self.assertEqual|test_make_headers|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'google.com...
null
null
null
urllib3/urllib3
train
5
c53bdc0338d8c3251c19d4934e5a7834d26113ee
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
84
8
self.assertEqual
test_make_headers
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
{'accept-encoding': 'foo,bar'})
modified
8015307e17d1fe8e6ffe3883bf36c8bc5d96162f1bb1bd0c3f23cef1ab97e478
self.assertEqual|test_make_headers|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'google.com...
{'accept-encoding': 'foo,bar'})
84
8
urllib3/urllib3
train
6
f6d858be403afde0593749befe2288fa324aa069
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
54
12
self.assertFalse
test_same_host
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
c.is_same_host(b))
modified
f0b57915f8dfc4d705ea20291c8114e8711a8863a8eada5b9f589ad311dac9dd
self.assertFalse|test_same_host|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ...
c.is_same_host(b))
52
12
urllib3/urllib3
train
6
f6d858be403afde0593749befe2288fa324aa069
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
69
8
self.assertEqual
test_get_connection
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
r.data)
modified
fb8496bbe23626db55d438f9bb35ac0ea599d2970b840a1d6968dc184069b4b4
self.assertEqual|test_get_connection|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/ma...
r.data)
68
8
urllib3/urllib3
train
6
f6d858be403afde0593749befe2288fa324aa069
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
78
8
self.assertEqual
test_get_connection
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
r.data)
modified
3ae138b5e418bf2faf007ef457d76999c57cdb243f67fed4dd53685870ed14cc
self.assertEqual|test_get_connection|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/ma...
r.data)
77
8
urllib3/urllib3
train
6
f6d858be403afde0593749befe2288fa324aa069
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
93
8
self.assertEqual
test_make_headers
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
modified
2dd9ffaf3fcd0b948ed848e33ab409299f65374f63760f46c8353c939e7d170e
self.assertEqual|test_make_headers|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
92
8
urllib3/urllib3
train
7
a2bc32f6c521d6637e72c1757bddf6def662bf1f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
19
12
self.assertEqual
test_maxsize
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) fo...
str(i))
added
0063c84940847ef4c402738759000a315b5aed95ec526173a44ff917d3927f73
self.assertEqual|test_maxsize|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.as...
null
null
null
urllib3/urllib3
train
7
a2bc32f6c521d6637e72c1757bddf6def662bf1f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
24
8
self.assertFalse
test_maxsize
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) fo...
0 in d)
added
14d6273f67a80ee21c3dd56bf75197a71e8616e87267d2abf16cd90e6ae8f0d2
self.assertFalse|test_maxsize|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.as...
null
null
null
urllib3/urllib3
train
7
a2bc32f6c521d6637e72c1757bddf6def662bf1f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
25
8
self.assertTrue
test_maxsize
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) fo...
i+1 in d)
added
664115332eadf3138b09bf4b8d1b3ce80e5aca85856f62926eb053b1a5fe5128
self.assertTrue|test_maxsize|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.ass...
null
null
null
urllib3/urllib3
train
7
a2bc32f6c521d6637e72c1757bddf6def662bf1f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
41
8
self.assertEqual
test_expire
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) fo...
[0, 2, 3, 4, 5])
added
a4c7f33428876ac72514ab4e1a5371e76aed8108fd66fe24979294dfbee31fc8
self.assertEqual|test_expire|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.ass...
null
null
null
urllib3/urllib3
train
8
eb42c6244581406ae8f772c478b8d244eaee1b60
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
26
8
self.assertFalse
test_maxsize
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
0 in d)
modified
bb450cf1780a36ee751c5c904c1e76d697af921f8de91177ebc7af9bd284691f
self.assertFalse|test_maxsize|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) se...
0 in d)
24
8
urllib3/urllib3
train
8
eb42c6244581406ae8f772c478b8d244eaee1b60
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
27
8
self.assertTrue
test_maxsize
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
i+1 in d)
modified
c5fa9e50a47f71d48f6716203e9b93178cc299290c79f471911baaef71412500
self.assertTrue|test_maxsize|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) sel...
i+1 in d)
25
8
urllib3/urllib3
train
8
eb42c6244581406ae8f772c478b8d244eaee1b60
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
43
8
self.assertEqual
test_expire
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
[0, 2, 3, 4, 5])
modified
223981fbd91e386fb954ff1326566f2650bc2a1700205d8a871969ddddcf16ca
self.assertEqual|test_expire|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) sel...
[0, 2, 3, 4, 5])
41
8
urllib3/urllib3
train
8
eb42c6244581406ae8f772c478b8d244eaee1b60
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
55
8
self.assertTrue
test_pruning
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
len(d.priority_heap) <= d.CLEANUP_FACTOR * d.maxsize)
added
2c4a0bc1312390baa43b3a261c984afc28f1fda3ad18f4cba2e71b6edaf936ed
self.assertTrue|test_pruning|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) sel...
null
null
null
urllib3/urllib3
train
9
ddf753456fd58194d98f5d91df7072d67a65648f
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
63
8
self.assertEqual
test_same_key
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
['foo'])
added
9d2a7b75c6add7e49a9531e3c986f1f642f2e91dc1c37b2691dc161f371f1470
self.assertEqual|test_same_key|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) s...
null
null
null
urllib3/urllib3
train
10
31806049560132e2f202ae2c4420a76927eeba3d
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
55
8
self.assertTrue
test_pruning
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
len(d.priority_heap) <= d.CLEANUP_FACTOR * d._maxsize)
modified
26644139ad0ace5bd865a392d06d35280144e03e1bfa912c8445b610fb5fcf25
self.assertTrue|test_pruning|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) sel...
len(d.priority_heap) <= d.CLEANUP_FACTOR * d.maxsize)
55
8
urllib3/urllib3
train
10
31806049560132e2f202ae2c4420a76927eeba3d
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
63
8
self.assertEqual
test_same_key
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
['foo'])
modified
b893c9d0defd424568f200be5e317da1c4635a961ebfa9f74b89d2fa8119020b
self.assertEqual|test_same_key|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) s...
['foo'])
63
8
urllib3/urllib3
train
10
31806049560132e2f202ae2c4420a76927eeba3d
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
106
8
self.assertEqual
test_many_urls
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
p.pools.keys())
modified
12c073befc294bf5c7624cab2a94ed7ac5b58f4a2cfac67a1af334acc2288857
self.assertEqual|test_many_urls|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) ...
5)
106
8
urllib3/urllib3
train
11
c99c0866ebe25d51f6723f1283271ba72ac0fbab
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
42
8
self.assertEqual
test_expire
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
[0, 2, 3, 4, 5])
added
c8f39da5c4e10b4741c23586d69fe40294bad57f9171f479a285301cdc0ba10f
self.assertEqual|test_expire|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) sel...
null
null
null
urllib3/urllib3
train
11
c99c0866ebe25d51f6723f1283271ba72ac0fbab
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
54
8
self.assertTrue
test_pruning
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
len(d.access_log) <= d.CLEANUP_FACTOR * d._maxsize)
modified
3d137e1bbc30e345780f22631e07b63303bba433f1069ec3d07b292647d40180
self.assertTrue|test_pruning|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) sel...
len(d.priority_heap) <= d.CLEANUP_FACTOR * d._maxsize)
55
8
urllib3/urllib3
train
11
c99c0866ebe25d51f6723f1283271ba72ac0fbab
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
62
8
self.assertEqual
test_same_key
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
['foo'])
modified
843a97f9fe3dfad077913e128176fc53139a4a6bfd71fae863ace2bf3184128e
self.assertEqual|test_same_key|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) s...
['foo'])
63
8
urllib3/urllib3
train
12
1caa22d80364b0702de1aad0a04848c6065d8028
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
74
8
self.assertEqual
test_access_ordering
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
[9,8,7,6,5])
added
1aefd289e389217fdb018bc498902e6d2bf41e9bfd57ff4ea3173ad13594564e
self.assertEqual|test_access_ordering|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
null
null
null
urllib3/urllib3
train
12
1caa22d80364b0702de1aad0a04848c6065d8028
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
80
8
self.assertEqual
test_access_ordering
import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
new_order)
added
8c2e886365d5a31b92c9722a4d1133f6ab447f34e55be1f1d284966009d6a694
self.assertEqual|test_access_ordering|import sys import unittest sys.path.append('../') from urllib3.poolmanager import RecentlyUsedContainer as Container, PoolManager from urllib3 import connection_from_url class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = s...
null
null
null
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
27
8
self.assertTrue
test_maxsize
import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) ...
i+1 in d)
added
56d98a5a16fd7182563837fcc073ebc6143144586bf9b773931f06956630e32c
self.assertTrue|test_maxsize|import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.as...
null
null
null
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
54
8
self.assertTrue
test_pruning
import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) ...
len(d.access_log) <= d.CLEANUP_FACTOR * d._maxsize)
added
ad1b93044025067dcaff9d1b423bc933d8245d923968557e0e922955b4df4157
self.assertTrue|test_pruning|import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.as...
null
null
null
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
80
8
self.assertEqual
test_access_ordering
import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) ...
new_order)
added
588cfe5f7597474e75b6fde197c214a08351c51ebfbe5529d3b54614e33a46dc
self.assertEqual|test_access_ordering|import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5)...
null
null
null
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
46
12
self.assertTrue
test_same_host
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): ...
c.is_same_host(b))
modified
78a96ecd969471237d6aa4a51537100fffc832f3b28cd96fb80f7f09e4f7165b
self.assertTrue|test_same_host|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self)...
c.is_same_host(b))
44
12
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
80
8
self.assertEqual
test_get_connection
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): ...
r.data)
modified
f7d283c4681d94034c0e8fb69a46b107ce6e4b39286fe688c274786399602e57
self.assertEqual|test_get_connection|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host...
r.data)
78
8
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
83
8
self.assertEqual
test_make_headers
import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): ...
{'accept-encoding': 'gzip,deflate'})
modified
ce068c9a1c8ce5ad0f5c793db2cba139aa4a04515e1f7e6dca7d839a8f97bf3e
self.assertEqual|test_make_headers|import sys import unittest from time import sleep sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(s...
{'accept-encoding': 'gzip,deflate'})
81
8
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
19
8
self.assertEqual
test_preload
import sys import unittest from StringIO import StringIO sys.path.append('../') from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(),
fp.len)
added
dcfc933d77fa5716463bf7ba60597b4f62312763327036c0c4b0d47f692c8ea9
self.assertEqual|test_preload|import sys import unittest from StringIO import StringIO sys.path.append('../') from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(),
null
null
null
urllib3/urllib3
train
13
0c560db828162eab45ce5e0e1810733b9e4a7bd8
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
29
8
self.assertEqual
test_no_preload
import sys import unittest from StringIO import StringIO sys.path.append('../') from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(), fp.len...
fp.len)
added
a41bd7074e2f5607d1c00a9c97c6bb6f508238dc10abf8836eb20ab9bd3ebb5b
self.assertEqual|test_no_preload|import sys import unittest from StringIO import StringIO sys.path.append('../') from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(), fp.len) se...
null
null
null
urllib3/urllib3
train
14
e0b0a85ba014b0186d8702cd492afa26c593582c
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
44
12
self.assertTrue
test_same_host
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { ...
c.is_same_host(b))
modified
f0ac8b17b83141367566fb4002b9d07ac5630ef4f0742c1a31502740056f169b
self.assertTrue|test_same_host|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'htt...
c.is_same_host(b))
46
12
urllib3/urllib3
train
14
e0b0a85ba014b0186d8702cd492afa26c593582c
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
54
12
self.assertFalse
test_same_host
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { ...
c.is_same_host(b))
modified
500dce8da531226754b709cbc0a00345768b512ee8b46d71656edf68202cf1ab
self.assertFalse|test_same_host|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'ht...
c.is_same_host(b))
56
12
urllib3/urllib3
train
14
e0b0a85ba014b0186d8702cd492afa26c593582c
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
57
8
self.assertEqual
test_make_headers
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { ...
{'accept-encoding': 'gzip,deflate'})
added
d5b5eb003b06df330ce189c3762c7ce736d233fddd6225c0d72771c13c030898
self.assertEqual|test_make_headers|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { ...
null
null
null
urllib3/urllib3
train
14
e0b0a85ba014b0186d8702cd492afa26c593582c
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
61
8
self.assertEqual
test_make_headers
import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { ...
{'accept-encoding': 'foo,bar'})
added
ef44ff26968645960716b447fe4887cea8d3c8e80d6ade16acd27a84fea55ab0
self.assertEqual|test_make_headers|import sys import unittest sys.path.append('../') from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { ...
null
null
null
urllib3/urllib3
train
15
2c24b69973903bbc8e136bfecf623813d068a140
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
29
8
self.assertEqual
test_get_url
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
r.data)
added
86c4cd3a2b29bf8a4e98aa77453f01148d809b3289d038ee74a3b584c6a3663e
self.assertEqual|test_get_url|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.ge...
null
null
null
urllib3/urllib3
train
15
2c24b69973903bbc8e136bfecf623813d068a140
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
44
8
self.assertEqual
test_wrong_specific_method
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
r.data)
added
8c9defe15461a5804ca9ab0a48cfe636623482c95a583e52bd90d18ebb2d4339
self.assertEqual|test_wrong_specific_method|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 lo...
null
null
null
urllib3/urllib3
train
15
2c24b69973903bbc8e136bfecf623813d068a140
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
96
8
self.assertEqual
test_redirect
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
'Dummy server!')
added
ce25274e88cf6612ed546970cdc8fca1251427896e2735dfd6c0315b2bfb7143
self.assertEqual|test_redirect|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.g...
null
null
null
urllib3/urllib3
train
15
2c24b69973903bbc8e136bfecf623813d068a140
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
176
8
self.assertEqual
test_post_with_urlencode
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
urllib.urlencode(data))
added
d1294abc456013c53a0d61f9bf01e0b93600b7604c076960452ba3f0cfaba050
self.assertEqual|test_post_with_urlencode|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log ...
null
null
null
urllib3/urllib3
train
16
66f49eafe1174f701b3428366a574b65d32f5e00
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
34
8
self.assertEqual
test_post_url
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
r.data)
modified
ceb3b53a04f5a0bb4ab0071f4d82c571f91c7b5a6d4e6ecbfaac759a91601cf3
self.assertEqual|test_post_url|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.g...
r.data)
34
8
urllib3/urllib3
train
16
66f49eafe1174f701b3428366a574b65d32f5e00
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
38
8
self.assertEqual
test_urlopen_put
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
r.data)
modified
4f70a32c16b9f5e88b4e093ba0ccf7b2f4a2e5554d98e8e940e136f1c8fa7c97
self.assertEqual|test_urlopen_put|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = loggin...
r.data)
38
8
urllib3/urllib3
train
16
66f49eafe1174f701b3428366a574b65d32f5e00
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
76
8
self.assertEqual
test_unicode_upload
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
r.data)
modified
fd9bdabc7f9aa5dc04dcbd1d35bd47905d032722cc3beb215df3afeae7e73cc4
self.assertEqual|test_unicode_upload|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = log...
r.data)
76
8
urllib3/urllib3
train
16
66f49eafe1174f701b3428366a574b65d32f5e00
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
201
12
self.assertEqual
test_post_with_multipart
import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log = logging.getLogger('urllib3.connect...
expected_body[i])
modified
f95b32ff59a626322e47c15ed9ff591bf9e2c89bfe606c9ad58559c12ad93407
self.assertEqual|test_post_with_multipart|import logging import sys import unittest import urllib from .dummy_server import TestWithDummyServer from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError HOST = "localhost" PORT = 8081 log ...
expected_body[i])
201
12
urllib3/urllib3
train
17
d56d1795ec20ce75d50f0fe89eed415d64266fde
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
25
8
self.assertEqual
test_get
import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.connectionpool') log.setLevel(loggin...
r.data)
added
e102ecfac3c96659cb7b8e0d330e424188f8d7f224a39bf909e25e081d716451
self.assertEqual|test_get|import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.connectionpool...
null
null
null
urllib3/urllib3
train
17
d56d1795ec20ce75d50f0fe89eed415d64266fde
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
44
8
self.assertEqual
test_wrong_specific_method
import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.connectionpool') log.setLevel(loggin...
r.data)
added
f5c0199bfcc60a1309369d7143c5f03034ee64db20fd9190394ed4cac3012a36
self.assertEqual|test_wrong_specific_method|import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urll...
null
null
null
urllib3/urllib3
train
17
d56d1795ec20ce75d50f0fe89eed415d64266fde
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
56
8
self.assertEqual
test_upload
import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.connectionpool') log.setLevel(loggin...
r.data)
added
942a11ff9cdd7919130333b96b4db9286ca0238fcd01be5e0a2c92e88de3ef48
self.assertEqual|test_upload|import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.connectionp...
null
null
null
urllib3/urllib3
train
17
d56d1795ec20ce75d50f0fe89eed415d64266fde
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
230
8
self.assertEqual
test_partial_response
import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.connectionpool') log.setLevel(loggin...
resp_data[5:])
modified
32049e67fe47cb3c8ed496c473d3dc07f00e9a723c50afd98b97ccfc531967a0
self.assertEqual|test_partial_response|import logging import sys import unittest import urllib from .dummy_server import HTTPDummyServerTestCase from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError log = logging.getLogger('urllib3.c...
resp_data[:5])
233
8
urllib3/urllib3
train
18
74163c2dcf1a21e23e4767b316bef418f7c0e711
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
89
8
self.assertFalse
test_delete
import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) ...
0 in d)
added
9fbeafe12b6b7bfa9a518e6605f2b35a287f7ab22c7f95c6bbbbe5f6921c6b21
self.assertFalse|test_delete|import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.as...
null
null
null
urllib3/urllib3
train
18
74163c2dcf1a21e23e4767b316bef418f7c0e711
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
92
8
self.assertFalse
test_delete
import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) ...
1 in d)
added
e28a978528bb24252174056da2c1a8faf653d13542692bb522f5fcdc53210c0c
self.assertFalse|test_delete|import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.as...
null
null
null
urllib3/urllib3
train
18
74163c2dcf1a21e23e4767b316bef418f7c0e711
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
111
8
self.assertRaises
test_get
import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) ...
KeyError)
added
3104c594f25312c4dfaea02a7ee52252bc742ef81d9cecb26841f5af6e60a407
self.assertRaises|test_get|import sys import unittest sys.path.append('../') from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.asse...
null
null
null
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
58
8
self.assertEqual
test_same_key
import sys import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): ...
['foo'])
added
ee5a4ebd09b02503f1a398bd70d987039e2d9a53bf134c17d0fbd7254eae9911
self.assertEqual|test_same_key|import sys import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.assertEqual(d[i], str(i...
null
null
null
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
76
8
self.assertEqual
test_access_ordering
import sys import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): ...
new_order)
modified
2da5a3a8299ec427c353dad10d0ed0f71018ec4ac14e2d5d8589850843917ac9
self.assertEqual|test_access_ordering|import sys import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.assertEqual(d[i]...
[9,8,7,6,5])
74
8
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
88
8
self.assertFalse
test_delete
import sys import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): ...
1 in d)
modified
1a89d52812a12d4c38fb56aa2a66c78fb47504d0c68b717ab853bf713fd7baea
self.assertFalse|test_delete|import sys import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.assertEqual(d[i], str(i))...
0 in d)
89
8
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
53
12
self.assertFalse
test_same_host
import sys import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
c.is_same_host(b))
modified
e67b4d68b2f6af5d5aebd83c599434fd2a867dd3a036335f256ea75ff6c6b229
self.assertFalse|test_same_host|import sys import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ...
c.is_same_host(b))
54
12
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
56
8
self.assertEqual
test_make_headers
import sys import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
{'accept-encoding': 'gzip,deflate'})
modified
89eba1ca78c2d08fc373175964981b84a93a81a953d3a1d3cd07c62791b6a740
self.assertEqual|test_make_headers|import sys import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail...
{'accept-encoding': 'gzip,deflate'})
57
8
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
68
8
self.assertEqual
test_make_headers
import sys import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
modified
d08364fa9254879875411f0109bf0cf25ba305da4fa4ee85d5c62f5829c2d3d7
self.assertEqual|test_make_headers|import sys import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail...
{'accept-encoding': 'gzip,deflate', 'user-agent': 'banana'})
69
8
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
15
8
self.assertEqual
test_preload
import sys import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(),
fp.len)
added
4cc7da784aae8957c94c62ae8941cdd9f04ba61e734b0f89b3a78bd2d4571631
self.assertEqual|test_preload|import sys import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(),
null
null
null
urllib3/urllib3
train
19
4382d752d13e67c5794ddd54b1d7bef93b7ac450
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
25
8
self.assertEqual
test_no_preload
import sys import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(), fp.len) self.assertEqual...
fp.len)
modified
4bb47408488c2164d7da41b1e4432ac8ac798635e60bfc3744871604ffd04214
self.assertEqual|test_no_preload|import sys import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(), fp.len) self.assertEqual(r.data, ...
'foo')
28
8
urllib3/urllib3
train
20
d1929d52918d6af26663a472695179bedad03800
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
33
8
self.assertEqual
test_urlopen_put
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel(...
r.data)
added
4856cbcb3d4fe68db839c0f22bdcf4223016d7e80550c1759fb3ab1781ed41ea
self.assertEqual|test_urlopen_put|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3...
null
null
null
urllib3/urllib3
train
20
d1929d52918d6af26663a472695179bedad03800
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
39
8
self.assertEqual
test_wrong_specific_method
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel(...
r.data)
added
838cb94920d43428bfd1e4f95899ef82e0e159d77299100adc7988d7bb1c2c41
self.assertEqual|test_wrong_specific_method|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogge...
null
null
null
urllib3/urllib3
train
20
d1929d52918d6af26663a472695179bedad03800
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
55
8
self.assertEqual
test_upload
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel(...
r.data)
added
ea87ede0d90aafbc690e5a9d39f5b24e4b819a01430d087eca452a4cd6d32de6
self.assertEqual|test_upload|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.conn...
null
null
null
urllib3/urllib3
train
20
d1929d52918d6af26663a472695179bedad03800
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
201
8
self.assertEqual
test_check_gzip
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel(...
'gzip')
added
ef82eec976cbddcba4036a6e0f12f85f9249ca39428b1b0c1a0ba0e13fd24bba
self.assertEqual|test_check_gzip|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3....
null
null
null
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
57
8
self.assertEqual
test_same_key
import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self...
['foo'])
modified
b9297cf2c73195c336e52c95a1ca3e7c76e6e8e95340bb09af639a64b394d369
self.assertEqual|test_same_key|import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.assertEqual(d[i], str(i)) d[i+1] =...
['foo'])
58
8
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
87
8
self.assertFalse
test_delete
import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self...
1 in d)
modified
787e923af2299d5dea721337882d4f78675f4fc066b1ca1a4e5a8db5072485e3
self.assertFalse|test_delete|import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.assertEqual(d[i], str(i)) d[i+1] = s...
1 in d)
88
8
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_collections.py
train
urllib3/urllib3:test/test_collections.py
106
8
self.assertRaises
test_get
import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self...
KeyError)
modified
73c50d727cbbce7c0b23489e26ab4ba1317d322f82de967a555ae97475907dbf
self.assertRaises|test_get|import unittest from urllib3._collections import RecentlyUsedContainer as Container class TestLRUContainer(unittest.TestCase): def test_maxsize(self): d = Container(5) for i in xrange(5): d[i] = str(i) self.assertEqual(len(d), 5) for i in xrange(5): self.assertEqual(d[i], str(i)) d[i+1] = str...
KeyError)
107
8
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
52
12
self.assertFalse
test_same_host
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
c.is_same_host(b))
modified
284829b38e782809bbb483c6e98eeb1953a435f1e72512ddf95814fc13fe6bfb
self.assertFalse|test_same_host|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'g...
c.is_same_host(b))
53
12
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
55
8
self.assertEqual
test_make_headers
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
{'accept-encoding': 'gzip,deflate'})
modified
1494a50efd3ce5422b28a77a9b354720f094e3d244e61120dde60f348fe0a9e3
self.assertEqual|test_make_headers|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http',...
{'accept-encoding': 'gzip,deflate'})
56
8
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
71
8
self.assertEqual
test_make_headers
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
{'user-agent': 'banana'})
modified
c8615d9d5313ed6ff4d1fc92c9ffdd10367f12e6b3ca5a452495b80032b270cd
self.assertEqual|test_make_headers|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http',...
{'user-agent': 'banana'})
72
8
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
14
8
self.assertEqual
test_preload
import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(),
fp.len)
modified
0678ade974ed3a5f250c17cfec893195634e2103fd9d41389ab2e2f327b0bee6
self.assertEqual|test_preload|import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(),
fp.len)
15
8
urllib3/urllib3
train
21
5d19e19d2e68df014cc0a03377e178b65a81df1b
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
24
8
self.assertEqual
test_no_preload
import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(), fp.len) self.assertEqual(r.data, 'f...
fp.len)
modified
d065f9329525a2bfb5129cd86cc953ef48b497bd650c9303b148b2c1e0e2d669
self.assertEqual|test_no_preload|import unittest from StringIO import StringIO from urllib3.response import HTTPResponse class TestResponse(unittest.TestCase): def test_preload(self): fp = StringIO('foo') r = HTTPResponse(fp, preload_content=True) self.assertEqual(fp.tell(), fp.len) self.assertEqual(r.data, 'foo') def ...
fp.len)
25
8
urllib3/urllib3
train
22
933bc51cebabec6638de3287d922f4afa8b1d72e
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
170
8
self.assertEqual
test_post_with_urlencode
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
urllib.urlencode(data))
modified
6e212bb6fce0662e0323c0bec73c959ba63c833cd34ed9351630843038a9efdf
self.assertEqual|test_post_with_urlencode|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger(...
urllib.urlencode(data))
172
8
urllib3/urllib3
train
22
933bc51cebabec6638de3287d922f4afa8b1d72e
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
195
12
self.assertEqual
test_post_with_multipart
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
expected_body[i])
modified
30333e8b4ffe465cde1ebc6fea1eba57530dedc61f705aeb07ec551440b2687f
self.assertEqual|test_post_with_multipart|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger(...
expected_body[i])
197
12
urllib3/urllib3
train
22
933bc51cebabec6638de3287d922f4afa8b1d72e
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
200
8
self.assertEqual
test_check_gzip
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
'gzip')
modified
ec568edaebbd68919e5502d0b3a94b69529a88faca2555d8ff2112c2f7af38b4
self.assertEqual|test_check_gzip|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3....
'gzip')
202
8
urllib3/urllib3
train
22
933bc51cebabec6638de3287d922f4afa8b1d72e
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
228
8
self.assertEqual
test_partial_response
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
resp_data[5:])
modified
63660a1abf34adfda62e8b991da13d2c387093db06c0b0379a8748710ab1c02b
self.assertEqual|test_partial_response|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('ur...
resp_data[5:])
230
8
urllib3/urllib3
train
23
e5c2c193a0a93f97202ad76749231723f8d60156
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
43
12
self.assertTrue
test_same_host
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
c.is_same_host(b))
modified
961b35fdd4d83b7b7217f8c3602320dc268b9a02a9f86da73756b7ff27dc909b
self.assertTrue|test_same_host|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
c.is_same_host(b))
42
12
urllib3/urllib3
train
23
e5c2c193a0a93f97202ad76749231723f8d60156
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
53
12
self.assertFalse
test_same_host
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
c.is_same_host(b))
modified
effb0410e216ef7c9740907eb31bd26ea864fcfd6954cda429bfcc7bd3ae8c68
self.assertFalse|test_same_host|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'g...
c.is_same_host(b))
52
12
urllib3/urllib3
train
23
e5c2c193a0a93f97202ad76749231723f8d60156
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
56
8
self.assertEqual
test_make_headers
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
{'accept-encoding': 'gzip,deflate'})
modified
52273a7ebedf32511f2472d654592d12950925bcc09aaed1d46d81f63b36b7c3
self.assertEqual|test_make_headers|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http',...
{'accept-encoding': 'gzip,deflate'})
55
8
urllib3/urllib3
train
23
e5c2c193a0a93f97202ad76749231723f8d60156
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
64
8
self.assertEqual
test_make_headers
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
{'accept-encoding': 'foo,bar'})
modified
77bea033c19b66b68d0dcaf9d9f1253996faf557a918a318f46dda3cf6614732
self.assertEqual|test_make_headers|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http',...
{'accept-encoding': 'foo,bar'})
63
8
urllib3/urllib3
train
24
f57ecdb6cb2c8d4d94e62e3b38c40916d6539b27
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
24
8
self.assertEqual
test_redirect
import unittest from dummyserver.testcase import HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.exceptions import MaxRetryError class TestPoolManager(HTTPDummyServerTestCase): base_url = 'http://%s:%d' % (HTTPDummyServerTestCase.host, HTTPDummyServerTestCase.port) def test_...
'Dummy server!')
added
204dbe464a56b46fd83fdf1fa71d59bad7704925d37e2ff80c9f339c9f5f5614
self.assertEqual|test_redirect|import unittest from dummyserver.testcase import HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.exceptions import MaxRetryError class TestPoolManager(HTTPDummyServerTestCase): base_url = 'http://%s:%d' % (HTTPDummyServerTestCase.host, HTTPDummyServerTestC...
null
null
null
urllib3/urllib3
train
25
34119d0f61908264d2f00468c71af9e3c0376eb5
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
25
8
self.assertEqual
test_get
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
r.data)
added
c47d597654f9035a1d83fde32b2b1ea707c344fe0c137cfb8bb1948fc2f31d33
self.assertEqual|test_get|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connect...
null
null
null
urllib3/urllib3
train
25
34119d0f61908264d2f00468c71af9e3c0376eb5
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
72
8
self.assertEqual
test_unicode_upload
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
r.data)
modified
20a1ae9901ecc489a0b4933e3a57b2aecc1be77dd97b89fb9634d82eedf44b6b
self.assertEqual|test_unicode_upload|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urll...
r.data)
72
8
urllib3/urllib3
train
25
34119d0f61908264d2f00468c71af9e3c0376eb5
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
195
12
self.assertEqual
test_post_with_multipart
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
expected_body[i])
modified
739fd510a34b46efdeadaec14a7fe1fa5aa8a60e55b05155b749982d5df0c074
self.assertEqual|test_post_with_multipart|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger(...
expected_body[i])
195
12
urllib3/urllib3
train
25
34119d0f61908264d2f00468c71af9e3c0376eb5
train
test/with_dummyserver/test_connectionpool.py
train
urllib3/urllib3:test/with_dummyserver/test_connectionpool.py
303
8
self.assertEqual
test_release_conn_parameter
import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogger('urllib3.connectionpool') log.setLevel...
MAXSIZE)
added
90cace35a392b3ababf549f26eace2f677c3e2f8dfa21560913c3a84ca5adc9c
self.assertEqual|test_release_conn_parameter|import logging import sys import unittest import urllib from urllib3 import encode_multipart_formdata, HTTPConnectionPool from urllib3.exceptions import TimeoutError, EmptyPoolError, MaxRetryError from dummyserver.testcase import HTTPDummyServerTestCase log = logging.getLogg...
null
null
null
urllib3/urllib3
train
26
8d9cfcead6905fb29b2aec5dd915f692be1b48a0
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
25
8
self.assertEqual
test_redirect
import unittest from dummyserver.testcase import HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.exceptions import MaxRetryError class TestPoolManager(HTTPDummyServerTestCase): base_url = 'http://%s:%d' % (HTTPDummyServerTestCase.host, HTTPDummyServerTestCase.port) base_url_a...
'Dummy server!')
modified
59db1c76d2a8c391fdedba2c240486b6c0d6cda2173b5b62be6f936c55864721
self.assertEqual|test_redirect|import unittest from dummyserver.testcase import HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.exceptions import MaxRetryError class TestPoolManager(HTTPDummyServerTestCase): base_url = 'http://%s:%d' % (HTTPDummyServerTestCase.host, HTTPDummyServerTestC...
'Dummy server!')
24
8
urllib3/urllib3
train
26
8d9cfcead6905fb29b2aec5dd915f692be1b48a0
train
test/with_dummyserver/test_poolmanager.py
train
urllib3/urllib3:test/with_dummyserver/test_poolmanager.py
44
8
self.assertEqual
test_cross_host_redirect
import unittest from dummyserver.testcase import HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.exceptions import MaxRetryError class TestPoolManager(HTTPDummyServerTestCase): base_url = 'http://%s:%d' % (HTTPDummyServerTestCase.host, HTTPDummyServerTestCase.port) base_url_a...
self.host_alt)
added
96a9464fcada49ca4ac17ad420c7b2f10fca1dfd75e6d6b0944645bb6d1edfaf
self.assertEqual|test_cross_host_redirect|import unittest from dummyserver.testcase import HTTPDummyServerTestCase from urllib3.poolmanager import PoolManager from urllib3.exceptions import MaxRetryError class TestPoolManager(HTTPDummyServerTestCase): base_url = 'http://%s:%d' % (HTTPDummyServerTestCase.host, HTTPDummy...
null
null
null
urllib3/urllib3
train
27
a0d68fba1431d3cbf18f3ea29314e2027acc2efe
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
12
8
self.assertEqual
test_getheaders
import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(),
headers)
added
34a1b949eee374706c30524b59af41b390d214eab23321131a12aa3c44c87a14
self.assertEqual|test_getheaders|import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(),
null
null
null
urllib3/urllib3
train
27
a0d68fba1431d3cbf18f3ea29314e2027acc2efe
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
17
8
self.assertEqual
test_getheader
import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(), headers) de...
'example.com')
added
fcbe8cad036ef73f99b13f7f2a26fd4bdaceea1b0fc654b230fede8ce10eb627
self.assertEqual|test_getheader|import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(), headers) def te...
null
null
null
urllib3/urllib3
train
27
a0d68fba1431d3cbf18f3ea29314e2027acc2efe
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
28
8
self.assertIsNone
test_default
import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(), headers) de...
r.data)
added
d2c877d5d3a192554d9d03b8152004ae12434dbcdcd7735488956679bd97bb87
self.assertIsNone|test_default|import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(), headers) def tes...
null
null
null
urllib3/urllib3
train
27
a0d68fba1431d3cbf18f3ea29314e2027acc2efe
train
test/test_response.py
train
urllib3/urllib3:test/test_response.py
53
8
self.assertRaises
test_decode_bad_data
import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(), headers) de...
zlib.error)
added
2ac7403f52c5e2d2fbff43b4a30e0db0996916a85355ad8a372d1349565fc591
self.assertRaises|test_decode_bad_data|import unittest import zlib from StringIO import StringIO from urllib3.response import HTTPResponse class TestLegacyResponse(unittest.TestCase): def test_getheaders(self): headers = {'host': 'example.com'} r = HTTPResponse(headers=headers) self.assertEqual(r.getheaders(), headers)...
null
null
null
urllib3/urllib3
train
28
e2d67cac7f0c4523abd50282691b5dd6860f7657
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
55
12
self.assertFalse
test_same_host
import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConnectionPool(unittest.TestCase): def tes...
c.is_same_host(b))
modified
50bb45ec408719ce15ba8414d123a38e8ed005994afc6ae42d0be7d82776c84a
self.assertFalse|test_same_host|import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConnectionPool(unittest.TestCase):...
c.is_same_host(b))
53
12
urllib3/urllib3
train
28
e2d67cac7f0c4523abd50282691b5dd6860f7657
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
74
8
self.assertEqual
test_make_headers
import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConnectionPool(unittest.TestCase): def tes...
{'user-agent': 'banana'})
modified
c25b843dcf05548da5ae9c657dc93f08478447acce8a93e273c9555300aedc10
self.assertEqual|test_make_headers|import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConnectionPool(unittest.TestCas...
{'user-agent': 'banana'})
72
8
urllib3/urllib3
train
28
e2d67cac7f0c4523abd50282691b5dd6860f7657
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
121
8
self.assertEqual
test_recovery_when_server_closes_connection
import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConnectionPool(unittest.TestCase): def tes...
'Response 0')
added
f2d2bfd70bcef27f73219488e0702a65645b740c0d06b5c9cce0c1c7b064fc65
self.assertEqual|test_recovery_when_server_closes_connection|import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConne...
null
null
null
urllib3/urllib3
train
28
e2d67cac7f0c4523abd50282691b5dd6860f7657
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
127
8
self.assertEqual
test_recovery_when_server_closes_connection
import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConnectionPool(unittest.TestCase): def tes...
'Response 1')
added
2f6d35905f9fb2d808efda7237f5ee2eda4586f8680a11eb09c102fdd17a87bd
self.assertEqual|test_recovery_when_server_closes_connection|import unittest from threading import Event from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError from threadserver import read_request, start_server class TestConne...
null
null
null
urllib3/urllib3
train
28
e2d67cac7f0c4523abd50282691b5dd6860f7657
train
test/test_poolmanager.py
train
urllib3/urllib3:test/test_poolmanager.py
73
8
self.assertEqual
test_request_survives_missing_port_number
import unittest from urllib3.connectionpool import port_by_scheme from urllib3.poolmanager import PoolManager from urllib3 import connection_from_url from threadserver import read_request, start_server class TestPoolManager(unittest.TestCase): def test_same_url(self): # Convince ourselves that normally w...
'Inspire.')
added
2be619b1a7fa893e208cbaf6343124ac837a2eb96b36e1970da8beb03c1a6343
self.assertEqual|test_request_survives_missing_port_number|import unittest from urllib3.connectionpool import port_by_scheme from urllib3.poolmanager import PoolManager from urllib3 import connection_from_url from threadserver import read_request, start_server class TestPoolManager(unittest.TestCase): def test_same_url...
null
null
null
urllib3/urllib3
train
29
99cd0a3c68de889af1cbcf82580d24057ab8a29d
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
43
12
self.assertTrue
test_same_host
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
c.is_same_host(b))
modified
63738539bd21369e9ef772df5af5a627e7fbaaa9b62610be768741bb249fa94a
self.assertTrue|test_same_host|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'go...
c.is_same_host(b))
45
12
urllib3/urllib3
train
29
99cd0a3c68de889af1cbcf82580d24057ab8a29d
train
test/test_connectionpool.py
train
urllib3/urllib3:test/test_connectionpool.py
53
12
self.assertFalse
test_same_host
import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail':...
c.is_same_host(b))
modified
46bc9b4770e838a8126190588bdc36ab94e729fb7bb2cf3579ee3f4547d18ff0
self.assertFalse|test_same_host|import unittest from urllib3.connectionpool import ( connection_from_url, get_host, HTTPConnectionPool, make_headers) from urllib3.exceptions import EmptyPoolError class TestConnectionPool(unittest.TestCase): def test_get_host(self): url_host_map = { 'http://google.com/mail': ('http', 'g...
c.is_same_host(b))
55
12