summaryrefslogtreecommitdiff
path: root/tests/httpwrappers/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/httpwrappers/tests.py')
-rw-r--r--tests/httpwrappers/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index cbf8b7d586..728e879b5c 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -835,6 +835,10 @@ class HttpResponseHeadersTestCase(SimpleTestCase):
# del doesn't raise a KeyError on nonexistent headers.
del response['X-Foo']
+ def test_headers_as_iterable_of_tuple_pairs(self):
+ response = HttpResponse(headers=(('X-Foo', 'bar'),))
+ self.assertEqual(response['X-Foo'], 'bar')
+
def test_headers_bytestring(self):
response = HttpResponse()
response['X-Foo'] = b'bar'