(self)
| 205 | msg.set_boundary, 'BOUNDARY') |
| 206 | |
| 207 | def test_make_boundary(self): |
| 208 | msg = MIMEMultipart('form-data') |
| 209 | # Note that when the boundary gets created is an implementation |
| 210 | # detail and might change. |
| 211 | self.assertEqual(msg.items()[0][1], 'multipart/form-data') |
| 212 | # Trigger creation of boundary |
| 213 | msg.as_string() |
| 214 | self.assertStartsWith(msg.items()[0][1], |
| 215 | 'multipart/form-data; boundary="==') |
| 216 | # XXX: there ought to be tests of the uniqueness of the boundary, too. |
| 217 | |
| 218 | def test_message_rfc822_only(self): |
| 219 | # Issue 7970: message/rfc822 not in multipart parsed by |
nothing calls this directly
no test coverage detected