def test_sin_cos_tan_known_Values(self):
        #__sin__ should give known result with known input
        
        x=units.PhysicalQuantity('0 rad')
        x.sin()
        self.assertEqual(x.sin(),math.sin(x.value))
        self.assertEqual(x.cos(),math.cos(x.value))
        self.assertEqual(x.tan(),math.tan(x.value))
        
        x=units.PhysicalQuantity('1m')
        try:
            x.sin()  
        except __HOLE__,err: 
            self.assertEqual(str(err),"Argument of sin must be an angle")
        else:
            self.fail("TypeError expected")
            
        try:
            x.cos()  
        except TypeError,err: 
            self.assertEqual(str(err),"Argument of cos must be an angle")
        else:
            self.fail("TypeError expected")

        try:
            x.tan()  
        except TypeError,err: 
            self.assertEqual(str(err),"Argument of tan must be an angle")
        else:
            self.fail("TypeError expected")
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.units/openmdao/units/test/test_units.py/test__PhysicalQuantity.test_sin_cos_tan_known_Values