def test_suitdict_0Spades_counts0(self): cards = tools.convert_to_cards(['Kc', '2h']) expected = 0 suitdict = evaluator.suit_dict(cards) # 0 is the default in case there are no Aces result = suitdict.get('s', 0) self.assertEqual(expected, result)
def test_suitdict_2Spade_counts2(self): cards = tools.convert_to_cards(['Kc', '2s', 'As']) expected = 2 suitdict = evaluator.suit_dict(cards) result = suitdict.get('s') self.assertEqual(expected, result)