Exemple #1
0
 def test_no_stopwords(self):
     words = get_words(self.sample_sentence, self.stopwords)
     self.assertTrue(all(word not in self.stopwords for word in words))
Exemple #2
0
 def test_no_punctuation(self):
     words = get_words(self.sample_sentence, self.stopwords)
     self.assertTrue(all(word not in ',.—' for word in words))