def test_exclusions(self):
        
        self.hobj.add('float4', Float(low=3.0, high=4.0, \
                                  exclude_low=True, exclude_high=True, \
                                  iotype='in', units='kg'))
        try:
            self.hobj.float4 = 3.0
        except __HOLE__, err:
            self.assertEqual(str(err), 
                ": Variable 'float4' must be a float in the range (3.0, 4.0), but a value of 3.0 <type 'float'> was specified.")
        else:
            self.fail('ValueError expected')
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/datatypes/test/test_float.py/FloatTestCase.test_exclusions