def METHOD_NAME(self):
    owner_id = uuid.uuid4().hex
    factory = CaseFactory(case_defaults={
        'owner_id': owner_id,
        'create': True,
        'update': {'custom_prop': 'custom_value'}
    })
    case_id = uuid.uuid4().hex
    child_case_id = uuid.uuid4().hex
    parent_case_id = uuid.uuid4().hex
    structures = [
        CaseStructure(case_id=case_id, attrs={'create': True}),
        CaseStructure(
            case_id=child_case_id,
            indices=[
                CaseIndex(CaseStructure(case_id=parent_case_id, attrs={'create': True}))
            ]
        )
    ]
    cases = factory.create_or_update_cases(structures)
    for case in cases:
        self.assertEqual(owner_id, case.owner_id)
        self.assertEqual('custom_value', case.dynamic_case_properties()['custom_prop'])
    [regular, child, parent] = cases
    self.assertEqual(1, len(child.indices))
    self.assertEqual(parent_case_id, child.indices[0].referenced_id)