def test_large_straight_hands(self): state = GameState() card_piles = [[[Card("K", "h")], [Card("Q", "d")], [Card("A", "s")]], [[Card("2", "c")], [Card("A", "d")], [Card("J", "d")]], [[Card("3", "s")], [Card("T", "c")], [Card("5", "c")]]] state.start_new_game(lucky_card=Card("7", "h"), card_piles=card_piles) lg_straight_hands = state._get_lg_straight_hands() assert len(lg_straight_hands) == 2 assert set([(0, 0), (0, 1), (0, 2), (1, 2), (2, 1)]) in lg_straight_hands assert set([(0, 0), (0, 1), (1, 1), (1, 2), (2, 1)]) in lg_straight_hands # the small straight can't wrap with J-Q-K-A-2 or Q-K-A-2-3 assert set([(0, 0), (0, 1), (0, 2), (1, 0), (1, 2)]) not in lg_straight_hands assert set([(0, 0), (0, 1), (0, 2), (1, 0), (2, 0)]) not in lg_straight_hands