assertValidOutput

lsst.pipe.base.testUtils.assertValidOutput(task, result)

Test that the output of a call to run conforms to its own connections.

Parameters:
task : lsst.pipe.base.PipelineTask

The task whose connections need validation. This is a fully-configured task object to support features such as optional outputs.

result : lsst.pipe.base.Struct

A result object produced by calling task.run.

Raises:
AssertionError:

Raised if result does not match what’s expected from task's connections.