|
|
@ -157,7 +157,7 @@ class TestPrivateKey(unittest.TestCase): |
|
|
|
pk = self.get_pk_obj(fname, password='wrongpass') |
|
|
|
pk = self.get_pk_obj(fname, password='wrongpass') |
|
|
|
with self.assertRaises(InvalidValueError) as ctx: |
|
|
|
with self.assertRaises(InvalidValueError) as ctx: |
|
|
|
pk.get_pkey_obj() |
|
|
|
pk.get_pkey_obj() |
|
|
|
self.assertIn('wrong password', str(ctx.exception)) |
|
|
|
self.assertIn('wrong passphrase', str(ctx.exception)) |
|
|
|
|
|
|
|
|
|
|
|
pk = self.get_pk_obj(fname, password=password) |
|
|
|
pk = self.get_pk_obj(fname, password=password) |
|
|
|
self.assertIsInstance(pk.get_pkey_obj(), klass) |
|
|
|
self.assertIsInstance(pk.get_pkey_obj(), klass) |
|
|
|