예제 #1
0
 def test_sum(self):
     point = LatLon(1, 2)
     point_to_sum = LatLon(3, 4)
     expected_result = LatLon(4, 6)
     self.assertEqual(point.sum(point_to_sum), expected_result)
예제 #2
0
 def test_sum_exceeding_maximal_latitud(self):
     point = LatLon(45, 30)
     point_to_sum = LatLon(60, 20)
     expected_result = LatLon(75, -130)
     self.assertEqual(point.sum(point_to_sum), expected_result)