def test_default_value_type(self):
        try:
            self.hobj.add('bad_default',
                                Float('Bad Wolf'))
        except __HOLE__, err:
            self.assertEqual(str(err), 
                "Default value should be a float.")
        else:
            self.fail('ValueError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/datatypes/test/test_float.py/FloatTestCase.test_default_value_type