diff options
Diffstat (limited to 'tests/template_tests/test_response.py')
| -rw-r--r-- | tests/template_tests/test_response.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/template_tests/test_response.py b/tests/template_tests/test_response.py index c148b2dc44..60839f5c6b 100644 --- a/tests/template_tests/test_response.py +++ b/tests/template_tests/test_response.py @@ -122,9 +122,10 @@ class SimpleTemplateResponseTest(SimpleTestCase): self.assertEqual(response.content, b'bar') def test_kwargs(self): - response = self._response(content_type='application/json', status=504) + response = self._response(content_type='application/json', status=504, charset='ascii') self.assertEqual(response['content-type'], 'application/json') self.assertEqual(response.status_code, 504) + self.assertEqual(response.charset, 'ascii') def test_args(self): response = SimpleTemplateResponse('', {}, 'application/json', 504) |
