def test_game_toss_card_effect_on_deck(game: Game): """Check card is popped from deck""" previous_deck_len = len(game._deck) game.toss_card() assert (52, 51) == (previous_deck_len, len(game._deck))
def test_game_toss_card_effect_current_turn_player(game: Game): """Check next player become current_turn_player""" game.toss_card() assert game._players[1] is game.current_turn_player
def test_game_toss_card_effect_on_player(game: Game): """Check first player is current turn player""" player = game.current_turn_player previous_hand_len = len(player.hand) game.toss_card() assert (0, 1) == (previous_hand_len, len(player.hand))