summaryrefslogtreecommitdiffhomepage
path: root/tests/test_hostkeys.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2021-11-28 20:22:50 -0500
committerJeff Forcier <jeff@bitprophet.org>2021-11-28 20:24:17 -0500
commit37cda1dd85430910c7867430d04ec6ac846823b2 (patch)
treee8f01cd6427b2b0ec6466988ed0266f6fac0a8e5 /tests/test_hostkeys.py
parent15fa5b8d2a7750b2ead67580343bf96ff93f6840 (diff)
Blacken for hostkeys fix
Diffstat (limited to 'tests/test_hostkeys.py')
-rw-r--r--tests/test_hostkeys.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_hostkeys.py b/tests/test_hostkeys.py
index e375687c..41a9244f 100644
--- a/tests/test_hostkeys.py
+++ b/tests/test_hostkeys.py
@@ -132,10 +132,10 @@ class HostKeysTest(unittest.TestCase):
assert False, "Entry was not deleted from HostKeys on delitem!"
def test_entry_delitem(self):
- hostdict = paramiko.HostKeys('hostfile.temp')
- target = 'happy.example.com'
+ hostdict = paramiko.HostKeys("hostfile.temp")
+ target = "happy.example.com"
entry = hostdict[target]
- key_type_list = [ key_type for key_type in entry ]
+ key_type_list = [key_type for key_type in entry]
for key_type in key_type_list:
del entry[key_type]
@@ -144,6 +144,6 @@ class HostKeysTest(unittest.TestCase):
try:
del entry[key_type]
except KeyError:
- pass # Good
+ pass # Good
else:
assert False, "Key was not deleted from Entry on delitem!"