def test_in_base_units(self):
        #in_base_units() should return a new PhysicalQuantity instance
        #using the base units, leaving the original instance intact

        x = units.PhysicalQuantity(1,'1/h')
        y = x.in_base_units()
        
        self.assertEqual(y,units.PhysicalQuantity(1/3600.0,'1/s'))
        self.assertEqual(x,units.PhysicalQuantity(1,'1/h'))   
        
        x = units.PhysicalQuantity(1,'ft**-3')
        y = x.in_base_units()
        self.assertEqual(y,units.PhysicalQuantity(35.314666721488585,'1/m**3'))         
        
        x = units.PhysicalQuantity(1,'ft**3')
        y = x.in_base_units()
        self.assertEqual(y,units.PhysicalQuantity(0.028316846592000004,'m**3'))            
        
        x=units.PhysicalQuantity('5cm')
        y = x.in_base_units()
        self.assertEqual(y,units.PhysicalQuantity('0.05m'))
        self.assertEqual(x,units.PhysicalQuantity('5cm'))
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.units/openmdao/units/test/test_units.py/test__PhysicalQuantity.test_in_base_units/original