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))
def test_no_punctuation(self): words = get_words(self.sample_sentence, self.stopwords) self.assertTrue(all(word not in ',.—' for word in words))