Skip to content
Permalink
Browse files

fix coordinate transform python test

fix typo in renderchecker
  • Loading branch information
alexbruy committed Sep 14, 2012
1 parent 76badc7 commit 7204c60ab03d2f6f42ae3240a84b9d6d9bcbcbc6
Showing with 8 additions and 3 deletions.
  1. +1 −1 src/core/qgsrenderchecker.cpp
  2. +7 −2 tests/src/python/test_qgscoordinatetransform.py
@@ -98,7 +98,7 @@ bool QgsRenderChecker::isKnownAnomaly( QString theDiffImageFile )
.arg( theDiffImageFile )
.arg( myImageHash );
//foo CDash
QString myMeasureMessage = "<DartMeasurement name=\"Anomoly check"
QString myMeasureMessage = "<DartMeasurement name=\"Anomaly check"
"\" type=\"text/text\">" + myHashMessage +
"</DartMeasurement>";
qDebug() << myMeasureMessage;
@@ -23,11 +23,16 @@ def testTransformBoundingBox(self):
myProjectedExtent = myXForm.transformBoundingBox(myExtent)
myExpectedExtent = ('150.1509239873580270,-35.7176936443908772 : '
'150.1964384662953194,-35.6971885216629090')
myExpectedValues = [150.1509239873580270,-35.7176936443908772,
150.1964384662953194,-35.6971885216629090]
myMessage = ('Expected:\n%s\nGot:\n%s\n' %
( myExpectedExtent,
myProjectedExtent.toString()))

self.assertEquals(myExpectedExtent, myProjectedExtent.toString(), myMessage)

self.assertAlmostEqual(myExpectedValues[0], myProjectedExtent.xMinimum(), msg=myMessage)
self.assertAlmostEqual(myExpectedValues[1], myProjectedExtent.yMinimum(), msg=myMessage)
self.assertAlmostEqual(myExpectedValues[2], myProjectedExtent.xMaximum(), msg=myMessage)
self.assertAlmostEqual(myExpectedValues[3], myProjectedExtent.yMaximum(), msg=myMessage)

if __name__ == '__main__':
unittest.main()

0 comments on commit 7204c60

Please sign in to comment.
You can’t perform that action at this time.