commit 3165cf23997e0bb4b150156f19939b6a35088613
parent 5245560b811ee3ef5c3ab0b97b27f7cdd815e9c6
Author: Sheng <webmaster0115@gmail.com>
Date: Mon, 23 Apr 2018 17:11:07 +0800
Updated test_settings.py
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/test_settings.py b/tests/test_settings.py
@@ -52,6 +52,8 @@ class TestSettings(unittest.TestCase):
try:
instance = get_policy_setting(options, settings)
except ValueError:
- pass
+ self.assertFalse(
+ settings['host_keys'] and settings['system_host_keys']
+ )
else:
self.assertIsInstance(instance, paramiko.client.RejectPolicy)