Esempio n. 1
0
def test_do_gps_fix_with_input_string():
    input_string = '12345,223452'
    expected_string = f'do_gps_fix(\"{input_string}\")\r\n'

    assert expected_string == LPGAN_API_Tx.do_gps_fix(input_string)
Esempio n. 2
0
def test_do_gps_fix_with_input_int_instead_of_string_should_fail():
    input_value = 1234.5

    with pytest.raises(ValueError):
        LPGAN_API_Tx.do_gps_fix(input_value)
Esempio n. 3
0
def test_do_gps_fix_no_input_string():
    expected_string = 'do_gps_fix\r\n'

    assert expected_string == LPGAN_API_Tx.do_gps_fix()