def test_evaluateSpellEffects_activeEffects_Recharge(self):
    w = d22_wizard.Wizard(0, 0)
    duration = 5
    activeEffects = {'Recharge': duration}
    for i in range(1, duration):
        effects = w._evaluateSpellEffects(activeEffects)
        self.assertEqual({'Recharge': (duration - i)}, activeEffects, i)
    effects = w._evaluateSpellEffects(activeEffects)
    self.assertEqual({}, activeEffects)
def test_evaluateSpellEffects_activeEffects_Recharge(self):
    w = d22_wizard.Wizard(0, 0)
    duration = 5
    activeEffects = {'Recharge': duration}
    for i in range(1, duration):
        effects = w._evaluateSpellEffects(activeEffects)
        self.assertEqual({'Recharge': (duration - i)}, activeEffects, i)
    effects = w._evaluateSpellEffects(activeEffects)
    self.assertEqual({}, activeEffects)