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

Method test_noascii_add_header

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

Source from the content-addressed store, hash-verified

737 msg['Content-Disposition'])
738
739 def test_noascii_add_header(self):
740 msg = Message()
741 msg.add_header('Content-Disposition', 'attachment',
742 filename="Fußballer.ppt")
743 self.assertEqual(
744 'attachment; filename*=utf-8\'\'Fu%C3%9Fballer.ppt',
745 msg['Content-Disposition'])
746
747 def test_nonascii_add_header_via_triple(self):
748 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