mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
test_three_lines(): Test case reported by Andrew McNamara. Works in
email 2.2 but fails in email 1.0.
This commit is contained in:
parent
bc4651083e
commit
b404bb7813
1 changed files with 8 additions and 0 deletions
|
@ -1740,6 +1740,14 @@ Here's the message body
|
||||||
eq(part2a.get_type(), 'text/plain')
|
eq(part2a.get_type(), 'text/plain')
|
||||||
neq(part2a.get_payload(), 'message 2\n')
|
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')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TestBase64(unittest.TestCase):
|
class TestBase64(unittest.TestCase):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue