testinggtk r319 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r319 - trunk/tests
- Date: Sun, 29 Jun 2008 22:42:59 +0000 (UTC)
Author: bjornl
Date: Sun Jun 29 22:42:59 2008
New Revision: 319
URL: http://svn.gnome.org/viewvc/testinggtk?rev=319&view=rev
Log:
Test matching mime supertypes
Modified:
trunk/tests/test_filefilter.py
Modified: trunk/tests/test_filefilter.py
==============================================================================
--- trunk/tests/test_filefilter.py (original)
+++ trunk/tests/test_filefilter.py Sun Jun 29 22:42:59 2008
@@ -25,3 +25,12 @@
ff = gtk.FileFilter()
ff.add_mime_type('mimetype')
assert ff.filter((None, None, None, 'mimetype'))
+
+def test_matching_mime_from_basetype():
+ '''
+ Ensure that a subtype matches a filter with that mimes
+ supertype. For example, text/plain should match text/html.
+ '''
+ ff = gtk.FileFilter()
+ ff.add_mime_type('text/plain')
+ assert ff.filter((None, None, None, 'text/html'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]