def test_invalid(self, value): assert not is_ipv4(value)
def test_valid(self): assert is_ipv4('8.8.8.8')