def test_03(self): # Truth values from NASA RP 1046 Value = SA.press_ratio2alt(5474.87 / 101325, alt_units='m') Truth = 20000 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_02(self): # Truth values from NASA RP 1046 Value = SA.press_ratio2alt(22.225 / 29.9213) Truth = 8000 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_03(self): # Truth values from NASA RP 1046 Value = SA.press_ratio2alt(5474.87 / 101325, alt_units='m') Truth = 20000 self.failUnless(RE(Value, Truth) <= 1e-5)
def test_02(self): # Truth values from NASA RP 1046 Value = SA.press_ratio2alt(22.225 / 29.9213) Truth = 8000 self.failUnless(RE(Value, Truth) <= 1e-5)
def test_01(self): PR = SA.press_ratio2alt(1) self.assertEqual(PR, 0)