diff options
author | Johan Dahlin <johan@gnome.org> | 2008-03-09 23:07:59 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-03-09 23:07:59 +0000 |
commit | 553af6753bea913577f6860820b948e661575527 (patch) | |
tree | 354240b9ceea052977d8f2defe87b5ca2fae255b /tests/test_gio.py | |
parent | 5f11b1470b20c34b325c5534aca5afc44d37d8c8 (diff) | |
download | pygobject-553af6753bea913577f6860820b948e661575527.tar.gz pygobject-553af6753bea913577f6860820b948e661575527.tar.xz pygobject-553af6753bea913577f6860820b948e661575527.zip |
Update to SVN of gio: g_file_contains_file -> g_file_has_prefix can_seek
2008-03-09 Johan Dahlin <johan@gnome.org>
* gio/gio-types.defs:
* gio/gio.defs:
* tests/test_gio.py:
Update to SVN of gio:
g_file_contains_file -> g_file_has_prefix
can_seek and can_truncate are now only on the GSeekable interface
Add tests
(#521207, Thomas Leonard)
svn path=/trunk/; revision=750
Diffstat (limited to 'tests/test_gio.py')
-rw-r--r-- | tests/test_gio.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index b45e92f..2b12d5b 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -32,6 +32,22 @@ class TestFile(unittest.TestCase): loop = gobject.MainLoop() loop.run() +class TestGFileEnumerator(unittest.TestCase): + def setUp(self): + self.file = gio.file_new_for_path(".") + + def testEnumerateChildren(self): + found = [] + + e = self.file.enumerate_children("standard::*", gio.FILE_QUERY_INFO_NOFOLLOW_SYMLINKS) + while True: + info = e.next_file() + if not info: + break + found.append(info.get_name()) + e.close() + + assert 'test_gio.py' in found, found class TestInputStream(unittest.TestCase): def setUp(self): |