MCPcopy Create free account
hub / github.com/python/cpython / test_qp_encode_non_latin1

Method test_qp_encode_non_latin1

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

Source from the content-addressed store, hash-verified

942 """))
943
944 def test_qp_encode_non_latin1(self):
945 # Issue 16948
946 msg = MIMEText('\u017c\n', 'text', 'ISO-8859-2')
947 self.assertEqual(str(msg), textwrap.dedent("""\
948 MIME-Version: 1.0
949 Content-Type: text/text; charset="iso-8859-2"
950 Content-Transfer-Encoding: quoted-printable
951
952 =BF
953 """))
954
955
956# Test long header wrapping

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