def test_has_high_card_false(self): hand = Hand(['CJ', 'CT', 'CQ', 'CK', 'C9', 'C8', 'S3']) hand.product = 20 self.assertEqual(hand._has_high_card(), False)
def test_evaluate_hand_exception(self): hand = Hand(['CJ', 'CT', 'CQ', 'CK', 'C9', 'C8']) with self.assertRaises(Exception): hand.evaluateHand()