MCPcopy Index your code
hub / github.com/python/cpython / message_as_clear

Method message_as_clear

Lib/test/test_email/test_message.py:712–718  ·  view source on GitHub ↗
(self, body_parts, attachments, parts, msg)

Source from the content-addressed store, hash-verified

710 self.assertEqual(str(ar.exception), 'test')
711
712 def message_as_clear(self, body_parts, attachments, parts, msg):
713 m = self._str_msg(msg)
714 m.clear()
715 self.assertEqual(len(m), 0)
716 self.assertEqual(list(m.items()), [])
717 self.assertIsNone(m.get_payload())
718 self.assertEqual(list(m.iter_parts()), [])
719
720 def message_as_clear_content(self, body_parts, attachments, parts, msg):
721 m = self._str_msg(msg)

Callers

nothing calls this directly

Calls 8

listClass · 0.85
_str_msgMethod · 0.80
assertIsNoneMethod · 0.80
get_payloadMethod · 0.80
clearMethod · 0.45
assertEqualMethod · 0.45
itemsMethod · 0.45
iter_partsMethod · 0.45

Tested by

no test coverage detected