@@ -106,7 +106,7 @@ def test_post_location_list_geojson(self):
106
106
self .assertEqual (Location .objects .count (), 2 )
107
107
108
108
def test_post_location_list_geojson_as_multipartformdata (self ):
109
- """ emulate sending geojson string in webform """
109
+ """emulate sending geojson string in webform"""
110
110
self .assertEqual (Location .objects .count (), 0 )
111
111
data = {
112
112
"name" : "geojson input test" ,
@@ -278,7 +278,7 @@ def test_post_location_list_invalid_geojson(self):
278
278
self .assertEqual (response .data ['geometry' ][0 ], self .gdal_error_message )
279
279
280
280
def test_geojson_format (self ):
281
- """ test geojson format """
281
+ """test geojson format"""
282
282
location = Location .objects .create (
283
283
name = 'geojson test' , geometry = 'POINT (135.0 45.0)'
284
284
)
@@ -339,7 +339,9 @@ def test_post_geojson_id_attribute(self):
339
339
}
340
340
url = reverse ('api_geojson_location_writable_id_list' )
341
341
response = self .client .post (
342
- url , data = json .dumps (data ), content_type = 'application/json' ,
342
+ url ,
343
+ data = json .dumps (data ),
344
+ content_type = 'application/json' ,
343
345
)
344
346
self .assertEqual (response .status_code , 201 )
345
347
self .assertEqual (Location .objects .count (), 1 )
@@ -489,7 +491,7 @@ def test_geofeatured_model_serializer_compatible_with_geomodel_serializer(self):
489
491
self .assertEqual (Location .objects .count (), 1 )
490
492
491
493
def test_geofeatured_model_post_as_multipartformdata (self ):
492
- """ emulate sending geojson string in webform """
494
+ """emulate sending geojson string in webform"""
493
495
self .assertEqual (Location .objects .count (), 0 )
494
496
data = {
495
497
"name" : "geojson input test" ,
@@ -716,14 +718,17 @@ def test_geojson_pagination(self):
716
718
def test_pickle (self ):
717
719
geometry = GEOSGeometry ('POINT (30 10)' )
718
720
geojsondict = GeoJsonDict (
719
- (('type' , geometry .geom_type ), ('coordinates' , geometry .coords ),)
721
+ (
722
+ ('type' , geometry .geom_type ),
723
+ ('coordinates' , geometry .coords ),
724
+ )
720
725
)
721
726
pickled = pickle .dumps (geojsondict )
722
727
restored = pickle .loads (pickled )
723
728
self .assertEqual (restored , geojsondict )
724
729
725
730
def test_geometrycollection_geojson (self ):
726
- """ test geometry collection geojson behaviour """
731
+ """test geometry collection geojson behaviour"""
727
732
location = Location .objects .create (
728
733
name = 'geometry collection geojson test' ,
729
734
geometry = 'GEOMETRYCOLLECTION ('
0 commit comments