MCPcopy
hub / github.com/django/django / test_folding_white_space

Method test_folding_white_space

tests/mail/tests.py:468–482  ·  view source on GitHub ↗

Test for correct use of "folding white space" in long headers (#7747)

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 3

messageMethod · 0.95
EmailMessageClass · 0.90
as_bytesMethod · 0.80

Tested by

no test coverage detected