Skip to content

Commit

Permalink
fix coordinate transform python test
Browse files Browse the repository at this point in the history
fix typo in renderchecker
  • Loading branch information
alexbruy committed Sep 14, 2012
1 parent 76badc7 commit 7204c60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsrenderchecker.cpp
Expand Up @@ -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;
Expand Down
9 changes: 7 additions & 2 deletions tests/src/python/test_qgscoordinatetransform.py
Expand Up @@ -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()
Expand Down

0 comments on commit 7204c60

Please sign in to comment.