Пример #1
0
 def test_letter_counter_same(self):
     test_letter_counter = Apple()
     self.assertEqual(test_letter_counter.letter_counter('aab'), {
         'a': 2,
         'b': 1
     })
Пример #2
0
 def test_letter_counter_one(self):
     test_letter_counter = Apple()
     self.assertEqual(test_letter_counter.letter_counter('a'), {'a': 1})
Пример #3
0
 def test_letter_counter_two(self):
     test_letter_counter = Apple()
     self.assertEqual(test_letter_counter.letter_counter('ab'), {
         'a': 1,
         'b': 1
     })
Пример #4
0
 def test_letter_counter_empty(self):
     test_letter_counter = Apple()
     self.assertEqual(test_letter_counter.letter_counter(''), {})