def test_point_distance(p1, p2, result): assert math.isclose(Point(*p1).distance(Point(*p2)), result)