Пример #1
0
 def test_only_stopword_word_list(self):
     """clean_word_list should return [] on stopword list."""
     self.assertEqual([], clean_word_list(LIST["STOP"]))
Пример #2
0
 def test_valid_word_list(self):
     """clean_word_list should return list without stopwords."""
     for inp, out in LIST["VALID"]:
         self.assertEqual(out, clean_word_list(inp))
Пример #3
0
 def test_empty_word_list(self):
     """clean_word_list should return [] on input []."""
     self.assertEqual([], clean_word_list([]))