def test_multiply(self):
        #multiplication should error for units with offsets

        x = units.PhysicalQuantity('1g')
        y = units.PhysicalQuantity('2s')
        z = units.PhysicalQuantity('1 degC')
        
        self.assertEqual(x.unit*y.unit,units.PhysicalUnit({'s': 1, 'kg': 1},.001,
                                                          _get_powers(mass=1,time=1),0))
        self.assertEqual(y.unit*x.unit,units.PhysicalUnit({'s': 1, 'kg': 1},.001,
                                                          _get_powers(mass=1,time=1),0))
        

        try:
            x.unit * z.unit
        except __HOLE__,err:
            self.assertEqual(str(err),"cannot multiply units with non-zero offset")
        else: 
            self.fail("Expecting TypeError")
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.units/openmdao/units/test/test_units.py/test__PhysicalUnit.test_multiply