Esempio n. 1
0
def test_is_straight(faces, expected):
    hand_org = [c for c in faces]
    random.shuffle(faces)
    hand = ([c for c in faces])
    result = Hands.is_straight(hand)
    assert result == True
    assert sorted(hand) == sorted(hand_org)
Esempio n. 2
0
def test_is_straight(faces, expected):
    hand_org = [PKCard(c) for c in faces]
    random.shuffle(faces)
    hand = Hands([PKCard(c) for c in faces])
    result = hand.is_straight()
    assert result == True
    assert hand.cards == hand_org