Ejemplo n.º 1
0
 def test_only_stopword_word_list(self):
     """clean_word_list should return [] on stopword list."""
     self.assertEqual([], clean_word_list(LIST["STOP"]))
Ejemplo n.º 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))
Ejemplo n.º 3
0
 def test_empty_word_list(self):
     """clean_word_list should return [] on input []."""
     self.assertEqual([], clean_word_list([]))