def test_badcon(self):
        self.top.add("driver", FixedPointIterator())
        self.top.add("simple", Simple2())
        self.top.driver.workflow.add('simple')

        self.top.driver.add_constraint('simple.invar - simple.outvar = 0')
        self.top.driver.add_parameter('simple.invar')

        try:
            self.top.run()
        except __HOLE__, err:
            msg = "driver: Please specify constraints in the form 'A=B'"
            msg += ': simple.invar - simple.outvar = 0'
            self.assertEqual(str(err), msg)
        else:
            self.fail('RuntimeError expected')

        self.top.driver.clear_constraints()
        self.top.driver.add_constraint('simple.invar - simple.outvar = simple.exec_count')
        try:
            self.top.run()
        except RuntimeError, err:
            msg = "driver: Please specify constraints in the form 'A=B'"
            msg += ': simple.invar - simple.outvar = simple.exec_count'
            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_badcon