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

Method test_qp_encode_latin1

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

Source from the content-addressed store, hash-verified

932 """))
933
934 def test_qp_encode_latin1(self):
935 msg = MIMEText('\xe1\xf6\n', 'text', 'ISO-8859-1')
936 self.assertEqual(str(msg), textwrap.dedent("""\
937 MIME-Version: 1.0
938 Content-Type: text/text; charset="iso-8859-1"
939 Content-Transfer-Encoding: quoted-printable
940
941 =E1=F6
942 """))
943
944 def test_qp_encode_non_latin1(self):
945 # Issue 16948

Callers

nothing calls this directly

Calls 4

MIMETextClass · 0.90
strFunction · 0.85
assertEqualMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected