summaryrefslogtreecommitdiff
path: root/summainlib_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-18 09:03:53 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-18 09:03:53 +0100
commit1e7fc3a1734ea4a3b3253cb88b27c20d9e9ba72a (patch)
tree3878ca97c173e5dd0da24c99482d83c7fd774a6f /summainlib_tests.py
parent677e27e9040468d6c4a8a220c2392af5fdb4ac2d (diff)
downloadsummain-1e7fc3a1734ea4a3b3253cb88b27c20d9e9ba72a.tar.gz
Change mtime formatting test to use floating point times.
Diffstat (limited to 'summainlib_tests.py')
-rw-r--r--summainlib_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/summainlib_tests.py b/summainlib_tests.py
index bfcd9fe..26ceeb3 100644
--- a/summainlib_tests.py
+++ b/summainlib_tests.py
@@ -67,7 +67,7 @@ class FakeReadlink(object):
class FilesystemObjectTests(unittest.TestCase):
def setUp(self):
- self.st = FakeStatResult(st_mtime=1262307723,
+ self.st = FakeStatResult(st_mtime=1262307723.12765,
st_mode=stat.S_IFREG | 0644,
st_ino=12765,
st_dev=42,
@@ -98,8 +98,8 @@ class FilesystemObjectTests(unittest.TestCase):
def test_formats_mtime_correctly(self):
self.assertEqual(self.new('foo')['Mtime'],
- '2010-01-01 01:02:03 +0000')
-
+ '2010-01-01 01:02:03.12756 +0000')
+
def test_formats_mode_for_regular_file_correctly(self):
self.assertEqual(self.new('foo')['Mode'], '100644')