Browse Source

gunittest: fix documentation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62334 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 years ago
parent
commit
aea1da4161
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/python/gunittest/case.py

+ 3 - 3
lib/python/gunittest/case.py

@@ -213,7 +213,7 @@ class TestCase(unittest.TestCase):
         in the map::
         in the map::
 
 
             values = 'null_cells=0\nmin=55.5787925720215\nmax=156.329864501953'
             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.
         Use keyword arguments syntax for all function parameters.
 
 
@@ -236,7 +236,7 @@ class TestCase(unittest.TestCase):
         Typical example is checking minimum, maximum and type of the map::
         Typical example is checking minimum, maximum and type of the map::
 
 
             minmax = 'min=0\nmax=1451\ndatatype=FCELL'
             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.
         Use keyword arguments syntax for all function parameters.
 
 
@@ -294,7 +294,7 @@ class TestCase(unittest.TestCase):
         A example of checking number of points::
         A example of checking number of points::
 
 
             topology = dict(points=10938, primitives=10938)
             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
         Note that here we are checking also the number of primitives to prove
         that there are no other features besides points.
         that there are no other features besides points.