diff options
| author | Kosei Kitahara <surgo.jp@gmail.com> | 2016-11-24 19:56:39 +0900 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-24 05:56:39 -0500 |
| commit | f095b249baf34bbdd4c0b28c9bde05b4d20681be (patch) | |
| tree | 9bb474ff5990ac5372481dae3f9087a133f9d397 /tests/template_tests | |
| parent | df2a5227c90d60bdae154ac5acc0436a6ed1f953 (diff) | |
Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().
Diffstat (limited to 'tests/template_tests')
| -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) |
