def test_fail__valid_abs_path__dir(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_abs_path(arg, type="dir"))
def test_fail__valid_abs_path(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_abs_path(arg))
def test_ok__valid_abs_path__dir(arg: Any, retval: str) -> None: assert valid_abs_path(arg, type="dir") == retval
def test_ok__valid_abs_path(arg: Any, retval: str) -> None: assert valid_abs_path(arg) == retval