def test_invalid_input(self):
        model = Assembly()

        model.add('driver', DistributionCaseDriver())
        model.add('driven', SimpleComponent())
        model.driver.workflow.add('driven')
        model.driver.distribution_generator = \
            FiniteDifferenceGenerator(model.driver)

        try:
            model.driver.add_parameter("driven.invalid", low=-10., high=10., fd_step=0.1)
        except __HOLE__ as err:
            self.assertEqual(str(err), "driver: Can't add parameter "
                             "'driven.invalid' because it doesn't exist.")
        else:
            self.fail('Expected AttributeError')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/test/test_distributioncasedriver.py/TestCase.test_invalid_input