def test_fail__valid_ports_list(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_ports_list(arg))
def test_ok__valid_ports_list(arg: Any, retval: List[int]) -> None: assert valid_ports_list(arg) == retval