We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46be53f commit 2d2906dCopy full SHA for 2d2906d
Lib/test/test_email/test_message.py
@@ -1055,6 +1055,13 @@ def test_get_body_malformed(self):
1055
# AttributeError: 'str' object has no attribute 'is_attachment'
1056
m.get_body()
1057
1058
+ def test_get_bytes_payload_with_quoted_printable_encoding(self):
1059
+ payload = b'Some payload'
1060
+ m = self._make_message()
1061
+ m.add_header('Content-Transfer-Encoding', 'quoted-printable')
1062
+ m._payload = payload
1063
+ self.assertEqual(m.get_payload(decode=True), payload)
1064
+
1065
1066
class TestMIMEPart(TestEmailMessageBase, TestEmailBase):
1067
# Doing the full test run here may seem a bit redundant, since the two
0 commit comments