Пример #1
0
 def test_contractions_wordCount(self):
     self.assertEqual(wordCount('contractions.txt'), 3)
Пример #2
0
 def test_punctuation_wordCount(self):
     self.assertEqual(wordCount('punctuation.txt'), 15)
Пример #3
0
 def test_simple_wordCount(self):
     self.assertEqual(wordCount('simple.txt'), 15)
Пример #4
0
 def test_capitals_wordCount(self):
     self.assertEqual(wordCount('capitals.txt'), 15)
Пример #5
0
 def test_morethanten_wordCount(self):
     self.assertEqual(wordCount('morethanten.txt'), 21)
Пример #6
0
 def test_multiline_wordCount(self):
     self.assertEqual(wordCount('multiline.txt'), 15)