Пример #1
0
def test_fail__valid_ugpio_driver_variants(arg: Any) -> None:
    with pytest.raises(ValidatorError):
        print(valid_ugpio_driver(arg, set(["foo", "bar", "baz"])))
Пример #2
0
def test_ok__valid_ugpio_driver_variants(arg: Any) -> None:
    value = valid_ugpio_driver(arg, set(["foo", "bar", "baz"]))
    assert type(value) == str  # pylint: disable=unidiomatic-typecheck
    assert value == str(arg).strip()