diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-01-01 02:32:52 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-01-01 02:32:52 +0200 |
commit | 8b79181c018bc83ad0c488cb4bffcbe0a90910a6 (patch) | |
tree | 3f3a8681c45836367ac3f26f17677aa1ee0acf6c /summainlib_tests.py | |
parent | 0455931755ea14fef45d4702a0a9ba2af9531de5 (diff) | |
download | summain-8b79181c018bc83ad0c488cb4bffcbe0a90910a6.tar.gz |
New test for FilesystemObject to test formatting of
mtime.
Diffstat (limited to 'summainlib_tests.py')
-rw-r--r-- | summainlib_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/summainlib_tests.py b/summainlib_tests.py index 15d843d..12af97d 100644 --- a/summainlib_tests.py +++ b/summainlib_tests.py @@ -29,3 +29,7 @@ class FilesystemObjectTests(unittest.TestCase): def test_formats_space_correctly(self): self.assertEqual(self.new('foo bar')['Name'], 'foo%20bar') + + def test_formats_mtime_correctly(self): + self.assertEqual(self.new('foo')['Mtime'], + '2010-01-01 01:02:03 +0000') |