summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2017-07-04 12:10:17 +0100
committerThomas Kluyver <thomas@kluyver.me.uk>2017-07-04 12:10:17 +0100
commitc80f5ceaef21a4888c97ceae8256f3a2f6cb7269 (patch)
tree27491dfbe485db4ff54b87634cf98131475426bc
parent8f2888721b05b6298eb44d667bece464b7de5c8a (diff)
Accept either x-glade or x-gtk-builder for glade UI file
-rw-r--r--test/test-mime.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test-mime.py b/test/test-mime.py
index 5715ad8..cc10a3c 100644
--- a/test/test-mime.py
+++ b/test/test-mime.py
@@ -90,7 +90,10 @@ class MimeTest(MimeTestBase):
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-gtk-builder')
+ glade_mime = Mime.get_type2(example_file('glade.ui'))
+ self.assertEqual(glade_mime.media, 'application')
+ # Grumble, this is still ambiguous on some systems
+ self.assertIn(glade_mime.subtype, {'x-gtk-builder', 'x-glade'})
self.check_mimetype(Mime.get_type2(example_file('qtdesigner.ui')), 'application', 'x-designer')
# text/x-python has greater weight than text/x-readme