mirror of https://github.com/huashengdun/webssh
Fix test for passphrase
parent
1a9ba5bb31
commit
850dd39f26
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue