def close_case(self, case_id):
        return self.create_or_update_case(CaseStructure(case_id=case_id, attrs={'close': True}))[0]
Shortcut to close a case (and do nothing else)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/case/mock.py/CaseFactory.close_case