def test_flush_hands(self): state = GameState() card_piles = [[[Card("K", "d")], [Card("6", "d")], [Card("A", "s")]], [[Card("2", "c")], [Card("A", "d")], [Card("J", "d")]], [[Card("3", "s")], [Card("5", "d")], [Card("9", "d")]]] state.start_new_game(lucky_card=Card("7", "h"), card_piles=card_piles) flush_hands = state._get_flush_hands() assert len(flush_hands) == 6 assert set([(0, 0), (0, 1), (1, 1), (1, 2), (2, 1)]) in flush_hands assert set([(0, 0), (0, 1), (1, 1), (1, 2), (2, 2)]) in flush_hands assert set([(0, 0), (0, 1), (1, 1), (2, 1), (2, 2)]) in flush_hands assert set([(0, 0), (0, 1), (1, 2), (2, 1), (2, 2)]) in flush_hands assert set([(0, 0), (1, 1), (1, 2), (2, 1), (2, 2)]) in flush_hands assert set([(0, 1), (1, 1), (1, 2), (2, 1), (2, 2)]) in flush_hands