summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_manifest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_manifest.py b/tests/test_manifest.py
index 18fe099..8fd3b9c 100644
--- a/tests/test_manifest.py
+++ b/tests/test_manifest.py
@@ -104,6 +104,17 @@ class ManifestTest(unittest.TestCase):
self.assertListEqual(list(m.find_manifests_for_path('eclass/foo.eclass')),
[m.find_path_entry('eclass/Manifest')])
+ def test_multiple_load(self):
+ """
+ Test that calling load() multiple times overwrites previously
+ loaded data.
+ """
+ m = gemato.manifest.ManifestFile()
+ m.load(io.StringIO(TEST_MANIFEST))
+ m.load(io.StringIO(TEST_DEPRECATED_MANIFEST))
+ self.assertIsNone(m.find_timestamp())
+ self.assertIsNone(m.find_path_entry('eclass/Manifest'))
+
class ManifestEntryTest(unittest.TestCase):
"""