Lines Matching full:plain
29 Content-Type: text/plain; charset="utf-8"
43 # The first argument is a triple (related, html, plain) of indices into the
95 Content-Type: text/plain
118 Content-Type: text/plain
140 Content-Type: text/plain
163 Content-Type: text/plain
186 Content-Type: text/plain
267 Content-Type: text/plain
322 Content-Type: text/plain
381 Content-Type: text/plain
434 Content-Type: text/plain
455 related = 0; html = 1; plain = 2
458 'related', 'html', 'plain')),
462 self.assertEqual(m.get_body(preferencelist=('related', 'plain')),
463 first([expected[related], expected[plain]]))
464 self.assertEqual(m.get_body(preferencelist=('html', 'plain')),
465 first(expected[html:plain+1]))
469 self.assertEqual(m.get_body(preferencelist=['plain']), expected[plain])
470 self.assertEqual(m.get_body(preferencelist=('plain', 'html')),
471 first(expected[plain:html-1:-1]))
472 self.assertEqual(m.get_body(preferencelist=('plain', 'related')),
473 first([expected[plain], expected[related]]))
476 self.assertEqual(m.get_body(preferencelist=('plain', 'html', 'related')),
478 self.assertEqual(m.get_body(preferencelist=('html', 'plain', 'related')),
480 expected[plain],
559 ('related', 'plain', 'succeeds'),
565 ('alternative', 'plain', 'succeeds'),
571 ('mixed', 'plain', 'succeeds'),
589 msg_headers.append(('Content-Type', 'text/plain'))
649 if subtype == 'plain':
650 m['Content-Type'] = 'text/plain'
660 m['Content-Type'] = 'text/plain'
666 msg['Content-Type'] = 'text/plain'
688 self.assertEqual(part.get_content_type(), 'text/plain')
945 Content-Type: text/plain; charset=ISO-8859-1; format=flowed