瀏覽代碼

Added module fail test

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66556 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 9 年之前
父節點
當前提交
a323004a8b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      raster/r.univar/testsuite/test_r_univar.py

+ 6 - 0
raster/r.univar/testsuite/test_r_univar.py

@@ -135,6 +135,12 @@ class TestRasterUnivar(TestCase):
         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()