summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-03-16 12:02:07 +0000
committerThomas Kluyver <takowl@gmail.com>2013-03-16 12:02:07 +0000
commit546800a63a14685f3876600ca2857c4ec0330c24 (patch)
treeee3c742572589970a7229972a596668231152fe0 /test
parent36c82805d6f9e944572fe7f13101ec8a7a4eef66 (diff)
Store only canonical MIMEtypes for globs
Diffstat (limited to 'test')
-rw-r--r--test/example/word.docbin0 -> 9216 bytes
-rw-r--r--test/test-mime.py1
2 files changed, 1 insertions, 0 deletions
diff --git a/test/example/word.doc b/test/example/word.doc
new file mode 100644
index 0000000..2ebf6cb
--- /dev/null
+++ b/test/example/word.doc
Binary files differ
diff --git a/test/test-mime.py b/test/test-mime.py
index b37ebe2..51bff2f 100644
--- a/test/test-mime.py
+++ b/test/test-mime.py
@@ -74,6 +74,7 @@ class MimeTest(MimeTestBase):
# Does exist - use name before contents
self.check_mimetype(Mime.get_type2(example_file('file.png')), 'image', 'png')
+ self.check_mimetype(Mime.get_type2(example_file('word.doc')), 'application', 'msword')
# Ambiguous file extension
self.check_mimetype(Mime.get_type2(example_file('glade.ui')), 'application', 'x-glade')