Пример #1
0
   def test4(self):
       input = """ a b c 
td\te\tf\t
 g  h  i  """
       expect = """ a b c \td\te\tf\t  g  h  i  """
       result = xxutils.rm_linebreak(input)
       #print result
       self.assertTrue(result == expect)
Пример #2
0
 def test3(self):
     result = xxutils.rm_linebreak("\ta\tb\tc\t")
     #print result
     self.assertTrue(result == "\ta\tb\tc\t")
Пример #3
0
 def test2(self):
     result = xxutils.rm_linebreak(" a b c ")
     #print result
     self.assertTrue(result == " a b c ")