def test_xform_case_block_index_valid_relationship(self):
        with self.assertRaisesRegexp(CaseError,
                                     'Valid values for an index relationship are "child" and "extension"'):
            self.subcase_block.add_index_ref(
                'host',
                self.form.get_case_type(),
                self.xform.resolve_path("case/@case_id"),
                'cousin',
            )
CaseBlock index relationship should only allow valid values
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/tests/test_extension_case.py/CaseBlockIndexRelationshipTest.test_xform_case_block_index_valid_relationship