Test for correct use of "folding white space" in long headers (#7747)
(self)
| 466 | email.message() |
| 467 | |
| 468 | def test_folding_white_space(self): |
| 469 | """ |
| 470 | Test for correct use of "folding white space" in long headers (#7747) |
| 471 | """ |
| 472 | email = EmailMessage( |
| 473 | "Long subject lines that get wrapped should contain a space continuation " |
| 474 | "character to comply with RFC 822", |
| 475 | ) |
| 476 | message = email.message() |
| 477 | msg_bytes = message.as_bytes() |
| 478 | self.assertIn( |
| 479 | b"Subject: Long subject lines that get wrapped should contain a space\n" |
| 480 | b" continuation character to comply with RFC 822", |
| 481 | msg_bytes, |
| 482 | ) |
| 483 | |
| 484 | def test_message_header_overrides(self): |
| 485 | """ |
nothing calls this directly
no test coverage detected