diff options
author | Thomas Kluyver <takowl@gmail.com> | 2013-03-12 17:45:43 +0000 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2013-03-12 17:45:43 +0000 |
commit | ec1ebde0cb117be2b68274710cc24869558b0d3c (patch) | |
tree | 3abdcaad5e085412549151f592f8f7fa03c1ce19 /test | |
parent | 0597bdc7be6e7fb06863ffef77575df362cce646 (diff) |
Another test for canonical MIMEtypes
Diffstat (limited to 'test')
-rw-r--r-- | test/test-mime.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-mime.py b/test/test-mime.py index 9334bfc..243521d 100644 --- a/test/test-mime.py +++ b/test/test-mime.py @@ -82,6 +82,10 @@ class MimeTest(MimeTestBase): text_xml = Mime.lookup('text/xml') self.check_mimetype(text_xml, 'text', 'xml') self.check_mimetype(text_xml.canonical(), 'application', 'xml') + + # Already is canonical + python = Mime.lookup('text/x-python') + self.check_mimetype(python.canonical(), 'text', 'x-python') def test_inheritance(self): text_python = Mime.lookup('text/x-python') |