class PorterStemmerTest(TestCase): def setUp(self): self.stemmer = PorterStemmer() def test_stem(self): self.assert_(self.stemmer.stem("things") == "thing") self.assert_(self.stemmer.stem("pooping") == "poop")
def setUp(self): self.stemmer = PorterStemmer()