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)
def _test(self, teststring, expected): actual = utils.decode_header(teststring) self.assertEqual(actual, expected)