1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().

This commit is contained in:
Kosei Kitahara
2016-11-24 19:56:39 +09:00
committed by Tim Graham
parent df2a5227c9
commit f095b249ba
2 changed files with 3 additions and 2 deletions

View File

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