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

mark sign as expected failures since it's not yet implemented

parent ec6ab139
Branches
No related tags found
No related merge requests found
......@@ -176,6 +176,7 @@ class TestKeyringBasics(TestKeyringBase):
this is also a test of exporting an empty keyring"""
self.assertEqual(self.gpg.export_keys(''), '')
@unittest.expectedFailure
def test_sign_key_missing_key(self):
"""try to sign a missing key
......@@ -186,14 +187,13 @@ class TestKeyringBasics(TestKeyringBase):
looking if there is really no output
"""
self.assertTrue(self.gpg.import_keys(open(os.path.dirname(__file__) + '/96F47C6A-secret.asc').read()))
with self.assertRaises(GpgRuntimeError):
self.gpg.sign_key('7B75921E')
@unittest.expectedFailure
def test_failed_revoke(self):
self.gpg.import_keys(open(os.path.dirname(__file__) + '/96F47C6A.asc').read())
self.gpg.import_keys(open(os.path.dirname(__file__) + '/96F47C6A-revoke.asc').read())
self.gpg.import_keys(open(os.path.dirname(__file__) + '/7B75921E.asc').read())
with self.assertRaises(GpgRuntimeError):
self.gpg.sign_key('7B75921E', True)
class TestKeyringWithKeys(TestKeyringBase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment