Browse Source

Add doctest with glist and pattern

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54595 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 years ago
parent
commit
97dcc8de3e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/python/pygrass/gis/__init__.py

+ 2 - 0
lib/python/pygrass/gis/__init__.py

@@ -262,6 +262,8 @@ class Mapset(object):
             >>> rast.sort()
             >>> rast                                      # doctest: +ELLIPSIS
             ['basins', 'elevation', ...]
+            >>> mapset.glist('rast', pattern='el*')
+            ['elevation_shade', 'elevation']
         """
         if type not in ETYPE:
             str_err = "Type %s is not valid, valid types are: %s."