def test_is_alive(self): h = Hero(name="Pesho", title="The Great One", health=100, mana=10, mana_regeneration_rate=30) h.take_damage(120) self.assertEqual(False, h.is_alive())
def test_take_healing(self): h = Hero(name="Pesho", title="The Great One", health=100, mana=10, mana_regeneration_rate=30) h.take_damage(70) h.take_healing(30) self.assertEqual(60, h.curr_health)