MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_qp_encode_latin1

Method test_qp_encode_latin1

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

Source from the content-addressed store, hash-verified

908 """))
909
910 def test_qp_encode_latin1(self):
911 msg = MIMEText('\xe1\xf6\n', 'text', 'ISO-8859-1')
912 self.assertEqual(str(msg), textwrap.dedent("""\
913 MIME-Version: 1.0
914 Content-Type: text/text; charset="iso-8859-1"
915 Content-Transfer-Encoding: quoted-printable
916
917 =E1=F6
918 """))
919
920 def test_qp_encode_non_latin1(self):
921 # Issue 16948

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected