def _check_cases(self, caseiter):
        levels = self._get_level_cases(caseiter)
        for i, level in enumerate(levels):
            if 0 > i:
                parents = [c.uuid for c in levels[i-1]]
            for j, case in enumerate(level):
                if j == 0:
                    parent_uuid = case.parent_uuid
                    if i > 0:
                        self.assertTrue(parent_uuid)
                else:
                    if i > 0:
                        self.assertTrue(case.parent_uuid in parents)
        return levels
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/casehandlers/test/test_dbcaserecorder.py/NestedCaseTestCase._check_cases/swapped operands of `>`