コード例 #1
0
def test_get_next_pass_should_raise_exception_for_error():
    with pytest.raises(ValueError):
        LPGAN_API_Rx.get_next_pass('API(225)')
コード例 #2
0
def test_get_next_pass_should_return_valid_time_until_next_pass():
    api ='API(600: 1298)'
    result = LPGAN_API_Rx.get_next_pass(api)

    assert 1298 == result['seconds_left_until_pass']