def testIsNotTwoPair(self): hand = FullHand(("as", "9s"), ("qs", "jd", "4s", "6s", "7h")) self.assertFalse(hand.is_two_pair())
def testIsTwoPair(self): hand = FullHand(("as", "ks"), ("ad", "kc", "9h", "jd", "5c")) self.assertTrue(hand.is_two_pair())
def testIsNotTwoPair(self): hand = FullHand(("as", "9s"), ("qs", "jd", "4s", "6s", "7h")) self.assertFalse(hand.is_two_pair())
def testIsTwoPair(self): hand = FullHand(("as", "ks"), ("ad", "kc", "9h", "jd", "5c")) self.assertTrue(hand.is_two_pair())