Exemple #1
0
def test_set_modem_number_fails_if_non_string_passed():
    modem_number = 12345678
    with pytest.raises(ValueError):
        LPGAN_API_Tx.set_modem_number(modem_number)
Exemple #2
0
def test_set_modem_number_should_fail_for_invalid_string_missing_middle_space(
):
    modem_number = 'ABCD1234'
    with pytest.raises(ValueError):
        LPGAN_API_Tx.set_modem_number(modem_number)
Exemple #3
0
def test_set_modem_number_should_create_valid_string():
    modem_number = 'ABCD 1234'
    expected_string = f'set_modem_number({modem_number})\r\n'
    assert expected_string == LPGAN_API_Tx.set_modem_number(modem_number)