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
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