[GRASS-SVN] r61193 - grass/trunk/raster/r.gwflow/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 8 07:42:49 PDT 2014
Author: huhabla
Date: 2014-07-08 07:42:49 -0700 (Tue, 08 Jul 2014)
New Revision: 61193
Modified:
grass/trunk/raster/r.gwflow/testsuite/validation_7x7_grid.py
grass/trunk/raster/r.gwflow/testsuite/validation_excavation.py
Log:
Cite from Vaclav: it is a good idea to write tear down just after set up
Modified: grass/trunk/raster/r.gwflow/testsuite/validation_7x7_grid.py
===================================================================
--- grass/trunk/raster/r.gwflow/testsuite/validation_7x7_grid.py 2014-07-08 14:39:31 UTC (rev 61192)
+++ grass/trunk/raster/r.gwflow/testsuite/validation_7x7_grid.py 2014-07-08 14:42:49 UTC (rev 61193)
@@ -18,6 +18,12 @@
grass.use_temp_region()
cls.runModule("g.region", res=100, n=700, s=0, w=0, e=700)
+ @classmethod
+ def tearDownClass(cls):
+ """!Remove the temporary region
+ """
+ grass.del_temp_region()
+
def setUp(self):
"""Set region and create input data for transient groundwater flow computation
"""
@@ -76,11 +82,6 @@
self.assertRasterFitsUnivar(raster="gwresult_conf", reference=univar_string, precision=3)
self.assertRasterFitsInfo(raster="gwresult_conf", reference=info_string, precision=3)
- @classmethod
- def tearDownClass(cls):
- """!Remove the temporary region
- """
- grass.del_temp_region()
if __name__ == '__main__':
from gunittest.main import test
Modified: grass/trunk/raster/r.gwflow/testsuite/validation_excavation.py
===================================================================
--- grass/trunk/raster/r.gwflow/testsuite/validation_excavation.py 2014-07-08 14:39:31 UTC (rev 61192)
+++ grass/trunk/raster/r.gwflow/testsuite/validation_excavation.py 2014-07-08 14:42:49 UTC (rev 61193)
@@ -19,6 +19,12 @@
grass.use_temp_region()
cls.runModule("g.region", flags="p", res=50, n=950, s=0, w=0, e=2000)
+ @classmethod
+ def tearDownClass(cls):
+ """!Remove the temporary region
+ """
+ grass.del_temp_region()
+
def setUp(self):
"""Set region and create input data for steady state groundwater flow computation
"""
@@ -75,12 +81,6 @@
self.assertRasterFitsUnivar(raster="gwresult", reference=univar_string, precision=3)
self.assertRasterFitsInfo(raster="gwresult", reference=info_string, precision=3)
- @classmethod
- def tearDownClass(cls):
- """!Remove the temporary region
- """
- grass.del_temp_region()
-
if __name__ == '__main__':
from gunittest.main import test
test()
More information about the grass-commit
mailing list