예제 #1
0
 def setUp(self):
     """ Build the BattleSides and weather for the test """
     self.message = "Some Message"
     self.weather = Weather()
     self.weather.betweenRoundsMessage = self.message
     self.playerSide = BuildBattleSide()
     self.opponentSide = BuildBattleSide()
예제 #2
0
 def withMessage(self):
     """ Test that addRoundMessage adds the Weather's between rounds message """
     messages = []
     message = "Some Message"
     weather = Weather()
     weather.betweenRoundsMessage = message
     weather.addRoundMessage(messages)
     assert messages == [
         message
     ], "Should receive the weather's betweenRoundsMessage"
예제 #3
0
 def setUp(self):
     """ Build the Pokemon Battle Wrapper and weather for the test """
     self.weather = Weather()
     self.pkmn = BuildPokemonBattleWrapper()
예제 #4
0
 def setUp(self):
     """ Build the BattleSides and weather for the test """
     self.weather = Weather()
예제 #5
0
 def noMessage(self):
     """ Test that addOverMessage does not add a message when the Weather has no between rounds message """
     messages = []
     weather = Weather()
     weather.addOverMessage(messages)
     assert messages == [], "Should receive no message when the Weather object has no message"