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

Method test_long_received_header

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

Source from the content-addressed store, hash-verified

1419 =?iso-8859-1?q?gen_die_rotierenden_Klingen_bef=F6rdert=2E_?=""")
1420
1421 def test_long_received_header(self):
1422 h = ('from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) '
1423 'by hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP; '
1424 'Wed, 05 Mar 2003 18:10:18 -0700')
1425 msg = Message()
1426 msg['Received-1'] = Header(h, continuation_ws='\t')
1427 msg['Received-2'] = h
1428 # This should be splitting on spaces not semicolons.
1429 self.ndiffAssertEqual(msg.as_string(maxheaderlen=78), """\
1430Received-1: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
1431 hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
1432 Wed, 05 Mar 2003 18:10:18 -0700
1433Received-2: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
1434 hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
1435 Wed, 05 Mar 2003 18:10:18 -0700
1436
1437""")
1438
1439 def test_string_headerinst_eq(self):
1440 h = ('<15975.17901.207240.414604@sgigritzmann1.mathematik.'

Callers

nothing calls this directly

Calls 3

as_stringMethod · 0.95
MessageClass · 0.90
HeaderClass · 0.90

Tested by

no test coverage detected