예제 #1
0
 def withMessage(self):
     """ Test that addOverMessage adds the Weather's between rounds message """
     messages = []
     message = "Some Message"
     weather = Weather()
     weather.overMessage = message
     weather.addOverMessage(messages)
     assert messages == [message], "Should receive the weather's betweenRoundsMessage"
예제 #2
0
 def withMessage(self):
     """ Test that addOverMessage adds the Weather's between rounds message """
     messages = []
     message = "Some Message"
     weather = Weather()
     weather.overMessage = message
     weather.addOverMessage(messages)
     assert messages == [
         message
     ], "Should receive the weather's betweenRoundsMessage"
예제 #3
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"
예제 #4
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"