def test_distance(self): point1 = Point((2, 2)) point2 = Point((2, 2)) zone = CAN_Zone((0, 0), (2, 2)) print zone.sides() print zone.distance(point1)