assert_analysis

typhoon.test.signals.assert_analysis(result, expectation)

Assertion helper for AnalysisResult objects, printing the result message in the AssertionError if raised.

Is equivalent to

>>> assert result == expectation, result.msg
Parameters:
  • result (AnalysisResult) – Result object from one of the analysis functions

  • expectation (bool) – Desired result to assert (True or False)

Raises:

AssertionError – In case result is different from expectation.