コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
    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)
コード例 #4
0
    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)
コード例 #5
0
 def test_01(self):
     PR = SA.press_ratio2alt(1)
     self.assertEqual(PR, 0)
コード例 #6
0
 def test_01(self):
     PR = SA.press_ratio2alt(1)
     self.assertEqual(PR, 0)