testinggtk r273 - trunk/tests/giotests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r273 - trunk/tests/giotests
- Date: Fri, 27 Jun 2008 19:18:44 +0000 (UTC)
Author: bjornl
Date: Fri Jun 27 19:18:44 2008
New Revision: 273
URL: http://svn.gnome.org/viewvc/testinggtk?rev=273&view=rev
Log:
Default tests for the root directory
Modified:
trunk/tests/giotests/test_file.py
Modified: trunk/tests/giotests/test_file.py
==============================================================================
--- trunk/tests/giotests/test_file.py (original)
+++ trunk/tests/giotests/test_file.py Fri Jun 27 19:18:44 2008
@@ -4,6 +4,15 @@
import gio
import os.path
+def test_default_attributes():
+ file = gio.File('/')
+ assert file.get_basename() == '/'
+ assert file.get_path() == '/'
+ assert file.get_uri() == 'file:///'
+ assert file.get_parse_name() == '/'
+ assert not file.get_parent()
+ assert file.get_uri_scheme() == 'file'
+
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]