def _get_param_constraint_pairs(self):
        pairs = []
        if hasattr(self, 'list_param_group_targets'):
            pgroups = self.list_param_group_targets()
            for key, cnst in self.get_eq_constraints().iteritems():
                for params in pgroups:
                    if params[0] == cnst.rhs.text:
                        pairs.append((params[0], cnst.pcomp_name+'.out0'))
                    elif params[0] == cnst.lhs.text:
                        pairs.append((params[0], cnst.pcomp_name+'.out0'))
        return pairs
Assert flattening a root element raises a particular exception.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/driver.py/Driver._get_param_constraint_pairs--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/web/test/_util.py/FlattenTestCase.assertFlatteningRaises