projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc46510
)
test_three_lines(): Test case reported by Andrew McNamara. Works in
author
Barry Warsaw
<barry@python.org>
Tue, 20 Aug 2002 12:54:07 +0000
(12:54 +0000)
committer
Barry Warsaw
<barry@python.org>
Tue, 20 Aug 2002 12:54:07 +0000
(12:54 +0000)
email 2.2 but fails in email 1.0.
Lib/email/test/test_email.py
patch
|
blob
|
history
diff --git
a/Lib/email/test/test_email.py
b/Lib/email/test/test_email.py
index e4fb8bfe0cb085371e4897d942c770badc422189..4c84fe106add196699ba4f2c585858be8c9c5f0a 100644
(file)
--- a/
Lib/email/test/test_email.py
+++ b/
Lib/email/test/test_email.py
@@
-1740,6
+1740,14
@@
Here's the message body
eq(part2a.get_type(), 'text/plain')
neq(part2a.get_payload(), 'message 2\n')
+ def test_three_lines(self):
+ # A bug report by Andrew McNamara
+ lines = ['From: Andrew Person <aperson@dom.ain',
+ 'Subject: Test',
+ 'Date: Tue, 20 Aug 2002 16:43:45 +1000']
+ msg = email.message_from_string(NL.join(lines))
+ self.assertEqual(msg['date'], 'Tue, 20 Aug 2002 16:43:45 +1000')
+
\f
class TestBase64(unittest.TestCase):