Home | History | Annotate | Download | only in test

Lines Matching refs:Content

89         eq(msg['content-type'], 'text/plain; charset="iso-8859-1"')
91 eq(msg['content-transfer-encoding'], 'quoted-printable')
96 eq(msg['content-type'], 'text/plain')
100 msg['Content-Type'] = 'text/x-weird'
101 msg['Content-Transfer-Encoding'] = 'quinted-puntable'
104 eq(msg['content-type'], 'text/x-weird; charset="iso-8859-1"')
105 eq(msg['content-transfer-encoding'], 'quinted-puntable')
112 eq(msg['content-type'], 'text/plain; charset="us-ascii"')
163 # This one has no existing boundary parameter, but the Content-Type:
168 eq(header.lower(), 'content-type')
170 # This one has a Content-Type: header, with a boundary, stuck in the
176 eq(header.lower(), 'content-type')
178 # And this one has no Content-Type: header at all.
201 # Subpart 5 has no Content-Transfer-Encoding: header.
203 'This has no Content-Transfer-Encoding: header.\n')
210 msg['content-transfer-encoding'] = cte
265 msg = email.message_from_string("Content-Type: blarg; baz; boo\n")
274 "Content-Disposition: blarg; filename\n")
299 msg['Content-Type'] = 'Content-Type: Multipart/mixed; boundary = "CPIMSSMTPC06p5f3tG"'
315 # msg["Content-Type"] = 'text/plain; weird="hey; dolly? [you] @ <\\"home\\">?"'
325 'Content-Type: image/pjpeg; name="Jim&amp;&amp;Jill"\n')
373 msg.add_header('Content-Disposition', 'attachment', filename='bud.gif')
374 msg.del_param('filename', 'content-disposition')
375 self.assertEqual(msg['content-disposition'], 'attachment')
382 eq(msg['content-type'], 'text/plain')
384 eq(msg['content-type'], 'text/plain; charset="us-ascii"')
386 eq(msg['content-type'], 'text/html; charset="us-ascii"')
390 msg['X-Content-Type'] = 'text/plain'
391 msg.set_type('application/octet-stream', 'X-Content-Type')
392 self.assertEqual(msg['x-content-type'], 'application/octet-stream')
473 msg['Content-Type'] = 'no-slash-in-this-string'
478 msg['Content-Type'] = 'no-slash-in-this-string'
501 msg['content-type'] = 'audio/x-midi'
502 msg['content-transfer-encoding'] = 'base64'
514 eq(msg['content-transfer-encoding'], '7bit')
519 eq(msg['content-transfer-encoding'], '7bit')
525 eq(msg['content-transfer-encoding'], '7bit')
528 eq(msg['content-transfer-encoding'], '8bit')
531 eq(msg['content-transfer-encoding'], 'quoted-printable')
648 Content-Type: text/plain; charset="us-ascii"
650 Content-Transfer-Encoding: 7bit
920 self._au.add_header('Content-Disposition', 'attachment',
922 eq(self._au['content-disposition'],
924 eq(self._au.get_params(header='content-disposition'),
926 eq(self._au.get_param('filename', header='content-disposition'),
929 eq(self._au.get_param('attachment', header='content-disposition'), '')
931 header='content-disposition') is missing)
963 self._im.add_header('Content-Disposition', 'attachment',
965 eq(self._im['content-disposition'],
967 eq(self._im.get_params(header='content-disposition'),
969 eq(self._im.get_param('filename', header='content-disposition'),
972 eq(self._im.get_param('attachment', header='content-disposition'), '')
974 header='content-disposition') is missing)
988 eq(msg['content-transfer-encoding'], 'base64')
1004 self.assertEqual(msg['Content-Transfer-Encoding'], '8bit')
1012 self.assertEqual(msg2['Content-Transfer-Encoding'], '8bit')
1054 eq(msg['content-type'], 'text/plain; charset="us-ascii"')
1069 image.add_header('content-disposition', 'attachment',
1121 Content-Type: multipart/mixed; boundary="BOUNDARY"
1143 Content-Type: multipart/mixed; boundary="BOUNDARY"
1162 Content-Type: multipart/mixed; boundary="BOUNDARY"
1184 Content-Type: multipart/mixed; boundary="BOUNDARY"
1191 Content-Type: text/plain; charset="us-ascii"
1193 Content-Transfer-Encoding: 7bit
1209 Content-Type: multipart/mixed; boundary="BOUNDARY"
1217 Content-Type: text/plain; charset="us-ascii"
1219 Content-Transfer-Encoding: 7bit
1236 Content-Type: multipart/mixed; boundary="BOUNDARY"
1243 Content-Type: text/plain; charset="us-ascii"
1245 Content-Transfer-Encoding: 7bit
1262 Content-Type: multipart/mixed; boundary="BOUNDARY"
1269 Content
1271 Content-Transfer-Encoding: 7bit
1288 Content-Type: multipart/mixed; boundary="BOUNDARY"
1295 Content-Type: text/plain; charset="us-ascii"
1297 Content-Transfer-Encoding: 7bit
1315 Content-Type: multipart/mixed; boundary="BOUNDARY"
1322 Content-Type: text/plain; charset="us-ascii"
1324 Content-Transfer-Encoding: 7bit
1391 Content-Type: text/html; boundary="--961284236552522269"
1394 Content-Type: text/html;
1395 Content-Transfer-Encoding: 7Bit
1406 Content-Type: multipart/mixed; boundary=" XXXX"
1409 Content-Type: text/plain
1413 Content-Type: text/plain
1423 Content-Type: multipart/mixed; boundary="===============0012394164=="
1427 Content-Type: image/file1.jpg
1429 Content-Transfer-Encoding: base64
1470 msg['Content-Type'] = 'text'
1475 del msg['content-type']
1476 msg['Content-Type'] = 'foo'
1484 neq(s.getvalue(), 'Content-Type: foo\n\n')
1491 Content-Type: text/plain
1496 Content-Type: text/plain
1645 Content-Type: message/rfc822
1740 msg.add_header('Content-Type', 'multipart/mixed', boundary='BOUNDARY')
1758 msg.add_header('Content-Type', 'multipart/mixed', boundary='BOUNDARY')
1765 Content-Type: multipart/mixed; boundary="BOUNDARY"
1769 Content-Type: text/plain; charset="us-ascii"
1771 Content-Transfer-Encoding: 7bit
1775 Content-Type: text/plain; charset="us-ascii"
1777 Content-Transfer-Encoding: 7bit
1841 Content-Type: multipart/digest; boundary="BOUNDARY"
1845 Content-Type: message/rfc822
1848 Content-Type: text/plain; charset="us-ascii"
1850 Content-Transfer-Encoding: 7bit
1855 Content-Type: message/rfc822
1858 Content-Type: text/plain; charset="us-ascii"
1860 Content-Transfer-Encoding: 7bit
1866 del subpart1['content-type']
1868 del subpart2['content-type']
1875 Content-Type: multipart/digest; boundary="BOUNDARY"
1880 Content-Type: text/plain; charset="us-ascii"
1882 Content-Transfer-Encoding: 7bit
1888 Content-Type: text/plain; charset="us-ascii"
1890 Content-Transfer-Encoding: 7bit
2020 # Test the Content-Type: parameters
2307 msg.add_header('content-disposition', 'attachment',
2318 msg['Content-Type'] = 'text/plain; charset=UTF-8'
2319 eq(msg['content-type'], 'text/plain; charset=UTF-8')
2328 eq(msg['content-transfer-encoding'], 'base64')
2331 msg['Content-Type'] = 'text/plain; charset="US-ASCII"'
2339 eq(msg['content-transfer-encoding'], '7bit')
3028 Content-Transfer-Encoding: 7bit
3034 Content-Type: text/plain; charset=us-ascii;
3051 msg.del_param('foo', header='Content-Type')
3058 Content-Transfer-Encoding: 7bit
3064 Content-Type: text/plain; charset="us-ascii";
3082 Content-Transfer-Encoding: 8bit
3083 Content-Disposition: inline; filename="file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEMP_nsmail.htm"
3084 Content-Type: text/html; NAME*0=file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEM; NAME*1=P_nsmail.htm
3096 Content-Disposition: inline;
3108 Content-Disposition: inline;
3120 Content-Disposition: inline;
3133 Content-Disposition: inline;
3146 Content-Type: multipart/alternative;
3159 Content-Type: text/plain;
3171 Content-Disposition: inline;
3183 Content-Type: text/plain; charset*=bogus''utf-8%E2%80%9D
3193 Content-Type: text/plain; charset*=ascii''utf-8%E2%80%9D
3203 Content-Disposition: inline;
3215 Content-Transfer-Encoding: 8bit
3216 Content-Disposition: inline; filename*=X-UNKNOWN''myfile.txt
3225 Content-Type: application/x-foo;
3237 Content-Type: application/x-foo; name*0=\"Frank's\"; name*1=\" Document\"
3248 Content-Type: application/x-foo;
3260 Content-Type: application/x-foo;
3272 Content-Type: application/x-foo; name=\"Frank's Document\"
3281 Content-Type: application/x-foo;
3296 Content-Type: application/x-foo;