mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-23 22:26:28 +00:00
Pass None for empty password
This commit is contained in:
@@ -83,3 +83,5 @@ class TestIndexHandler(unittest.TestCase):
|
||||
with self.assertRaises(InvalidValueError) as exc:
|
||||
pkey = IndexHandler.get_pkey_obj('x'+key, password, fname)
|
||||
self.assertIn('Invalid private key', str(exc))
|
||||
with self.assertRaises(paramiko.PasswordRequiredException):
|
||||
pkey = IndexHandler.get_pkey_obj(key, '', fname)
|
||||
|
||||
Reference in New Issue
Block a user