def test_center_width(self):
"""
Tests method for finding the average width of the bounding box in meters.
"""
bounds = Bounds(n_lat=50.0, s_lat=0.0, e_lng=25.0, w_lng=0.0)
expected = vincenty((25.0, 0), (25.0, 25.0)).meters
self.assertEqual(bounds.center_width_m, expected)
评论列表
文章目录