Esempio n. 1
0
    def test_royalFlushShouldFail(self):
        ranks = [1, 2, 3, 4, 5]
        suit = 'c'
        hand = Hand([Card(suit, ranks[i]) for i in range(5)])

        assert hand.isRoyalFlush() == False
Esempio n. 2
0
    def test_RoyalFlush(self):
        ranks = [10, 11, 12, 13, 1]
        suit = 's'
        hand = Hand([Card(suit, ranks[i]) for i in range(5)])

        assert hand.isRoyalFlush() == True