def setUp(self):
     """ Builds the delegate and side for use in the tests """
     self.pkmn = BuildPokemonBattleWrapper()
     self.delegate = TrapDelegate("", "", "")
     self.trap = Trap(None, "", "")
     self.otherTrap = Trap(None, "other.", "")
 def applyEffect(self, user, target, environment):
     """ Apply the trap to the opponent """
     self.removePreviousTrap(target)
     target.secondaryEffects.append(
         Trap(user, self.message, self.doneMessage))
     return [target.getHeader() + self.startMessage]