diff --git a/testtools/content_type.py b/testtools/content_type.py index aca4ef6..a936506 100644 --- a/testtools/content_type.py +++ b/testtools/content_type.py @@ -30,4 +30,4 @@ class ContentType(object): return "%s/%s params=%s" % (self.type, self.subtype, self.parameters) -PLAIN_TEXT = ContentType('text', 'plain', {'charset': 'utf8'}) +UTF8_TEXT = ContentType('text', 'plain', {'charset': 'utf8'}) diff --git a/testtools/tests/test_content_type.py b/testtools/tests/test_content_type.py index 8a020ab..d593a14 100644 --- a/testtools/tests/test_content_type.py +++ b/testtools/tests/test_content_type.py @@ -2,7 +2,7 @@ from testtools import TestCase from testtools.matchers import Equals -from testtools.content_type import ContentType, PLAIN_TEXT +from testtools.content_type import ContentType, UTF8_TEXT class TestContentType(TestCase): @@ -33,10 +33,10 @@ class TestContentType(TestCase): class TestBuiltinContentTypes(TestCase): def test_plain_text(self): - # The PLAIN_TEXT content type represents UTF-8 encoded text/plain. - self.assertThat(PLAIN_TEXT.type, Equals('text')) - self.assertThat(PLAIN_TEXT.subtype, Equals('plain')) - self.assertThat(PLAIN_TEXT.parameters, Equals({'charset': 'utf8'})) + # The UTF8_TEXT content type represents UTF-8 encoded text/plain. + self.assertThat(UTF8_TEXT.type, Equals('text')) + self.assertThat(UTF8_TEXT.subtype, Equals('plain')) + self.assertThat(UTF8_TEXT.parameters, Equals({'charset': 'utf8'})) def test_suite():