From cbca9840794f5421e8205243c9dbd0008519b20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=27Hont=20Ren=C3=A9-Luc?= Date: Thu, 15 Nov 2012 15:01:35 +0100 Subject: [PATCH] Correcting tests from test_qgsrectangle.py --- tests/src/python/test_qgsrectangle.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/src/python/test_qgsrectangle.py b/tests/src/python/test_qgsrectangle.py index 7e6b15e88b5..0364e10aa0d 100644 --- a/tests/src/python/test_qgsrectangle.py +++ b/tests/src/python/test_qgsrectangle.py @@ -179,8 +179,8 @@ class TestQgsRectangle(TestCase): 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)) @@ -189,11 +189,11 @@ class TestQgsRectangle(TestCase): 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))