示例#1
0
 def test_continuation_newlines_can_be_normalized(self):
     text = 'first\nsecond\n third\n\tfourth\n \t  fifth'
     expected = u'first\nsecond third fourth fifth'
     actual = utils.decode_header(text, normalize=True)
     self.assertEqual(actual, expected)
示例#2
0
 def _test(self, teststring, expected):
     actual = utils.decode_header(teststring)
     self.assertEqual(actual, expected)