testinggtk r317 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r317 - trunk/tests
- Date: Sun, 29 Jun 2008 22:36:46 +0000 (UTC)
Author: bjornl
Date: Sun Jun 29 22:36:46 2008
New Revision: 317
URL: http://svn.gnome.org/viewvc/testinggtk?rev=317&view=rev
Log:
Test for matching mime type
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:36:46 2008
@@ -17,3 +17,11 @@
ff.add_pattern('*')
file = gio.File(__file__)
assert ff.filter((None, None, file.get_basename(), None))
+
+def test_matching_mime():
+ '''
+ Ensure that matching mime type works.
+ '''
+ ff = gtk.FileFilter()
+ ff.add_mime_type('mimetype')
+ assert ff.filter((None, None, None, 'mimetype'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]