Fix JSON content type test to not expect charset param
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user