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 ce916dc commit c4a9541Copy full SHA for c4a9541
1 file changed
Lib/test/test_email/test_contentmanager.py
@@ -352,7 +352,14 @@ def test_set_text_charset_cp949(self):
352
353
x9Gxub7uCoFBCg==
354
"""))
355
- self.assertEqual(m.get_payload(decode=True).decode('ks_c_5601-1987'), content)
+ self.assertEqual(bytes(m), textwrap.dedent("""\
356
+ Content-Type: text/plain; charset="ks_c_5601-1987"
357
+ Content-Transfer-Encoding: 8bit
358
+
359
+ \ud55c\uad6d\uc5b4
360
+ \uac02
361
+ """).encode('ks_c_5601-1987'))
362
+ self.assertEqual(m.get_payload(decode=True), content.encode('ks_c_5601-1987'))
363
self.assertEqual(m.get_content(), content)
364
365
def test_set_text_plain_long_line_heuristics(self):
0 commit comments