Fix JSON content type test to not expect charset param

This commit is contained in:
Martin
2012-07-27 19:51:50 +01:00
parent 0070db1a6f
commit 3422747c06

View File

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