def test_send_command():

    basic_command = commands.get('basic')
    send_command_std = net_connect.send_command(basic_command)
    send_command_slow = net_connect.send_command(basic_command, delay_factor=2)
    send_command_fast = net_connect.send_command(basic_command, delay_factor=.25)
    send_command_max_loops = net_connect.send_command(basic_command, max_loops=10)
    strip_prompt_true = send_command_std
    strip_prompt_false = net_connect.send_command(basic_command,
        strip_prompt=False)
    strip_command_true = send_command_std
    strip_command_false = net_connect.send_command(basic_command,
        strip_command=False)

    assert EXPECTED_RESPONSES['interface_ip'] in send_command_std
    assert EXPECTED_RESPONSES['interface_ip'] in send_command_slow
    assert EXPECTED_RESPONSES['interface_ip'] in send_command_fast
    assert EXPECTED_RESPONSES['interface_ip'] in send_command_max_loops
    assert EXPECTED_RESPONSES['base_prompt'] not in strip_prompt_true
    assert EXPECTED_RESPONSES['base_prompt'] in strip_prompt_false
    assert basic_command not in strip_command_true
    assert basic_command in strip_command_false
Verify send_command() method with default parameters works properly
dataset/ETHPy150Open ktbyers/netmiko/tests/old_format/test_base_connection.py/test_send_command