def test_CheckBadTextRewrite(self): nertest = ClassifyBadScholarships(['blah'], ['blah']) infoText = 'CollegeWeekLive gives away $1,000 per month just for viewing and visiting US colleges online. Winning is easy - all you need to do is login to CollegeWeekLive and visit 3 colleges that interest you. One lucky winner will be awarded a $1,000 scholarship every month. And many other winners may find the college of their dreams.' testText = nertest.checkBadText(infoText)
def test_CheckBadText(self): nertest = ClassifyBadScholarships(['blah'], ['blah']) infoText = 'I go to the University of Arizona in Tucson, Arizona' testText = nertest.checkBadText(infoText) self.assertFalse(testText)