assertRaisesAckError

lsst.ts.salobj.assertRaisesAckError(ack: int | None = None, error: int | None = None, result_contains: str | None = None) Generator[None, None, None]

Assert that code raises a salobj.AckError

Parameters
ackint, optional

Ack code, almost always a SalRetCode CMD_<x> constant. If None then the ack code is not checked.

errorint, optional

Error code. If None then the error value is not checked.

result_containsstr, optional

If not None then the result value must contain this string.