def testFilterNoiseWords(self): strTest = u"!-?- hello how !!!! are you *-+$" strGt = u"hello how are you" f = LMPreparationFormula() f.setText(strTest) strTest = f._filterNoiseWords() self.assertEquals(strGt, strTest)