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

Method _msgobj

Lib/test/test_email/test_email.py:2851–2855  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

2849 linesep = '\n'
2850
2851 def _msgobj(self, filename):
2852 with openfile(filename, encoding="utf-8") as fp:
2853 data = fp.read()
2854 msg = email.message_from_string(data)
2855 return msg, data
2856
2857 def _idempotent(self, msg, text, unixfrom=False):
2858 eq = self.ndiffAssertEqual

Callers 15

test_simple_multipartMethod · 0.95
test_MIME_digestMethod · 0.95
test_long_headerMethod · 0.95
test_mixed_with_imageMethod · 0.95
test_multipart_reportMethod · 0.95
test_dsnMethod · 0.95

Calls 2

openfileFunction · 0.90
readMethod · 0.45

Tested by

no test coverage detected