[GRASS-SVN] r55441 - grass-addons/grass7/raster/r.agent/tests

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 19 06:58:04 PDT 2013


Author: mic
Date: 2013-03-19 06:58:03 -0700 (Tue, 19 Mar 2013)
New Revision: 55441

Modified:
   grass-addons/grass7/raster/r.agent/tests/test_grassland.py
Log:
fix file tests

Modified: grass-addons/grass7/raster/r.agent/tests/test_grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_grassland.py	2013-03-19 13:55:14 UTC (rev 55440)
+++ grass-addons/grass7/raster/r.agent/tests/test_grassland.py	2013-03-19 13:58:03 UTC (rev 55441)
@@ -48,7 +48,8 @@
         # only do this test, if self.layername is set
         if self.layername:
             layer = garray.array()
-            if grass.find_file(self.layername)['file']:
+            if grass.find_file(name = self.layername,
+                               element = 'cell')['file']:
                 print "We need a file to play with in this test, but it"
                 print "seems to exist already: '" + self.layername + "'"
                 # show error if arrived here



More information about the grass-commit mailing list