Skip to content

Commit 68fe305

Browse files
committed
Add test for exit enable mode
1 parent ecb5e74 commit 68fe305

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_netmiko_show.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,13 @@ def test_enable_mode(net_connect, commands, expected_responses):
374374
except AttributeError:
375375
assert True
376376

377+
# Now verify you can exit enable mode
378+
try:
379+
net_connect.exit_enable_mode()
380+
prompt = net_connect.find_prompt()
381+
assert prompt == expected_responses["router_prompt"]
382+
except AttributeError:
383+
assert True
377384

378385
def test_disconnect(net_connect, commands, expected_responses):
379386
"""Terminate the SSH session."""

0 commit comments

Comments
 (0)