MCPcopy Index your code
hub / github.com/RustPython/RustPython / _msgobj

Method _msgobj

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

Source from the content-addressed store, hash-verified

2915 linesep = '\n'
2916
2917 def _msgobj(self, filename):
2918 with openfile(filename, encoding="utf-8") as fp:
2919 data = fp.read()
2920 msg = email.message_from_string(data)
2921 return msg, data
2922
2923 def _idempotent(self, msg, text, unixfrom=False):
2924 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