summaryrefslogtreecommitdiff
path: root/tests/test_client_regress/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client_regress/tests.py')
-rw-r--r--tests/test_client_regress/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py
index 568317ec26..0763ae67b1 100644
--- a/tests/test_client_regress/tests.py
+++ b/tests/test_client_regress/tests.py
@@ -1204,6 +1204,11 @@ class RequestMethodStringDataTests(SimpleTestCase):
response = self.client.get('/json_response/')
self.assertEqual(response.json(), {'key': 'value'})
+ def test_json_charset(self):
+ response = self.client.get('/json_response_latin1/')
+ self.assertEqual(response.charset, 'latin1')
+ self.assertEqual(response.json(), {'a': 'Å'})
+
def test_json_structured_suffixes(self):
valid_types = (
'application/vnd.api+json',