Fix test for passphrase
This commit is contained in:
@@ -152,7 +152,7 @@ class TestPrivateKey(unittest.TestCase):
|
||||
pk = self.get_pk_obj(fname, password='')
|
||||
with self.assertRaises(InvalidValueError) as ctx:
|
||||
pk.get_pkey_obj()
|
||||
self.assertIn('Need a password', str(ctx.exception))
|
||||
self.assertIn('Need a passphrase', str(ctx.exception))
|
||||
|
||||
pk = self.get_pk_obj(fname, password='wrongpass')
|
||||
with self.assertRaises(InvalidValueError) as ctx:
|
||||
|
||||
Reference in New Issue
Block a user