1. Armin Rigo
  2. cpython-withatomic

Commits

Barry Warsaw  committed 3831094

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

  • Participants
  • Parent commits 00eea28
  • Branches 2.3

Comments (0)

Files changed (1)

File Lib/email/test/test_email.py

View file
 --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