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

Method test_ascii_add_header

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

Source from the content-addressed store, hash-verified

730
731 # Issue 1078919
732 def test_ascii_add_header(self):
733 msg = Message()
734 msg.add_header('Content-Disposition', 'attachment',
735 filename='bud.gif')
736 self.assertEqual('attachment; filename="bud.gif"',
737 msg['Content-Disposition'])
738
739 def test_noascii_add_header(self):
740 msg = Message()

Callers

nothing calls this directly

Calls 3

add_headerMethod · 0.95
MessageClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected