def test_check_config(self):
        self.top.add("driver", FixedPointIterator())
        self.top.add("simple", Multi())
        self.top.driver.workflow.add('simple')

        try:
            self.top.run()
        except __HOLE__, err:
            msg = "driver: FixedPointIterator requires a cyclic workflow, or a " + \
            "parameter/constraint pair."
            self.assertEqual(str(err), msg)
        else:
            self.fail('RuntimeError expected')

        self.top.driver.add_constraint('simple.out1 - simple.in1 = 0')

        try:
            self.top.run()
        except RuntimeError, err:
            msg = "driver: The number of input parameters must equal the " \
                  "number of output constraint equations in FixedPointIterator."
            self.assertEqual(str(err), msg)
        else:
            self.fail('RuntimeError expected')

        self.top.driver.add_parameter('simple.in1')
        self.top.driver.add_parameter('simple.in2')

        try:
            self.top.run()
        except RuntimeError, err:
            msg = "driver: The number of input parameters must equal the " \
                  "number of output constraint equations in FixedPointIterator."
            self.assertEqual(str(err), msg)
        else:
            self.fail('RuntimeError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/test/test_iterate.py/FixedPointIteratorTestCase.test_check_config