def test_twoPairNotFullHouse(self): ranks = [3, 3, 3, 7, 2] suits = ['d', 's', 'c', 'h', 'd'] hand = Hand([Card(suits[i], ranks[i]) for i in range(5)]) assert hand.isFullHouse() == False
def test_fullHouseRecognizedAsHighCard(self): ranks = [6, 6, 11, 11, 11] suits = ['h', 'd', 's', 'd', 'h'] hand = Hand([Card(suits[i], ranks[i]) for i in range(5)]) assert hand.isFullHouse() == True
def test_fullHouse(self): ranks = [3, 3, 3, 7, 7] suits = ['d', 's', 'c', 'h', 'd'] hand = Hand([Card(suits[i], ranks[i]) for i in range(5)]) assert hand.isFullHouse() == True