Commit 3165cf23 by Sheng

Updated test_settings.py

parent 5245560b
...@@ -52,6 +52,8 @@ class TestSettings(unittest.TestCase): ...@@ -52,6 +52,8 @@ class TestSettings(unittest.TestCase):
try: try:
instance = get_policy_setting(options, settings) instance = get_policy_setting(options, settings)
except ValueError: except ValueError:
pass self.assertFalse(
settings['host_keys'] and settings['system_host_keys']
)
else: else:
self.assertIsInstance(instance, paramiko.client.RejectPolicy) self.assertIsInstance(instance, paramiko.client.RejectPolicy)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment