Exemple #1
0
 def test_game_clear_hotseat_ok(self):
     game = Game()
     game.player_in_hotseat = "Bob"
     game.team_in_hotseat = "Oxford"
     game.clear_hotseat()
     assert game.player_in_hotseat == "Pending"
     assert game.team_in_hotseat == "Pending"
Exemple #2
0
 def test_game_reset_ok(self):
     game = Game()
     game.player_in_hotseat = "Bob"
     game.team_in_hotseat = "Oxford"
     game.locked_out_teams = ["Bristol"]
     game.scores = {"Oxford": 1, "Cambridge": 3}
     game.reset()
     assert game.player_in_hotseat == "Pending"
     assert game.team_in_hotseat == "Pending"
     assert game.locked_out_teams == []
     assert game.scores == {}