[GRASS-SVN] r62334 - grass/trunk/lib/python/gunittest

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 21 20:57:08 PDT 2014


Author: annakrat
Date: 2014-10-21 20:57:08 -0700 (Tue, 21 Oct 2014)
New Revision: 62334

Modified:
   grass/trunk/lib/python/gunittest/case.py
Log:
gunittest: fix documentation

Modified: grass/trunk/lib/python/gunittest/case.py
===================================================================
--- grass/trunk/lib/python/gunittest/case.py	2014-10-22 03:54:03 UTC (rev 62333)
+++ grass/trunk/lib/python/gunittest/case.py	2014-10-22 03:57:08 UTC (rev 62334)
@@ -213,7 +213,7 @@
         in the map::
 
             values = 'null_cells=0\nmin=55.5787925720215\nmax=156.329864501953'
-            self.assertRasterFitsUnivar(map='elevation', reference=values)
+            self.assertRasterFitsUnivar(raster='elevation', reference=values)
 
         Use keyword arguments syntax for all function parameters.
 
@@ -236,7 +236,7 @@
         Typical example is checking minimum, maximum and type of the map::
 
             minmax = 'min=0\nmax=1451\ndatatype=FCELL'
-            self.assertRasterFitsInfo(map='elevation', reference=values)
+            self.assertRasterFitsInfo(raster='elevation', reference=minmax)
 
         Use keyword arguments syntax for all function parameters.
 
@@ -294,7 +294,7 @@
         A example of checking number of points::
 
             topology = dict(points=10938, primitives=10938)
-            self.assertVectorFitsTopoInfo(map='bridges', reference=topology)
+            self.assertVectorFitsTopoInfo(vector='bridges', reference=topology)
 
         Note that here we are checking also the number of primitives to prove
         that there are no other features besides points.



More information about the grass-commit mailing list