Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/email/test/test_email_codecs.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�ddlZddlmZddlmZddlmZddlmZm	Z	ddl
mZyedd�Wne
k
r�ej�nXd	efd
��YZd�Zd�Zed
kr�ejdd�ndS(i�N(trun_unittest(t
TestEmailBase(tCharset(tHeadert
decode_header(tMessagetfooseuc-jptTestEmailAsianCodecscBseZd�Zd�ZRS(c	Cs�|j}td�}td�}td�}d}d}|j||�|j||�||j�d�|t|j��d
ddg�d	}t||d
d�}|j�}||d�||j�jd�|�dS(Nseuc-jps
iso-8859-1sHello World!s��������s
Gr�ott!srHello World! =?iso-2022-jp?b?GyRCJU8lbSE8JW8hPCVrJUkhKhsoQg==?=
 =?iso-8859-1?q?Gr=FC=DF?= =?iso-8859-1?q?_Gott!?=s$B%O%m!<%o!<%k%I!*(Bsiso-2022-jps6test-ja ���������������ǧ�������theader_nametSubjects~=?iso-2022-jp?b?dGVzdC1qYSAbJEIkWEVqOUYkNSRsJD8lYSE8JWskTztKGyhC?=
 =?iso-2022-jp?b?GyRCMnE8VCROPjVHJyRyQlQkQyRGJCQkXiQ5GyhC?=(sHello World!N(s$B%O%m!<%o!<%k%I!*(Bsiso-2022-jp(s
Gr�ott!s
iso-8859-1(tndiffAssertEqualRRtappendtencodeRtNonet__unicode__(	tselfteqtjtgthtjhellotghellotlongtenc((s2/sys/lib/python2.7/email/test/test_email_codecs.pyttest_japanese_codecss(	
cCs]d}d}t�}|j||�t|j�|j��}|j||j|��dS(Ns��������seuc-jp(Rtset_payloadtunicodetget_payloadtget_content_charsettassertEqualR(RRtjcodetmsgtustr((s2/sys/lib/python2.7/email/test/test_email_codecs.pyttest_payload_encoding7s	(t__name__t
__module__RR!(((s2/sys/lib/python2.7/email/test/test_email_codecs.pyRs	 cCs&tj�}|jtjt��|S(N(tunittestt	TestSuitetaddTestt	makeSuiteR(tsuite((s2/sys/lib/python2.7/email/test/test_email_codecs.pyR(AscCstt�dS(N(RR(((s2/sys/lib/python2.7/email/test/test_email_codecs.pyt	test_mainGst__main__tdefaultTestR((R$ttest.test_supportRtemail.test.test_emailRt
email.charsetRtemail.headerRRt
email.messageRRtLookupErrortSkipTestRR(R)R"tmain(((s2/sys/lib/python2.7/email/test/test_email_codecs.pyt<module>s

+		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.