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
......@@ -138,8 +138,14 @@ class TestKeyringBasics(TestKeyringBase):
self.assertGreater(len(pubkeys), 0)
def test_import_fail(self):
"""test that import_keys() throws an error on wrong data"""
self.assertFalse(self.gpg.import_keys('THIS IS NOT A PUBLIC KEY'))
"""test that import_keys() throws an error on wrong data
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):
"""test that we can export data similar to what we import
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment