From 9ac372ad0bcfdec4bb1c96bc152246542a59a9b1 Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Mon, 28 Dec 2009 21:37:49 +0100 Subject: Wrap gio.FileInfo.set_modification_time and add a test --- tests/test_gio.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') 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): -- cgit