def test_hand_is_busted(self): hand = [Card(12),Card(12),Card(12)] # 3 kings dealer = Dealer(None,None) result = dealer.getMaxHandValue(hand) self.assertEqual(result,0)
def test_get_max_hand_value(self): hand = [Card(0),Card(1),Card(2),Card(13)] dealer = Dealer(None,None) maxValue = dealer.getMaxHandValue(hand) self.assertEqual(maxValue, 17)