def test_send_command_expect():

    basic_command = commands.get('basic')
    cmd_expect_std = net_connect.send_command_expect(basic_command)
    cmd_expect_short = net_connect.send_command_expect(basic_command, 
        expect_string=commands.get("interface_name"))
    cmd_expect_slow = net_connect.send_command_expect(basic_command, delay_factor=2)
    cmd_expect_fast = net_connect.send_command_expect(basic_command, delay_factor=.25)
    cmd_expect_max_loops = net_connect.send_command_expect(basic_command, max_loops=10)
    expect_strip_prompt_true = cmd_expect_std
    expect_strip_prompt_false = net_connect.send_command_expect(basic_command,
        strip_prompt=False)
    expect_strip_command_true = cmd_expect_std
    expect_strip_command_false = net_connect.send_command_expect(basic_command,
        strip_command=False)

    assert EXPECTED_RESPONSES['interface_ip'] in cmd_expect_std
#    assert EXPECTED_RESPONSES['interface_ip'] not in cmd_expect_short
    assert EXPECTED_RESPONSES['interface_ip'] in cmd_expect_slow
    assert EXPECTED_RESPONSES['interface_ip'] in cmd_expect_fast
    assert EXPECTED_RESPONSES['interface_ip'] in cmd_expect_max_loops
    assert EXPECTED_RESPONSES['base_prompt'] not in expect_strip_prompt_true
    assert EXPECTED_RESPONSES['base_prompt'] in expect_strip_prompt_false
    assert basic_command not in expect_strip_command_true
    assert basic_command in expect_strip_command_false
Verify send_command_expect() method with default parameters works properly
dataset/ETHPy150Open ktbyers/netmiko/tests/old_format/test_base_connection.py/test_send_command_expect