Exemplo n.º 1
0
    def test_16(self):

        # 1000 kt in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(249053, press_units='pa')
        Truth = 1000
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 2
0
    def test_16(self):

        # 1000 kt in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(249053, press_units='pa')
        Truth = 1000
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 3
0
    def test_02(self):

        # 700 mph in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(1540.37, press_units='psf', speed_units='mph')
        Truth = 700
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 4
0
    def test_01(self):

        # 100 kt in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(34.0493, press_units='psf')
        Truth = 100
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 5
0
    def test_09(self):

        # 1000 kt in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(5201.59, press_units='psf')
        Truth = 1000
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 6
0
    def test_08(self):

        # 244 kt in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(9983.7, press_units='pa')
        Truth = 244
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 7
0
    def test_10(self):

        # 1100 mph in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(4676.47, press_units='psf', speed_units='mph')
        Truth = 1100
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 8
0
    def test_07(self):

        # 280 kt in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(99.671, press_units='mm HG')
        Truth = 280
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 9
0
    def test_04(self):

        # 55 kt in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(.145052, press_units='in HG', speed_units='kt')
        Truth = 55
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 10
0
    def test_14(self):

        # 1700 km/h in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(203298, press_units='pa', speed_units='km/h')
        Truth = 1700
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 11
0
    def test_05(self):

        # 300 km/h in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(32.385, press_units='mm HG', speed_units='km/h')
        Truth = 300
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 12
0
    def test_03(self):

        # 300 mph in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(3.38145, press_units='in HG', speed_units='mph')
        Truth = 300
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 13
0
    def test_11(self):

        # 1100 mph in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(66.1208, press_units='in HG', speed_units='mph')
        Truth = 1100
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 14
0
    def test_12(self):

        # 1000 kt in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(73.5454, press_units='in HG', speed_units='kt')
        Truth = 1000
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 15
0
    def test_09(self):

        # 1000 kt in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(5201.59, press_units='psf')
        Truth = 1000
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 16
0
    def test_10(self):

        # 1100 mph in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(4676.47, press_units='psf', speed_units='mph')
        Truth = 1100
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 17
0
    def test_07(self):

        # 280 kt in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(99.671, press_units='mm HG')
        Truth = 280
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 18
0
    def test_08(self):

        # 244 kt in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(9983.7, press_units='pa')
        Truth = 244
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 19
0
    def test_12(self):

        # 1000 kt in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(73.5454, press_units='in HG', speed_units='kt')
        Truth = 1000
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 20
0
    def test_14(self):

        # 1700 km/h in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(203298, press_units='pa', speed_units='km/h')
        Truth = 1700
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 21
0
    def test_06(self):

        # 299 km/h in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(4288.5, press_units='pa', speed_units='km/h')
        Truth = 299
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 22
0
    def test_04(self):

        # 55 kt in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(.145052, press_units='in HG', speed_units='kt')
        Truth = 55
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 23
0
    def test_15(self):

        # 1000 kt in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(1868.05, press_units='mm HG')
        Truth = 1000
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 24
0
    def test_02(self):

        # 700 mph in lb/ft**3
        # truth value from NASA RP 1046

        Value = A.dp2cas(1540.37, press_units='psf', speed_units='mph')
        Truth = 700
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 25
0
    def test_15(self):

        # 1000 kt in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(1868.05, press_units='mm HG')
        Truth = 1000
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 26
0
    def test_13(self):

        # 1700 km/h in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(1524.86, press_units='mm HG', speed_units='km/h')
        Truth = 1700
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 27
0
    def test_06(self):

        # 299 km/h in pa
        # truth value from NASA RP 1046

        Value = A.dp2cas(4288.5, press_units='pa', speed_units='km/h')
        Truth = 299
        self.assertTrue(RE(Value, Truth) <= 1e-5)
Exemplo n.º 28
0
    def test_11(self):

        # 1100 mph in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(66.1208, press_units='in HG', speed_units='mph'
                         )
        Truth = 1100
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 29
0
    def test_13(self):

        # 1700 km/h in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(1524.86, press_units='mm HG',
                         speed_units='km/h')
        Truth = 1700
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 30
0
    def test_03(self):

        # 300 mph in in HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(3.38145, press_units='in HG', speed_units='mph'
                         )
        Truth = 300
        self.failUnless(RE(Value, Truth) <= 1e-5)
Exemplo n.º 31
0
    def test_05(self):

        # 300 km/h in mm HG
        # truth value from NASA RP 1046

        Value = A.dp2cas(32.385, press_units='mm HG', speed_units='km/h'
                         )
        Truth = 300
        self.failUnless(RE(Value, Truth) <= 1e-5)