def test_basic(self): """Basic calculation of some moist air specific heat capacities.""" expected = [1089.5, 1174., 1258.5] result = Utilities.specific_heat_of_moist_air(self.mixing_ratio) self.assertArrayEqual(result.data, expected) self.assertEqual(result.units, Unit('J kg-1 K-1'))
def test_basic(self): """Basic calculation of some moist air specific heat capacities.""" expected = np.array([[1089.5, 1174., 1258.5]], dtype=np.float32) result = Utilities.specific_heat_of_moist_air(self.mixing_ratio.data) self.assertArrayAlmostEqual(result, expected)