def test_check_have_two_pair_should_false(self): cards = ["2H", "2D"] + ["3H", "3C", "4C"] answer = pk.check_three_of_kind(cards) self.assertEqual(False, answer)
def test_give_full_house2_should_false(self): cards = ["3C", "3C", "3S", "4H", "4D"] answer = pk.check_three_of_kind(cards) self.assertEqual(False, answer)
def test_three_of_kind3_should_true(self): cards = ["2C", "2D", "4H", "2C", "5H"] answer = pk.check_three_of_kind(cards) self.assertEqual(True, answer)