Пример #1
0
 def  setUp(self):
     """ Build the Action for the test """
     self.highPriorityAction = BuildBattleAction(priority = 1)
     self.lowPriorityAction = BuildBattleAction(priority = 0)
     self.lowPriorityAction.compareSpeed = self.compareSpeed
     
     self.calledCompareSpeed = False
Пример #2
0
 def  setUp(self):
     """ Build the Action for the test """
     pkmn1 = BuildPokemonBattleWrapper()
     pkmn2 = BuildPokemonBattleWrapper()
     
     pkmn1.setStat("SPD", 30)
     pkmn2.setStat("SPD", 20)
     
     self.fastAction = BuildBattleAction(user = pkmn1)
     self.slowAction = BuildBattleAction(user = pkmn2)
     
     self.usedRandRange = False
Пример #3
0
    def battleAction(self):
        """ Test that the target is immune when it doesn't have a attack action """
        self.pkmn.lastAction = BuildBattleAction()
        self.pkmn.encore = None

        immune = self.delegate.immune(self.pkmn)
        assert immune, "Pkmn should be immune when action isn't an attack"
Пример #4
0
 def  setUp(self):
     """ Build the Action for the test """
     self.action1 = BuildBattleAction(priority = 1)
     self.action2 = BuildBattleAction(priority = 0)