def test_fail__valid_ugpio_driver_variants(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_ugpio_driver(arg, set(["foo", "bar", "baz"])))
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()