@@ -22,8 +22,12 @@ class TestRestFrameworkGisBBox(TestCase):
22
22
def setUp (self ):
23
23
self .geojson_boxedlocation_list_url = reverse ('api_geojson_boxedlocation_list' )
24
24
self .geojson_location_bbox_list_url = reverse ('api_geojson_location_bbox_list' )
25
- self .geojson_location_method_field_auto_bbox_list_url = reverse ('api_geojson_location_method_field_auto_bbox_list' )
26
- self .geojson_location_method_field_manual_bbox_list_url = reverse ('api_geojson_location_method_field_manual_bbox_list' )
25
+ self .geojson_location_method_field_auto_bbox_list_url = reverse (
26
+ 'api_geojson_location_method_field_auto_bbox_list'
27
+ )
28
+ self .geojson_location_method_field_manual_bbox_list_url = reverse (
29
+ 'api_geojson_location_method_field_manual_bbox_list'
30
+ )
27
31
28
32
def _create_locations (self ):
29
33
self .bl1 = BoxedLocation .objects .create (
@@ -91,14 +95,18 @@ def test_get_autogenerated_location_bbox_geojson(self):
91
95
92
96
def test_get_autogenerated_location_auto_bbox_geojson_with_method_field (self ):
93
97
self ._create_locations ()
94
- response = self .client .get (self .geojson_location_method_field_auto_bbox_list_url )
98
+ response = self .client .get (
99
+ self .geojson_location_method_field_auto_bbox_list_url
100
+ )
95
101
self .assertEqual (response .status_code , 200 )
96
102
self .assertEqual (len (response .data ['features' ]), 1 )
97
103
self .assertEqual (response .data ['features' ][0 ]['bbox' ], self .l1 .geometry .extent )
98
-
104
+
99
105
def test_get_autogenerated_location_manual_bbox_geojson_with_method_field (self ):
100
106
self ._create_locations ()
101
- response = self .client .get (self .geojson_location_method_field_manual_bbox_list_url )
107
+ response = self .client .get (
108
+ self .geojson_location_method_field_manual_bbox_list_url
109
+ )
102
110
self .assertEqual (response .status_code , 200 )
103
111
self .assertEqual (len (response .data ['features' ]), 1 )
104
112
self .assertEqual (response .data ['features' ][0 ]['bbox' ], self .l1 .geometry .extent )
0 commit comments