def test_clear_buffer(net_connect, commands, expected_responses):
    # Manually send a command down the channel so that data needs read.
    net_connect.remote_conn.sendall(commands["basic"] + '\n')
    time.sleep(4)
    net_connect.clear_buffer()

    # Should not be anything there on the second pass
    clear_buffer_check = net_connect.clear_buffer()
    assert clear_buffer_check is None
Test that clearing the buffer works.
dataset/ETHPy150Open ktbyers/netmiko/tests/test_netmiko_show.py/test_clear_buffer