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

Method test_mangled_from

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

Source from the content-addressed store, hash-verified

1515""")
1516
1517 def test_mangled_from(self):
1518 s = StringIO()
1519 g = Generator(s, mangle_from_=True)
1520 g.flatten(self.msg)
1521 self.assertEqual(s.getvalue(), """\
1522From: aaa@bbb.org
1523
1524>From the desk of A.A.A.:
1525Blah blah blah
1526""")
1527
1528 def test_dont_mangle_from(self):
1529 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