summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 3c648f6b31..fbc5019979 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -470,6 +470,10 @@ class HttpResponseTests(unittest.TestCase):
# del doesn't raise a KeyError on nonexistent headers.
del r.headers['X-Foo']
+ def test_content_type(self):
+ r = HttpResponse('hello', content_type='application/json')
+ self.assertEqual(r.headers['Content-Type'], 'application/json')
+
class HttpResponseSubclassesTests(SimpleTestCase):
def test_redirect(self):