def test_get_bounding_box(self): ''' Tests the get_bounding_box function. ''' points = [[(-5, -5), (-1, 0), (-5, 5), (0, 1), (5, 5), (1, 0), (5, -5), (0, -1)]] polygon = ComplexPolygonStrategy(points) bounding_box = polygon.get_bounding_box() assert bounding_box['min_lat'] == -5, bounding_box['min_lat'] assert bounding_box['min_lon'] == -5, bounding_box['min_lon'] assert bounding_box['max_lat'] == 5, bounding_box['max_lat'] assert bounding_box['max_lon'] == 5, bounding_box['max_lon']