test_module_assertions

./lib/python/gunittest – test_module_assertions

Test failed

Testtest_module_assertions
Testsuite./lib/python/gunittest
Test file./lib/python/gunittest/testsuite/test_module_assertions.py
StatusFAILED
Return code1
Number of tests6
Successful tests0
Failed tests6
Percent successful0%
Test duration0:00:01.023991

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FFEFFE
======================================================================
ERROR: test_runModule (__main__.TestModuleAssertions)
Correct and incorrect Module used in runModule()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_module_assertions.py", line 28, in test_runModule
    self.runModule(self.rinfo)
  File "etc/python/grass/gunittest/case.py", line 1094, in runModule
    errors=errors)
CalledModuleError: Module run 1 r.info ended with error
Process ended with non-zero return code r.info(map='elevation', flags=u'g'). See the following errors:
ERROR: Raster map <elevation> not found

See available raster maps:
gmted2010
gmted2010.shade
landsat.blue
landsat.green
landsat.red
lst_2010_01_average_piemonte
lst_2010_02_average_piemonte
lst_2010_03_average_piemonte
lst_2010_04_average_piemonte
lst_2010_05_average_piemonte
lst_2010_06_average_piemonte
lst_2010_07_average_piemonte
lst_2010_08_average_piemonte
lst_2010_09_average_piemonte
lst_2010_10_average_piemonte
lst_2010_11_average_piemonte
lst_2010_12_average_piemonte
orbassano_orto.blue
orbassano_orto.green
orbassano_orto.red
orbassano_orto.rgb
srtm
srtm_grezzo
uso_suolo2007


======================================================================
ERROR: test_runModule (__main__.TestSimpleModuleAssertions)
Correct and incorrect SimpleModule used in runModule()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_module_assertions.py", line 61, in test_runModule
    self.runModule(self.rinfo)
  File "etc/python/grass/gunittest/case.py", line 1094, in runModule
    errors=errors)
CalledModuleError: Module run 1 r.info ended with error
Process ended with non-zero return code r.info(map='elevation', flags=u'g'). See the following errors:
ERROR: Raster map <elevation> not found

See available raster maps:
gmted2010
gmted2010.shade
landsat.blue
landsat.green
landsat.red
lst_2010_01_average_piemonte
lst_2010_02_average_piemonte
lst_2010_03_average_piemonte
lst_2010_04_average_piemonte
lst_2010_05_average_piemonte
lst_2010_06_average_piemonte
lst_2010_07_average_piemonte
lst_2010_08_average_piemonte
lst_2010_09_average_piemonte
lst_2010_10_average_piemonte
lst_2010_11_average_piemonte
lst_2010_12_average_piemonte
orbassano_orto.blue
orbassano_orto.green
orbassano_orto.red
orbassano_orto.rgb
srtm
srtm_grezzo
uso_suolo2007


======================================================================
FAIL: test_assertModule (__main__.TestModuleAssertions)
Correct and incorrect Module used in assertModule()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_module_assertions.py", line 34, in test_assertModule
    self.assertModule(self.rinfo)
  File "etc/python/grass/gunittest/case.py", line 1157, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <r.info> module ended with non-zero return code (1)
Called: r.info(map='elevation', flags=u'g')
See the folowing errors:
ERROR: Raster map <elevation> not found


======================================================================
FAIL: test_assertModuleFail (__main__.TestModuleAssertions)
Correct and incorrect Module used in assertModuleFail()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_module_assertions.py", line 44, in test_assertModuleFail
    self.assertRaises(self.failureException, self.assertModuleFail, self.rinfo)
AssertionError: AssertionError not raised

======================================================================
FAIL: test_assertModule (__main__.TestSimpleModuleAssertions)
Correct and incorrect SimpleModule used in assertModule()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_module_assertions.py", line 67, in test_assertModule
    self.assertModule(self.rinfo)
  File "etc/python/grass/gunittest/case.py", line 1157, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <r.info> module ended with non-zero return code (1)
Called: r.info(map='elevation', flags=u'g')
See the folowing errors:
ERROR: Raster map <elevation> not found


======================================================================
FAIL: test_assertModuleFail (__main__.TestSimpleModuleAssertions)
Correct and incorrect SimpleModule used in assertModuleFail()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/gunittest/testsuite/test_module_assertions.py", line 77, in test_assertModuleFail
    self.assertRaises(self.failureException, self.assertModuleFail, self.rinfo)
AssertionError: AssertionError not raised

----------------------------------------------------------------------
Ran 6 tests in 0.137s
FAILED (failures=4, errors=2)