def test4(self): input = """ a b c \td\te\tf\t g h i """ expect = """abc def ghi""" result = xxutils.rm_whitespace(input) #print result self.assertTrue(result == expect)
def test3(self): result = xxutils.rm_whitespace("\ta\tb\tc\t") #print result self.assertTrue(result == "abc")
def test2(self): result = xxutils.rm_whitespace(" a b c ") #print result self.assertTrue(result == "abc")