class TestAlphaTermProcessor(unittest.TestCase): def setUp(self): self.logger = logging.getLogger("TestAlphaTermProcessor") self.atp = AlphaTermProcessor() def test_check(self): result = self.atp.process('<h>') self.assertEquals(result, 'h') #check neg numbers result = self.atp.process('-5') self.assertEquals(result, '') #check pos numbers result = self.atp.process('5') self.assertEquals(result, '') #check punct result = self.atp.process('hello.') self.assertEquals(result, 'hello') term = "hello world my name is python111 cant" result = self.atp.process(term) self.assertEquals(result,'hello world my name is python cant')