Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)