summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-10-27 15:32:21 +0200
committerMichał Górny <mgorny@gentoo.org>2017-10-27 15:42:14 +0200
commit4515573f29b9e0862ff4f72419eedfca18233c79 (patch)
tree336b24759ed5fc27d2b535313831648918f2becb /tests
parentbce76a8e28c54c8503ab9e724124be2f704c432e (diff)
downloadgemato-4515573f29b9e0862ff4f72419eedfca18233c79.tar.gz
find_top_level: Do not verify Manifests during search
Diffstat (limited to 'tests')
-rw-r--r--tests/test_openpgp.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py
index 5d55565..17a43ae 100644
--- a/tests/test_openpgp.py
+++ b/tests/test_openpgp.py
@@ -367,6 +367,18 @@ class OpenPGPNoKeyTest(unittest.TestCase):
finally:
shutil.rmtree(d)
+ def test_find_top_level_manifest(self):
+ d = tempfile.mkdtemp()
+ try:
+ with io.open(os.path.join(d, 'Manifest'), 'w') as f:
+ f.write(SIGNED_MANIFEST)
+
+ self.assertEqual(
+ gemato.find_top_level.find_top_level_manifest(d),
+ os.path.join(d, 'Manifest'))
+ finally:
+ shutil.rmtree(d)
+
class OpenPGPContextManagerTest(unittest.TestCase):
"""