MCPcopy
hub / github.com/ktbyers/netmiko / test_send_command

Function test_send_command

tests/test_netmiko_show.py:96–100  ·  view source on GitHub ↗

Verify a command can be sent down the channel successfully using send_command method.

(net_connect, commands, expected_responses)

Source from the content-addressed store, hash-verified

94
95
96def test_send_command(net_connect, commands, expected_responses):
97 """Verify a command can be sent down the channel successfully using send_command method."""
98 net_connect.clear_buffer()
99 show_ip_alt = net_connect.send_command(commands["basic"])
100 assert expected_responses["interface_ip"] in show_ip_alt
101
102
103def test_send_command_no_cmd_verify(net_connect, commands, expected_responses):

Callers

nothing calls this directly

Calls 2

clear_bufferMethod · 0.80
send_commandMethod · 0.45

Tested by

no test coverage detected