Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
monkeysphere
monkeysign
Commits
0066d682
Commit
0066d682
authored
Aug 30, 2014
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_gpg.py
View file @
0066d682
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment