You are here: DevOps > PegaUnit testing > PegaUnit test cases > Case status assertions

Case status assertions

For PegaUnit test cases for and case types, you can configure case status assertions to verify the status of the case.

If you have multiple assignments on a flow or case type, you can configure a case status on each assignment. The pyWorkPage on the clipboard captures the latest case status, which depends on where you stop recording the flow or case type.

For example, your flow has a Customer Details assignment, with the case status set as New. It also has a subflow with an Account Information assignment, with the case status set as Pending.

If you record only the Customer Details assignment, the case status, which is captured in the .pyStatusWork property on the pyWorkPage, is set to New. If you also record the Account Information assignment, the case status is set to Completed.