| 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 ' |
| 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), """\ |
| 1449 | Received-1:\x20 |
| 1450 | <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David |
| 1451 | Bremner's message of \"Thu, 6 Mar 2003 13:58:21 +0100\") |
| 1452 | Received-2:\x20 |
| 1453 | <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David |
| 1454 | Bremner'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 |