def test_optimizeSpherearray_nolowhigh(self):
        self.top.add('comp', SphereFunctionArray())
        self.top.driver.workflow.add('comp')
        self.top.driver.add_objective("comp.total")

        try:
            self.top.driver.add_parameter('comp.x[0]')
        except __HOLE__ as err:
            self.assertEqual(str(err),
                             "driver: Trying to add parameter 'comp.x[0]', "
                             "but no lower limit was found and no 'low' "
                             "argument was given. One or the other must be "
                             "specified.")
        else:
            self.fail('TypeError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py/TestCase.test_optimizeSpherearray_nolowhigh