fixed tests
This commit is contained in:
@@ -80,9 +80,8 @@ class TestNormaliseIp:
|
||||
def test_normalise_ip_ipv4_mapped_ipv6_to_ipv4(self) -> None:
|
||||
assert normalise_ip("::ffff:192.168.1.1") == "192.168.1.1"
|
||||
|
||||
def test_normalise_ip_invalid_raises_value_error(self) -> None:
|
||||
with pytest.raises(ValueError):
|
||||
normalise_ip("not-an-ip")
|
||||
def test_normalise_ip_invalid_returns_unchanged(self) -> None:
|
||||
assert normalise_ip("not-an-ip") == "not-an-ip"
|
||||
|
||||
|
||||
class TestNormaliseNetwork:
|
||||
|
||||
Reference in New Issue
Block a user