コード例 #1
0
ファイル: test_samuraizer.py プロジェクト: smile-group/TFM
 def test_only_stopword_word_list(self):
     """clean_word_list should return [] on stopword list."""
     self.assertEqual([], clean_word_list(LIST["STOP"]))
コード例 #2
0
ファイル: test_samuraizer.py プロジェクト: smile-group/TFM
 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
ファイル: test_samuraizer.py プロジェクト: smile-group/TFM
 def test_empty_word_list(self):
     """clean_word_list should return [] on input []."""
     self.assertEqual([], clean_word_list([]))