Skip to content

Commit 04a9711

Browse files
authored
Shorten line and cleanup assert
1 parent ace3970 commit 04a9711

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mapscript/python/tests/cases/map_test.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ def testSetSize(self):
290290
class MapSetWKTTestCase(MapTestCase):
291291

292292
def testOGCWKT(self):
293-
self.map.setWKTProjection('''PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563]],
294-
PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],
293+
self.map.setWKTProjection('''PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",
294+
SPHEROID["WGS 84",6378137,298.257223563]],
295+
PRIMEM["Greenwich",0],
296+
UNIT["Degree",0.0174532925199433]],
295297
PROJECTION["Albers_Conic_Equal_Area"],
296298
PARAMETER["standard_parallel_1", 65], PARAMETER["standard_parallel_2", 55],
297299
PARAMETER["latitude_of_center", 0], PARAMETER["longitude_of_center", -153],
@@ -302,7 +304,7 @@ def testOGCWKT(self):
302304

303305
assert proj4.find('+proj=aea') != -1
304306
assert proj4.find('+datum=WGS84') != -1
305-
assert (mapscript.projectionObj(proj4)).getUnits() != mapscript.MS_DD
307+
assert mapscript.projectionObj(proj4).getUnits() != mapscript.MS_DD
306308

307309
def testESRIWKT(self):
308310
self.map.setWKTProjection('ESRI::PROJCS["Pulkovo_1995_GK_Zone_2", GEOGCS["GCS_Pulkovo_1995", '

0 commit comments

Comments
 (0)