From 3422747c064554c032761a078d88bbe66cb01d70 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 27 Jul 2012 19:51:50 +0100 Subject: [PATCH] Fix JSON content type test to not expect charset param --- testtools/tests/test_content_type.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testtools/tests/test_content_type.py b/testtools/tests/test_content_type.py index a04a312..538db85 100644 --- a/testtools/tests/test_content_type.py +++ b/testtools/tests/test_content_type.py @@ -55,10 +55,10 @@ class TestBuiltinContentTypes(TestCase): self.assertThat(UTF8_TEXT.parameters, Equals({'charset': 'utf8'})) def test_json_content(self): - # The JSON content type represents UTF-8 encoded application/json. + # The JSON content type represents implictly UTF-8 application/json. self.assertThat(JSON.type, Equals('application')) self.assertThat(JSON.subtype, Equals('json')) - self.assertThat(JSON.parameters, Equals({'charset': 'utf8'})) + self.assertThat(JSON.parameters, Equals({})) def test_suite():