@run_with_all_backends
    def test_case_actions(self):
        form_id = self._submit_ledgers(LEDGER_BLOCKS_SIMPLE)
        case_id = self.case.case_id
        rebuild_case_from_forms(self.domain, case_id, RebuildWithReason(reason='test'))
        case = CaseAccessors(self.domain).get_case(self.case.case_id)
        self.assertEqual(case.xform_ids[1:], [form_id])
        self.assertEqual(case.actions[1].form_id, form_id)
make sure that when a case is rebuilt (using rebuild_case)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/commtrack/tests/test_rebuild.py/RebuildStockStateTest.test_case_actions