From 9e22741a4683e4184ffcdaf7382b0ba045f4a3be Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Fri, 1 Aug 2008 22:42:37 +0000 Subject: Wrap GFile.query_writable_namespaces with docs and test svn path=/trunk/; revision=909 --- tests/test_gio.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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) -- cgit