def test_is_high_card(faces, expected): hand_org = [PKCard(c) for c in faces] random.shuffle(faces) hand = Hands([PKCard(c) for c in faces]) result = hand.find_a_kind() assert result is None assert hand.cards == hand_org
def test_is_find_a_kind(faces, expected): hand_org = [c for c in faces] random.shuffle(faces) hand = ([c for c in faces]) result = Hands.find_a_kind(hand) assert result == 'one pair'