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