def test_bad_value(self, value): with pytest.raises(ValueError): inputs.ip(value)
def test_valid_value(self, value): assert inputs.ip(value) == value