summaryrefslogtreecommitdiff
path: root/test/test_collections.py
diff options
context:
space:
mode:
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)