Exemple #1
0
def test_get_firmware_should_raise_expcetion_for_error():
    with pytest.raises(ValueError):
        LPGAN_API_Rx.get_firmware_version('API(136)')
Exemple #2
0
def test_get_firmware_version_should_return_firmware_version():
    result =  LPGAN_API_Rx.get_firmware_version('API(600: cn-release-v1.0.0-1-gd193bbe4)')

    expected_result = 'cn-release-v1.0.0-1-gd193bbe4'

    assert expected_result == result['firmware_version']