Skip to content

Commit

Permalink
Shorten line and cleanup assert
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Jun 5, 2019
1 parent ace3970 commit 04a9711
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mapscript/python/tests/cases/map_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,10 @@ def testSetSize(self):
class MapSetWKTTestCase(MapTestCase):

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

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

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

0 comments on commit 04a9711

Please sign in to comment.