diff options
author | Ruben Pollan <meskio@sindominio.net> | 2014-12-14 22:13:57 -0600 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2014-12-16 11:55:16 -0600 |
commit | 4162fd5a7e6485fdcf068af06a743c1ef7676a50 (patch) | |
tree | e626e457fdc1dc8a2f5d6e63cb2026c354f9a9ff /src/leap/keymanager/tests | |
parent | 7bafe2465cf6b4432a80d4cbe2c938716b911fb2 (diff) |
Return the right error on signature verification
Diffstat (limited to 'src/leap/keymanager/tests')
-rw-r--r-- | src/leap/keymanager/tests/test_keymanager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/keymanager/tests/test_keymanager.py b/src/leap/keymanager/tests/test_keymanager.py index b8ef88ae..dca89e8e 100644 --- a/src/leap/keymanager/tests/test_keymanager.py +++ b/src/leap/keymanager/tests/test_keymanager.py @@ -29,6 +29,7 @@ from twisted.trial import unittest from leap.keymanager import ( KeyNotFound, KeyAddressMismatch, + errors ) from leap.keymanager.openpgp import OpenPGPKey from leap.keymanager.keys import ( @@ -357,7 +358,7 @@ class KeyManagerCryptoTestCase(KeyManagerWithSoledadTestCase): rawdata, signingkey = yield km.decrypt( encdata, ADDRESS, OpenPGPKey, verify=ADDRESS, fetch_remote=False) self.assertEqual(self.RAW_DATA, rawdata) - self.assertTrue(signingkey is None) + self.assertTrue(isinstance(signingkey, errors.InvalidSignature)) @inlineCallbacks def test_keymanager_openpgp_sign_verify(self): |