def test_get_yield(self): reaction = Reaction() reaction.add_limiting_reactant(self._limiting) reaction.add_product(self._product, 0.3) self.assertEqual(reaction.get_yield(), 75)
def test_add_get_product(self): reaction = Reaction() reaction.add_product(self._product, 0.4) self.assertEqual(reaction.get_product().n(), 0.001)