testinggtk r318 - trunk/tests/giotests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r318 - trunk/tests/giotests
- Date: Sun, 29 Jun 2008 22:41:28 +0000 (UTC)
Author: bjornl
Date: Sun Jun 29 22:41:28 2008
New Revision: 318
URL: http://svn.gnome.org/viewvc/testinggtk?rev=318&view=rev
Log:
Test content_type_is_a
Modified:
trunk/tests/giotests/test_contenttype.py
Modified: trunk/tests/giotests/test_contenttype.py
==============================================================================
--- trunk/tests/giotests/test_contenttype.py (original)
+++ trunk/tests/giotests/test_contenttype.py Sun Jun 29 22:41:28 2008
@@ -18,3 +18,7 @@
assert gio.content_type_guess('.jpg') == 'image/jpeg'
assert gio.content_type_guess('.png') == 'image/png'
+def test_content_type_is_a():
+ assert gio.content_type_is_a('foo', 'foo')
+ assert gio.content_type_is_a('text/html', 'text/plain')
+ assert not gio.content_type_is_a('text/plain', 'application/x-tar-gz')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]