Example #1
0
    def testQuadsGreaterThanFullHouse(self):
        board = ("ks", "kd", "kh", "6s", "6c")
        hand1 = FullHand(("as", "kc"), board)
        hand2 = FullHand(("9s", "9d"), board)

        self.assertTrue(hand1.is_quads())
        self.assertTrue(hand2.is_full_house())
        self.assertFalse(hand2.is_quads())
        self.assertHandGreaterThan(hand1, hand2)
Example #2
0
 def testIsNotFullHouse(self):
     hand = FullHand(("as", "9s"), ("qs", "jd", "4s", "10d", "9s"))
     self.assertFalse(hand.is_full_house())
Example #3
0
 def testIsFullHouse(self):
     hand = FullHand(("as", "ks"), ("kd", "ad", "ac", "10d", "9s"))
     self.assertTrue(hand.is_full_house())