def test_init__invalid(self, value): with pytest.raises(ValueError, match="IPAddress must consist of 4 items"): core.IPAddress(*value.split("."))
def test_str(self, value): target = core.IPAddress(*value.split(".")) actual = str(target) assert actual == value
def test_init__valid(self, value): core.IPAddress(*value.split("."))