summaryrefslogtreecommitdiff
path: root/tests/test_manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_manifest.py')
-rw-r--r--tests/test_manifest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_manifest.py b/tests/test_manifest.py
index 43c7e18..90368d7 100644
--- a/tests/test_manifest.py
+++ b/tests/test_manifest.py
@@ -84,6 +84,12 @@ class ManifestTest(unittest.TestCase):
self.assertIsNone(m.find_path_entry('test.patch'))
self.assertEqual(m.find_path_entry('files/test.patch').aux_path, 'test.patch')
+ def test_find_dist_entry(self):
+ m = gemato.manifest.ManifestFile()
+ m.load(io.StringIO(TEST_MANIFEST))
+ self.assertIsNone(m.find_dist_entry('myebuild-0.ebuild'))
+ self.assertEqual(m.find_dist_entry('mydistfile.tar.gz').path, 'mydistfile.tar.gz')
+
class ManifestEntryTest(unittest.TestCase):
"""