def test_straightEdgeCase(self): ranks = [10, 11, 12, 13, 1] suits = ['d', 'c', 'h', 's'] hand = Hand( [Card(suits[random.randint(0, 3)], ranks[i]) for i in range(5)]) assert hand.isStraight() == True
def test_straight(self): ranks = [1, 2, 3, 4, 5] suits = ['d', 'c', 'h', 's'] hand = Hand( [Card(suits[random.randint(0, 3)], ranks[i]) for i in range(5)]) assert hand.isStraight() == True