assertRunTestResults(self,
run_tests_report,
expected_parse_results=None,
msg=None)
| source code
|
Unit test assertion to evaluate output of ParserElement.runTests(). If
a list of list-dict tuples is given as the expected_parse_results
argument, then these are zipped with the report tuples returned by
runTests and evaluated using assertParseResultsEquals. Finally, asserts
that the overall runTests() success value is True.
:param run_tests_report: tuple(bool, [tuple(str, ParseResults or
Exception)]) returned from runTests :param expected_parse_results
(optional): [tuple(str, list, dict, Exception)]
|