Ver código fonte

Fixed r.univar test

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66734 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 9 anos atrás
pai
commit
637bdf67cf
1 arquivos alterados com 19 adições e 20 exclusões
  1. 19 20
      raster/r.univar/testsuite/test_r_univar.py

+ 19 - 20
raster/r.univar/testsuite/test_r_univar.py

@@ -18,7 +18,6 @@ class TestRasterUnivar(TestCase):
         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 @@ class TestRasterUnivar(TestCase):
 
         # 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"],