[Pkg-privacy-commits] [monkeysign] 04/08: fix test_import by checking the imported keys instead of return value

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:34:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch dev/python-gnupg
in repository monkeysign.

commit 5d49ebd0edf7ac2123adedb7b3d025b3e0f71683
Author: Antoine Beaupré <anarcat at koumbit.org>
Date:   Fri Aug 29 20:55:57 2014 -0700

    fix test_import by checking the imported keys instead of return value
---
 tests/test_gpg.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test_gpg.py b/tests/test_gpg.py
index d06e45f..7e54158 100755
--- a/tests/test_gpg.py
+++ b/tests/test_gpg.py
@@ -133,7 +133,9 @@ class TestKeyringBasics(TestKeyringBase):
 
         it should throw an exception if there's something wrong with the backend too
         """
-        self.assertTrue(self.gpg.import_keys(open(os.path.dirname(__file__) + '/96F47C6A.asc').read()))
+        self.gpg.import_keys(open(os.path.dirname(__file__) + '/96F47C6A.asc').read())
+        pubkeys = self.gpg.list_keys()
+        self.assertGreater(len(pubkeys), 0)
 
     def test_import_fail(self):
         """test that import_keys() throws an error on wrong data"""

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/monkeysign.git



More information about the Pkg-privacy-commits mailing list