diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gio.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index 1578d58..fd2edba 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -945,10 +945,15 @@ class TestFileInfo(unittest.TestCase): self.failUnless(attributes) self.failUnless('standard::name' in attributes) - def testModificationTime(self): + def testGetModificationTime(self): mtime = self.fileinfo.get_modification_time() self.assertEqual(type(mtime), float) + def testSetModificationTime(self): + self.fileinfo.set_modification_time(1000) + mtime = self.fileinfo.get_modification_time() + self.assertEqual(mtime, 1000) + class TestAppInfo(unittest.TestCase): def setUp(self): |