Пример #1
0
 def test_player_actions_end_turn(self):
     state = State(players=["p1"])
     state.dice_rolled = True
     actions = state.player_actions(player=state.current_player_turn)
     assert Action(name="end_turn") in actions
Пример #2
0
 def test_player_actions_no_roll_dice_if_already_done(self):
     state = State(players=["p1"])
     state.dice_rolled = True
     actions = state.player_actions(player=state.current_player_turn)
     assert Action(name="roll_dice") not in actions