def test_raise_if_ip_not_valid_invalid_input(self): with pytest.raises(ValueError, match='is not valid'): raise_if_ip_not_valid('not ip at all')
def test_raise_if_ip_not_valid_valid_input(self): raise_if_ip_not_valid('8.8.8.8')