Skip to content
Snippets Groups Projects
Commit 0066d682 authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

add debug code for test_import_fail() failure

it fails when more than one tests are ran for some reason
parent dbc338cf
Branches
No related tags found
No related merge requests found
...@@ -138,8 +138,14 @@ class TestKeyringBasics(TestKeyringBase): ...@@ -138,8 +138,14 @@ class TestKeyringBasics(TestKeyringBase):
self.assertGreater(len(pubkeys), 0) self.assertGreater(len(pubkeys), 0)
def test_import_fail(self): def test_import_fail(self):
"""test that import_keys() throws an error on wrong data""" """test that import_keys() throws an error on wrong data
self.assertFalse(self.gpg.import_keys('THIS IS NOT A PUBLIC KEY'))
XXX: this fails when more than one tests are ran, for an
unknown reason"""
res = self.gpg.import_keys('THIS IS NOT A PUBLIC KEY')
if res:
print "unexpected fingerprints: %s, counts: %s" % (res.fingerprints, res.counts)
self.assertFalse(res)
def test_export(self): def test_export(self):
"""test that we can export data similar to what we import """test that we can export data similar to what we import
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment