diff options
author | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-12-28 21:37:49 +0100 |
---|---|---|
committer | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-12-28 21:37:49 +0100 |
commit | 9ac372ad0bcfdec4bb1c96bc152246542a59a9b1 (patch) | |
tree | 946504b6941d91ae275c522478d5e1c84b7220f3 /tests | |
parent | 7bc2673f92138b1804d8eba091942d14d8884f90 (diff) | |
download | pygobject-9ac372ad0bcfdec4bb1c96bc152246542a59a9b1.tar.gz pygobject-9ac372ad0bcfdec4bb1c96bc152246542a59a9b1.tar.xz pygobject-9ac372ad0bcfdec4bb1c96bc152246542a59a9b1.zip |
Wrap gio.FileInfo.set_modification_time and add a test
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): |