testinggtk r196 - trunk/tests/giotests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r196 - trunk/tests/giotests
- Date: Sat, 21 Jun 2008 16:06:59 +0000 (UTC)
Author: bjornl
Date: Sat Jun 21 16:06:59 2008
New Revision: 196
URL: http://svn.gnome.org/viewvc/testinggtk?rev=196&view=rev
Log:
Tests for content type functions
Added:
trunk/tests/giotests/test_contenttype.py
Added: trunk/tests/giotests/test_contenttype.py
==============================================================================
--- (empty file)
+++ trunk/tests/giotests/test_contenttype.py Sat Jun 21 16:06:59 2008
@@ -0,0 +1,11 @@
+'''
+Tests for content type functions.
+'''
+import gio
+
+def test_content_type_guess():
+ assert gio.content_type_guess('foo') == 'application/octet-stream'
+ assert gio.content_type_guess('.gif') == 'image/gif'
+ assert gio.content_type_guess('.jpg') == 'image/jpeg'
+ assert gio.content_type_guess('.png') == 'image/png'
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]