def test_exception(self, value, expected): with pytest.raises(expected): get_anywhere_network(value)
def test_normal(self, value, expected): assert get_anywhere_network(value) == expected