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