From: Barry Warsaw Date: Fri, 7 Mar 2003 23:23:04 +0000 (+0000) Subject: test_long_unbreakable_lines_with_continuation(): Another funky example X-Git-Tag: v2.3c1~1523 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28ffcef4e6c25513383535bb2d7ae1fc1e0a7c18;p=thirdparty%2FPython%2Fcpython.git test_long_unbreakable_lines_with_continuation(): Another funky example from Jason Mastaler :) --- diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 5a3838c5de77..678f145cc933 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -792,6 +792,22 @@ Received-1: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> Received-2: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> \t(David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100") +""") + + def test_long_unbreakable_lines_with_continuation(self): + eq = self.ndiffAssertEqual + msg = Message() + t = """\ + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9 + locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp""" + msg['Face-1'] = t + msg['Face-2'] = Header(t, header_name='Face-2') + eq(msg.as_string(), """\ +Face-1: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9 +\tlocQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp +Face-2: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9 + locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp + """)