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:00.918830

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 1095, 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:


======================================================================
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 1095, 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:


======================================================================
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 1161, 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 following 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 1161, 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 following 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.079s
FAILED (failures=4, errors=2)