diff options
| author | Johan Dahlin <jdahlin@async.com.br> | 2008-04-08 20:09:56 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-08 20:09:56 +0000 |
| commit | b8ab661462d9312f4b723aa25bee8d08c5b46303 (patch) | |
| tree | 3e7c69cde7a9520960472e018d9fa56505249a74 /tests | |
| parent | efa7a0085d93f6ee10bad7981f7e1953243b4479 (diff) | |
| download | pygobject-b8ab661462d9312f4b723aa25bee8d08c5b46303.tar.gz pygobject-b8ab661462d9312f4b723aa25bee8d08c5b46303.tar.xz pygobject-b8ab661462d9312f4b723aa25bee8d08c5b46303.zip | |
Wrap GFileInfo.list_attributes(), add tests and set the default of
2008-04-08 Johan Dahlin <jdahlin@async.com.br>
* gio/Makefile.am:
* gio/gfileinfo.override:
* gio/gio.defs:
* gio/gio.override:
* tests/test_gio.py:
Wrap GFileInfo.list_attributes(), add tests and
set the default of GFileQueryInfoFlags args to G_FILE_QUERY_INFO_NONE.
svn path=/trunk/; revision=771
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gio.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index 5c1acdf..a01e270 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -229,3 +229,12 @@ class TestType(unittest.TestCase): data='<html></html>', want_uncertain=True) self.assertEquals('text/html', mime_type) self.assertEquals(bool, type(result_uncertain)) + + +class TestFileInfo(unittest.TestCase): + def testListAttributes(self): + gfile = gio.File("test_gio.py") + fileinfo = gfile.query_info("*") + attributes = fileinfo.list_attributes("standard") + self.failUnless(attributes) + self.failUnless('standard::name' in attributes) |
