def test_data_pass_bounds(self):

        p = Problem()
        p.root = Group()

        p.root.add('lower', ExecComp('low = 2*a'), promotes=['low', 'a'])
        p.root.add('upper', ExecComp('high = 2*b'), promotes=['high', 'b'])

        sub = p.root.add('sub', Group(), promotes=['x','low', 'high'])
        sub.add('comp', CompTest(), promotes=['a','x','n','b','c'])
        sub.add('dummy1', ExecComp('d=low'), promotes=['low'])
        sub.add('dummy2', ExecComp('d=high'), promotes=['high'])
        sub.nl_solver = Brent()

        sub.nl_solver.options['state_var'] = 'x'
        # sub.nl_solver.options['lower_bound'] = -10.
        # sub.nl_solver.options['upper_bound'] = 110.
        sub.nl_solver.options['var_lower_bound'] = 'flow' # bad value for testing error
        sub.nl_solver.options['var_upper_bound'] = 'high'

        try:
            p.setup(check=False)
        except __HOLE__ as err:
            self.assertEqual(str(err), "'var_lower_bound' variable 'flow' was not found as a parameter on any component in sub")
        else:
            self.fail('ValueError expected')
        sub.ln_solver=ScipyGMRES()

        sub.nl_solver.options['var_lower_bound'] = 'low' # correct value

        p.setup(check=False)
        p['a'] = -5.
        p['b'] = 55.
        p.run()

        assert_rel_error(self, p.root.unknowns['x'], 110, .0001)
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/solvers/test/test_brent_solver.py/TestBrentSolver.test_data_pass_bounds