diff options
| author | Marnanel Thurman <thomas@thurman.org.uk> | 2018-08-15 15:27:45 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-08-15 10:27:45 -0400 |
| commit | 7cc52250f06c2a4769badbab1d7ee01f8e3cb46a (patch) | |
| tree | a97e90eac363527fb4af692cda26a6478944f1e1 /tests/test_client_regress | |
| parent | 7eb556a6c2b2ac9313158f8b812eebea02a43f20 (diff) | |
Fixed #29662 -- Allowed test client to accept structured suffix JSON content types.
Diffstat (limited to 'tests/test_client_regress')
| -rw-r--r-- | tests/test_client_regress/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py index 7c41fa168e..568317ec26 100644 --- a/tests/test_client_regress/tests.py +++ b/tests/test_client_regress/tests.py @@ -1204,11 +1204,13 @@ class RequestMethodStringDataTests(SimpleTestCase): response = self.client.get('/json_response/') self.assertEqual(response.json(), {'key': 'value'}) - def test_json_vendor(self): + def test_json_structured_suffixes(self): valid_types = ( 'application/vnd.api+json', 'application/vnd.api.foo+json', 'application/json; charset=utf-8', + 'application/activity+json', + 'application/activity+json; charset=utf-8', ) for content_type in valid_types: response = self.client.get('/json_response/', {'content_type': content_type}) |
