def test_fail__valid_unix_mode(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_unix_mode(arg))
def test_ok__valid_unix_mode(arg: Any) -> None: value = valid_unix_mode(arg) assert type(value) == int # pylint: disable=unidiomatic-typecheck assert value == int(str(value).strip())