l.c.m.t.t.AssertFailureMixin : class documentation

Part of lp.code.model.tests.test_codeimportjob View In Hierarchy

Known subclasses: lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowDeletePendingJob, lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowFinishJob, lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowNewJob, lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowReclaimJob, lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowRequestJob, lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowStartJob, lp.code.model.tests.test_codeimportjob.TestCodeImportJobWorkflowUpdateHeartbeat

Helper to test assert statements.
Method assertFailure Fail unless an AssertionError with the specified message is raised
def assertFailure(self, message, callable_obj, *args, **kwargs):
Fail unless an AssertionError with the specified message is raised by callable_obj when invoked with arguments args and keyword arguments kwargs.

If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered an error, exactly as for an unexpected exception.

API Documentation for Launchpad, generated by pydoctor at 2020-10-01 00:00:09.