Beispiel #1
0
def test_iperf_correctly_parses_basic_tcp_client_output(buffer_connection):
    from moler.cmd.unix import iperf
    buffer_connection.remote_inject_response(
        [iperf.COMMAND_OUTPUT_basic_client])
    iperf_cmd = iperf.Iperf(connection=buffer_connection.moler_connection,
                            **iperf.COMMAND_KWARGS_basic_client)

    assert iperf_cmd() == iperf.COMMAND_RESULT_basic_client
Beispiel #2
0
def test_iperf_correctly_parses_bidirectional_udp_server_output(
        buffer_connection):
    from moler.cmd.unix import iperf
    buffer_connection.remote_inject_response(
        [iperf.COMMAND_OUTPUT_bidirectional_udp_server])
    iperf_cmd = iperf.Iperf(connection=buffer_connection.moler_connection,
                            **iperf.COMMAND_KWARGS_bidirectional_udp_server)
    res = iperf_cmd()
    assert res == iperf.COMMAND_RESULT_bidirectional_udp_server