def test_fail__valid_ugpio_mode(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_ugpio_mode(arg, UserGpioModes.ALL))
def test_ok__valid_ugpio_mode(arg: Any) -> None: assert valid_ugpio_mode(arg, UserGpioModes.ALL) == arg.strip().lower()