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