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

Method test_parse_text_message

Lib/test/test_email/test_email.py:2864–2874  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2862 eq(text, s.getvalue())
2863
2864 def test_parse_text_message(self):
2865 eq = self.assertEqual
2866 msg, text = self._msgobj('msg_01.txt')
2867 eq(msg.get_content_type(), 'text/plain')
2868 eq(msg.get_content_maintype(), 'text')
2869 eq(msg.get_content_subtype(), 'plain')
2870 eq(msg.get_params()[1], ('charset', 'us-ascii'))
2871 eq(msg.get_param('charset'), 'us-ascii')
2872 eq(msg.preamble, None)
2873 eq(msg.epilogue, None)
2874 self._idempotent(msg, text)
2875
2876 def test_parse_untyped_message(self):
2877 eq = self.assertEqual

Callers

nothing calls this directly

Calls 8

_msgobjMethod · 0.95
_idempotentMethod · 0.95
eqFunction · 0.85
get_content_typeMethod · 0.80
get_content_maintypeMethod · 0.80
get_content_subtypeMethod · 0.80
get_paramsMethod · 0.80
get_paramMethod · 0.80

Tested by

no test coverage detected