Skip to content

Commit

Permalink
Correcting tests from test_qgsrectangle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Nov 15, 2012
1 parent 81807d4 commit cbca984
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/src/python/test_qgsrectangle.py
Expand Up @@ -179,8 +179,8 @@ def testUnion(self):
def testAsWktCoordinates(self):
"""Test that we can get a proper wkt representation fo the rect"""
rect1 = QgsRectangle( 0.0, 0.0, 5.0, 5.0)
myExpectedWkt = ('0.0000000000000000 0.0000000000000000, '
'5.0000000000000000 5.0000000000000000')
myExpectedWkt = ('0.0 0.0, '
'5.0 5.0')
myWkt = rect1.asWktCoordinates()
myMessage = ('Expected: %s\nGot: %s\n' %
(myExpectedWkt, myWkt))
Expand All @@ -189,11 +189,11 @@ def testAsWktCoordinates(self):
def testAsWktPolygon(self):
"""Test that we can get a proper rect wkt polygon representation for rect"""
rect1 = QgsRectangle( 0.0, 0.0, 5.0, 5.0)
myExpectedWkt = ('POLYGON((0.0000000000000000 0.0000000000000000, '
'5.0000000000000000 0.0000000000000000, '
'5.0000000000000000 5.0000000000000000, '
'0.0000000000000000 5.0000000000000000, '
'0.0000000000000000 0.0000000000000000))')
myExpectedWkt = ('POLYGON((0.0 0.0, '
'5.0 0.0, '
'5.0 5.0, '
'0.0 5.0, '
'0.0 0.0))')
myWkt = rect1.asWktPolygon()
myMessage = ('Expected: %s\nGot: %s\n' %
(myExpectedWkt, myWkt))
Expand Down

0 comments on commit cbca984

Please sign in to comment.