Exemple #1
0
    def test_02(self):

        # from http://wahiduddin.net/calc/calc_da.htm

        Value = SA.density_alt2temp(450, 1500, alt_units='m')
        Truth = -22
        self.assertTrue(RE(Value, Truth) <= 1e-3)
    def test_02(self):

        # from http://wahiduddin.net/calc/calc_da.htm

        Value = SA.density_alt2temp(450, 1500, alt_units='m')
        Truth = -22
        self.failUnless(RE(Value, Truth) <= 1e-3)
Exemple #3
0
    def test_01(self):

        # from http://wahiduddin.net/calc/calc_da.htm

        Value = SA.density_alt2temp(5000, 3700, temp_units='F')
        Truth = 66.02
        self.assertTrue(RE(Value, Truth) <= 1e-4)
    def test_01(self):

        # from http://wahiduddin.net/calc/calc_da.htm

        Value = SA.density_alt2temp(5000, 3700, temp_units='F')
        Truth = 66.02
        self.failUnless(RE(Value, Truth) <= 1e-4)