testinggtk r272 - trunk/tests/giotests



Author: bjornl
Date: Fri Jun 27 19:13:32 2008
New Revision: 272
URL: http://svn.gnome.org/viewvc/testinggtk?rev=272&view=rev

Log:
Tests for the gio.File class

Added:
   trunk/tests/giotests/test_file.py

Added: trunk/tests/giotests/test_file.py
==============================================================================
--- (empty file)
+++ trunk/tests/giotests/test_file.py	Fri Jun 27 19:13:32 2008
@@ -0,0 +1,9 @@
+'''
+Tests for the ``gio.File`` class.
+'''
+import gio
+import os.path
+
+def test_relative_path():
+    file = gio.file_parse_name('foo/bar')
+    assert file.get_path() == os.path.abspath('foo/bar')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]