summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gio.py6
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)