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