def test_demand_mass_balance_c_ex1(self): estimations = mfrm.demand_mass_balance_c(3, 3, 1, 0.86) self.assertIsInstance(estimations, tuple) self.assertEqual(len(estimations), 3) self.assertTupleEqual(round_tuple(estimations), (2.14, 0., 0.86))
def test_demand_mass_balance_c_ex2_a21(self): estimations = mfrm.demand_mass_balance_c(3, 2, 1, 0.61) self.assertTupleEqual(round_tuple(estimations), (1.59, 0, 0.41))
def test_demand_mass_balance_c_ex2_a11(self): estimations = mfrm.demand_mass_balance_c(3, 0., 0.1, 0.61) self.assertTupleEqual(round_tuple(estimations), (0, 0, 0))
def test_demand_mass_balance_h(self): estimations = mfrm.demand_mass_balance_c(3, 3, 1, 0.86) self.assertTupleEqual(round_tuple(estimations), (2.14, 0., 0.86))