Exemple #1
0
def test_set_payload_should_raise_excpetion_for_error():
    with pytest.raises(ValueError):
        LPGAN_API_Rx.set_payload('API(127: 127)\r\n') 
Exemple #2
0
def test_set_payload_should_return_valid_count():
    api = 'API(600: 140)\r\n'
    result = LPGAN_API_Rx.set_payload(api)
    assert 140 == result['payload_bytes']