[GRASS-SVN] r56238 - grass-addons/grass7/raster/r.agent/tests
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 13 04:19:00 PDT 2013
Author: mic
Date: 2013-05-13 04:19:00 -0700 (Mon, 13 May 2013)
New Revision: 56238
Modified:
grass-addons/grass7/raster/r.agent/tests/test_playground.py
Log:
fix test
Modified: grass-addons/grass7/raster/r.agent/tests/test_playground.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_playground.py 2013-05-13 10:37:57 UTC (rev 56237)
+++ grass-addons/grass7/raster/r.agent/tests/test_playground.py 2013-05-13 11:19:00 UTC (rev 56238)
@@ -121,11 +121,11 @@
self.pg.createlayer(l)
self.pg.layers[l][0][0] = 100
self.pg.decaycellvalues(l, 3)
- self.assertEqual(self.pg.layers[l][0][0], 79)
+ self.assertEqual(int(round(self.pg.layers[l][0][0])), 79)
self.pg.decaycellvalues(l, 3)
- self.assertEqual(self.pg.layers[l][0][0], 63)
+ self.assertEqual(int(round(self.pg.layers[l][0][0])), 63)
self.pg.decaycellvalues(l, 3)
- self.assertEqual(self.pg.layers[l][0][0], 50)
+ self.assertEqual(int(round(self.pg.layers[l][0][0])), 50)
# def tearDown(self):
More information about the grass-commit
mailing list