def test_case_index_valid_relationship(self):
        CaseIndex(tag='mother', relationship='child')
        CaseIndex(tag='mother', relationship='extension')
        with self.assertRaises(BadValueError):
            CaseIndex(tag='mother', relationship='parent')
        with self.assertRaises(BadValueError):
            CaseIndex(tag='mother', relationship='host')
        with self.assertRaises(BadValueError):
            CaseIndex(tag='mother', relationship='master')
        with self.assertRaises(BadValueError):
            CaseIndex(tag='mother', relationship='slave')
        with self.assertRaises(BadValueError):
            CaseIndex(tag='mother', relationship='cousin')
deletes any unused intermediate object in the current scene
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/tests/test_extension_case.py/CaseIndexTests.test_case_index_valid_relationship--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/cleanup_intermediate_objects