[GRASS-SVN] r66734 - grass/trunk/raster/r.univar/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 4 02:01:11 PST 2015


Author: huhabla
Date: 2015-11-04 02:01:11 -0800 (Wed, 04 Nov 2015)
New Revision: 66734

Modified:
   grass/trunk/raster/r.univar/testsuite/test_r_univar.py
Log:
Fixed r.univar test

Modified: grass/trunk/raster/r.univar/testsuite/test_r_univar.py
===================================================================
--- grass/trunk/raster/r.univar/testsuite/test_r_univar.py	2015-11-04 10:00:25 UTC (rev 66733)
+++ grass/trunk/raster/r.univar/testsuite/test_r_univar.py	2015-11-04 10:01:11 UTC (rev 66734)
@@ -18,7 +18,6 @@
         cls.del_temp_region()
 
     def tearDown(self):
-    	pass
         self.runModule("g.remove", flags='f', type="raster", name="map_a")
         self.runModule("g.remove", flags='f', type="raster", name="map_b")
         self.runModule("g.remove", flags='f', type="raster", name="zone_map")
@@ -148,25 +147,25 @@
 
         # Output of r.univar
         univar_string="""zone=1;
-			n=1710
-			null_cells=0
-			cells=1710
-			min=102
-			max=209
-			range=107
-			mean=155.5
-			mean_of_abs=155.5
-			sum=265905
-			zone=2;
-			n=6390
-			null_cells=0
-			cells=1710
-			min=121
-			max=280
-			range=159
-			mean=200.5
-			mean_of_abs=200.5
-			sum=1281195"""
+                        n=1710
+                        null_cells=0
+                        cells=1710
+                        min=102
+                        max=209
+                        range=107
+                        mean=155.5
+                        mean_of_abs=155.5
+                        sum=265905
+                        zone=2;
+                        n=6390
+                        null_cells=0
+                        cells=1710
+                        min=121
+                        max=280
+                        range=159
+                        mean=200.5
+                        mean_of_abs=200.5
+                        sum=1281195"""
 
         self.runModule("g.region", res=1)
         self.assertModuleKeyValue(module="r.univar", map=["map_a"], 



More information about the grass-commit mailing list