Commit bfe18c09 authored by Barry Warsaw's avatar Barry Warsaw

test_mime_attachments_in_constructor(): New test to check for SF bug # 884030.

parent bb3ed7e3
...@@ -1750,6 +1750,15 @@ message 2 ...@@ -1750,6 +1750,15 @@ message 2
--BOUNDARY-- --BOUNDARY--
''') ''')
def test_mime_attachments_in_constructor(self):
eq = self.assertEqual
text1 = MIMEText('')
text2 = MIMEText('')
msg = MIMEMultipart(_subparts=(text1, text2))
eq(len(msg.get_payload()), 2)
eq(msg.get_payload(0), text1)
eq(msg.get_payload(1), text2)
# A general test of parser->model->generator idempotency. IOW, read a message # A general test of parser->model->generator idempotency. IOW, read a message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment