diff options
Diffstat (limited to 'tests/test_openpgp.py')
-rw-r--r-- | tests/test_openpgp.py | 12 |
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): """ |