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

Method test_string_headerinst_eq

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

Source from the content-addressed store, hash-verified

1437""")
1438
1439 def test_string_headerinst_eq(self):
1440 h = ('<15975.17901.207240.414604@sgigritzmann1.mathematik.'
1441 'tu-muenchen.de> (David Bremner\'s message of &#x27;
1442 '"Thu, 6 Mar 2003 13:58:21 +0100")')
1443 msg = Message()
1444 msg['Received-1'] = Header(h, header_name='Received-1',
1445 continuation_ws='\t')
1446 msg['Received-2'] = h
1447 # XXX The space after the ':' should not be there.
1448 self.ndiffAssertEqual(msg.as_string(maxheaderlen=78), """\
1449Received-1:\x20
1450 <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David
1451 Bremner&#x27;s message of \"Thu, 6 Mar 2003 13:58:21 +0100\")
1452Received-2:\x20
1453 <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David
1454 Bremner&#x27;s message of \"Thu, 6 Mar 2003 13:58:21 +0100\")
1455
1456""")
1457
1458 def test_long_unbreakable_lines_with_continuation(self):
1459 eq = self.ndiffAssertEqual

Callers

nothing calls this directly

Calls 3

as_stringMethod · 0.95
MessageClass · 0.90
HeaderClass · 0.90

Tested by

no test coverage detected