summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorKosei Kitahara <surgo.jp@gmail.com>2016-11-24 19:56:39 +0900
committerTim Graham <timograham@gmail.com>2016-11-24 05:56:39 -0500
commitf095b249baf34bbdd4c0b28c9bde05b4d20681be (patch)
tree9bb474ff5990ac5372481dae3f9087a133f9d397 /tests/template_tests
parentdf2a5227c90d60bdae154ac5acc0436a6ed1f953 (diff)
Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/test_response.py3
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)