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

Method _idempotent

Lib/test/test_email/test_email.py:2923–2928  ·  view source on GitHub ↗
(self, msg, text, unixfrom=False)

Source from the content-addressed store, hash-verified

2921 return msg, data
2922
2923 def _idempotent(self, msg, text, unixfrom=False):
2924 eq = self.ndiffAssertEqual
2925 s = StringIO()
2926 g = Generator(s, maxheaderlen=0)
2927 g.flatten(msg, unixfrom=unixfrom)
2928 eq(text, s.getvalue())
2929
2930 def test_parse_text_message(self):
2931 eq = self.assertEqual

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 5

flattenMethod · 0.95
getvalueMethod · 0.95
StringIOClass · 0.90
GeneratorClass · 0.90
eqFunction · 0.50

Tested by

no test coverage detected