diff options
author | Barry Warsaw <barry@python.org> | 2003-03-07 23:23:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-03-07 23:23:04 (GMT) |
commit | 28ffcef4e6c25513383535bb2d7ae1fc1e0a7c18 (patch) | |
tree | 20ce0b53aa4667d7c14684f4bfd83b6bf45e7873 /Lib/email | |
parent | 8e1e7f5468f972891446f3caa078b85a1c920ccb (diff) | |
download | cpython-28ffcef4e6c25513383535bb2d7ae1fc1e0a7c18.zip cpython-28ffcef4e6c25513383535bb2d7ae1fc1e0a7c18.tar.gz cpython-28ffcef4e6c25513383535bb2d7ae1fc1e0a7c18.tar.bz2 |
test_long_unbreakable_lines_with_continuation(): Another funky example
from Jason Mastaler :)
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/test/test_email.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 5a3838c..678f145 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -794,6 +794,22 @@ Received-2: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> """) + 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 + +""") + # Test mangling of "From " lines in the body of a message |