MCPcopy
hub / github.com/django/django / test_cc_headers

Method test_cc_headers

tests/mail/tests.py:365–374  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363 )
364
365 def test_cc_headers(self):
366 message = EmailMessage(
367 "Subject",
368 "Content",
369 "bounce@example.com",
370 ["to@example.com"],
371 cc=["foo@example.com"],
372 headers={"Cc": "override@example.com"},
373 ).message()
374 self.assertEqual(message.get_all("Cc"), ["override@example.com"])
375
376 def test_cc_in_headers_only(self):
377 message = EmailMessage(

Callers

nothing calls this directly

Calls 2

EmailMessageClass · 0.90
messageMethod · 0.80

Tested by

no test coverage detected