diff options
author | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2008-08-01 22:42:37 +0000 |
---|---|---|
committer | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2008-08-01 22:42:37 +0000 |
commit | 9e22741a4683e4184ffcdaf7382b0ba045f4a3be (patch) | |
tree | c00e01731781b6b3813d320b1dc89efaf84e6351 /tests | |
parent | bd788d5972dc5d1896820740061bbc9250d80682 (diff) | |
download | pygobject-9e22741a4683e4184ffcdaf7382b0ba045f4a3be.tar.gz pygobject-9e22741a4683e4184ffcdaf7382b0ba045f4a3be.tar.xz pygobject-9e22741a4683e4184ffcdaf7382b0ba045f4a3be.zip |
Wrap GFile.query_writable_namespaces with docs and test
svn path=/trunk/; revision=909
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gio.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index 5a3715b..3761b31 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -196,6 +196,12 @@ class TestFile(unittest.TestCase): self.assertEqual(info.flags, gio.FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED) + def testQueryWritableNamespaces(self): + infolist = self.file.query_writable_namespaces() + for info in infolist: + if info.name == "xattr": + self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING) + def testSetAttribute(self): self._f.write("testing attributes") self._f.seek(0) |