# pygrass.tests package

## Submodules

## pygrass.tests.benchmark module

Created on Sat Jun 16 20:24:56 2012

@author: soeren

class `pygrass.tests.benchmark.``OptionParser`(**kwargs)

  Bases: `optparse.OptionParser`

  `check_values`(values: Values, args: [string])

    -> (values : Values, args : [string])

    Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new – whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.

class `pygrass.tests.benchmark.``OptionWithDefault`(*opts, **attrs)

  Bases: `optparse.Option`

  `ATTRS` = ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar', 'required']

`pygrass.tests.benchmark.``get_testdict`(testlist)

`pygrass.tests.benchmark.``get_testlist`(loc)

`pygrass.tests.benchmark.``get_txt`(results)

`pygrass.tests.benchmark.``main`(testdict)

  Main function

`pygrass.tests.benchmark.``mytimer`(func, runs=1)

`pygrass.tests.benchmark.``print_test`(testdict)

`pygrass.tests.benchmark.``run_benchmark`(resolution_list, runs, testdict, profile)

`pygrass.tests.benchmark.``test__RasterRowIO_row_access__add`()

`pygrass.tests.benchmark.``test__RasterRowIO_row_access__if`()

`pygrass.tests.benchmark.``test__RasterRow_row_access__add`()

`pygrass.tests.benchmark.``test__RasterRow_row_access__if`()

`pygrass.tests.benchmark.``test__RasterRow_value_access__add`()

`pygrass.tests.benchmark.``test__RasterRow_value_access__if`()

`pygrass.tests.benchmark.``test__RasterSegment_row_access__add`()

`pygrass.tests.benchmark.``test__RasterSegment_row_access__if`()

`pygrass.tests.benchmark.``test__RasterSegment_value_access__add`()

`pygrass.tests.benchmark.``test__RasterSegment_value_access__if`()

`pygrass.tests.benchmark.``test__mapcalc__add`()

`pygrass.tests.benchmark.``test__mapcalc__if`()

## pygrass.tests.set_mapset module

Created on Thu Aug 23 11:07:38 2012

@author: pietro

`pygrass.tests.set_mapset.``main`()

`pygrass.tests.set_mapset.``read_gisrc`(gisrcpath)

## Module contents

Help Index | Topics Index | Keywords Index | Full Index

© 2003-2023 GRASS Development Team, GRASS GIS 8.3.0dev Reference Manual