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):