def test_dist_for_triangle(self):
"""
Tests the function calculate_farthest_dist_km for a triangle.
"""
points = ((0, 10), (0, 20), (20, 15))
target = (0, 15)
actual = shapes.calculate_farthest_dist_km(points, target)
expected = vincenty((15, 20), (15, 0)).kilometers
self.assertEqual(actual, expected)
评论列表
文章目录