def test_letter_counter_same(self): test_letter_counter = Apple() self.assertEqual(test_letter_counter.letter_counter('aab'), { 'a': 2, 'b': 1 })
def test_letter_counter_one(self): test_letter_counter = Apple() self.assertEqual(test_letter_counter.letter_counter('a'), {'a': 1})
def test_letter_counter_two(self): test_letter_counter = Apple() self.assertEqual(test_letter_counter.letter_counter('ab'), { 'a': 1, 'b': 1 })
def test_letter_counter_empty(self): test_letter_counter = Apple() self.assertEqual(test_letter_counter.letter_counter(''), {})