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

Method test_mangled_from

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

Source from the content-addressed store, hash-verified

1537""")
1538
1539 def test_mangled_from(self):
1540 s = StringIO()
1541 g = Generator(s, mangle_from_=True)
1542 g.flatten(self.msg)
1543 self.assertEqual(s.getvalue(), """\
1544From: aaa@bbb.org
1545
1546>From the desk of A.A.A.:
1547Blah blah blah
1548""")
1549
1550 def test_dont_mangle_from(self):
1551 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