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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 21 05:01:57 PDT 2015


Author: huhabla
Date: 2015-10-21 05:01:57 -0700 (Wed, 21 Oct 2015)
New Revision: 66556

Modified:
   grass/trunk/raster/r.univar/testsuite/test_r_univar.py
Log:
Added module fail test


Modified: grass/trunk/raster/r.univar/testsuite/test_r_univar.py
===================================================================
--- grass/trunk/raster/r.univar/testsuite/test_r_univar.py	2015-10-21 11:18:05 UTC (rev 66555)
+++ grass/trunk/raster/r.univar/testsuite/test_r_univar.py	2015-10-21 12:01:57 UTC (rev 66556)
@@ -135,6 +135,12 @@
         self.assertModuleKeyValue(module="r.univar", map=["map_a","map_b"], flags="rg",
                                   reference=univar_string, precision=3, sep='=')
 
+class TestAccumulateFails(TestCase):
+
+    def test_error_handling(self):
+        # No vector map, no strds, no coordinates
+        self.assertModuleFail("r.univar",  flags="r", map="map_a", zones="map_b")
+
 if __name__ == '__main__':
     from grass.gunittest.main import test
     test()



More information about the grass-commit mailing list