Lines Matching full:part
45 # The indices indicate which part should match the corresponding part-type
46 # when passed to get_body (ie: the "first" part of that type in the
356 # Same thing, but proving we only look at the root part, which is the
614 part = next(m.iter_parts())
618 self.assertEqual(part[name], value)
620 self.assertEqual(len(part), count)
621 self.assertEqual(part.get_payload(), payload)
683 part = m.get_payload()[0]
687 part = m.get_payload()[1]
688 self.assertEqual(part.get_content_type(), 'text/plain')
689 self.assertEqual(part.get_payload(), 'test')
691 self.assertEqual(part['Content-Disposition'], 'attachment')
693 self.assertEqual(part['Content-Disposition'], 'inline')
696 self.assertIsNone(part['Content-Disposition'])
742 m.set_content('arbitrary text as main part')
743 m.add_related('more text as a related part')
943 This is a multi-part message in MIME format.