示例#1
0
    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)
示例#2
0
 def test3(self):
     result = xxutils.rm_whitespace("\ta\tb\tc\t")
     #print result
     self.assertTrue(result == "abc")
示例#3
0
 def test2(self):
     result = xxutils.rm_whitespace(" a b c ")
     #print result
     self.assertTrue(result == "abc")