summaryrefslogtreecommitdiff
path: root/test/test_collections.py
diff options
context:
space:
mode:
authorCory Benfield <lukasaoz@gmail.com>2016-09-05 13:17:53 +0100
committerGitHub <noreply@github.com>2016-09-05 13:17:53 +0100
commitcc9de256b8f3fba20bde0fe4d39d5554f1bb30b7 (patch)
treed7cf20b9a26ae4c7d32c33b0b170d396aab32a40 /test/test_collections.py
parent65b8c52c16dee5c3a523de2c1c21853ba0e581f2 (diff)
parent37565e8ed412da0dcc400e3f1ab624a34cc9f5c4 (diff)
downloadurllib3-sessionmanager.tar.gz
Merge pull request #904 from haikuginger/approved-session-managersessionmanager
Approved SessionManager changes
Diffstat (limited to 'test/test_collections.py')
-rw-r--r--test/test_collections.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_collections.py b/test/test_collections.py
index 9d72939c..d7882d95 100644
--- a/test/test_collections.py
+++ b/test/test_collections.py
@@ -144,6 +144,12 @@ class TestHTTPHeaderDict(unittest.TestCase):
self.d = HTTPHeaderDict(Cookie='foo')
self.d.add('cookie', 'bar')
+ def test_get_all(self):
+ self.assertEqual(self.d.get_all('cookie', None), ['foo', 'bar'])
+
+ def test_get_all_with_default(self):
+ self.assertEqual(self.d.get_all('NOT THERE', {}), {})
+
def test_create_from_kwargs(self):
h = HTTPHeaderDict(ab=1, cd=2, ef=3, gh=4)
self.assertEqual(len(h), 4)