summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Löffler <ml@redcowmedia.de>2015-03-05 16:26:10 +0200
committerMichael Löffler <ml@redcowmedia.de>2015-03-05 16:26:10 +0200
commit1affd18073b28b307fa06d25bd8fd544b96557b6 (patch)
treedb6cf91ddee86de06a693f69504ca4130face738 /test
parent94e633e3511ea2952890ac230ca0822e2db406f4 (diff)
downloadurllib3-1affd18073b28b307fa06d25bd8fd544b96557b6.tar.gz
Tests and fix for #564
Diffstat (limited to 'test')
-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 e64941fc..0cb59b4d 100644
--- a/test/test_collections.py
+++ b/test/test_collections.py
@@ -156,6 +156,12 @@ class TestHTTPHeaderDict(unittest.TestCase):
h = self.d.copy()
self.assertTrue(self.d is not h)
self.assertEqual(self.d, h)
+
+ def test_getlist_after_copy(self):
+ d = HTTPHeaderDict({'set-cookie': 'foo'})
+ d.add('set-cookie', 'bar')
+ d2 = HTTPHeaderDict(d)
+ self.assertEqual(d.getlist('set-cookie'), d2.getlist('set-cookie'))
def test_add_multiple_header(self):
d = HTTPHeaderDict()