def test_fail__valid_ip_or_host(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_ip_or_host(arg))
def test_ok__valid_ip_or_host(arg: Any) -> None: assert valid_ip_or_host(arg) == arg.strip()