Fix test for passphrase

This commit is contained in:
khuxkm fbexl
2019-09-06 13:54:24 -04:00
parent 1a9ba5bb31
commit 850dd39f26
+1 -1
View File
@@ -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: