Exemplo n.º 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()
Exemplo n.º 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"
Exemplo n.º 3
0
 def setUp(self):
     """ Build the Pokemon Battle Wrapper and weather for the test """
     self.weather = Weather()
     self.pkmn = BuildPokemonBattleWrapper()
Exemplo n.º 4
0
 def setUp(self):
     """ Build the BattleSides and weather for the test """
     self.weather = Weather()
Exemplo n.º 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"