def test_geographic_distance(loc1, loc2, expected): result = geographic_distance(loc1, loc2) assert result == pytest.approx(expected)
def geographic_distance(self, other): return geographic_distance(self, other)