def test_no_manna_strike(self): wizzard = Wizzard('Merlin', 40, 10, 4) opponent = Wizzard('Voldemort', 50, 12, 30) wizzard.strike(opponent) self.assertEqual(wizzard.manna, 4) self.assertEqual(opponent.hp, 50 - 10/3)
def test_strike(self): wizzard = Wizzard('Merlin', 40, 10, 20) opponent = Wizzard('Voldemort', 50, 12, 30) wizzard.strike(opponent) self.assertEqual(wizzard.manna, 15) self.assertEqual(opponent.hp, 20)