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

Method test_dont_mangle_from

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

Source from the content-addressed store, hash-verified

1548""")
1549
1550 def test_dont_mangle_from(self):
1551 s = StringIO()
1552 g = Generator(s, mangle_from_=False)
1553 g.flatten(self.msg)
1554 self.assertEqual(s.getvalue(), """\
1555From: aaa@bbb.org
1556
1557From the desk of A.A.A.:
1558Blah blah blah
1559""")
1560
1561 def test_mangle_from_in_preamble_and_epilog(self):
1562 s = StringIO()

Callers

nothing calls this directly

Calls 5

flattenMethod · 0.95
getvalueMethod · 0.95
StringIOClass · 0.90
GeneratorClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected