diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-25 01:03:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-25 01:03:48 +0200 |
commit | d7af418000c090a30b1356454b8b1895b4a5b745 (patch) | |
tree | fe7620b1318aa0ed7269e6583ff8717970989896 /tests | |
parent | 7919b84bf3b1334d252156d2a8be756e054769bb (diff) | |
download | gemato-d7af418000c090a30b1356454b8b1895b4a5b745.tar.gz |
test_manifest: Add a test for no timestamp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_manifest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_manifest.py b/tests/test_manifest.py index fbf74e5..18fe099 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -65,6 +65,11 @@ class ManifestTest(unittest.TestCase): self.assertEqual(m.find_timestamp().ts, datetime.datetime(2017, 10, 22, 18, 6, 41)) + def test_find_timestamp_none(self): + m = gemato.manifest.ManifestFile() + m.load(io.StringIO(u'')) + self.assertIsNone(m.find_timestamp()) + def test_find_path_entry(self): m = gemato.manifest.ManifestFile() m.load(io.StringIO(TEST_MANIFEST)) |