def setUp(self): self.stemmer = PydicStemmer() self.dictionary = PyDic('dict1.txt') self.index = self.stemmer.build_index(self.dictionary)