def test_exception(self, network, ip_version, expected): with pytest.raises(expected): is_anywhere_network(network, ip_version)
def test_normal(self, network, ip_version, expected): assert is_anywhere_network(network, ip_version) == expected