��Qc@s�ddlZddlmZddlmZddlmZddlmZm Z ddl
mZyedd�Wne
k
r�ej�nXd efd
��YZd�Zd�Zed
kr�ejdd�ndS(i�N(trun_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-1sHello 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?=(sHello World!N(s$B%O%m!<%o!<%k%I!*(Bsiso-2022-jp(s
Gr�ott!s
iso-8859-1(tndiffAssertEqualRRtappendtencodeRtNonet__unicode__( tselfteqtjtgthtjhellotghellotlongtenc((s:/sys/lib/python2.7/email/test/test_email_codecs_renamed.pyttest_japanese_codecss(
cCs]d}d}t�}|j||�t|j�|j��}|j||j|��dS(Ns��������seuc-jp(Rtset_payloadtunicodetget_payloadtget_content_charsettassertEqualR(RRtjcodetmsgtustr((s:/sys/lib/python2.7/email/test/test_email_codecs_renamed.pyttest_payload_encoding7s (t__name__t
__module__RR!(((s:/sys/lib/python2.7/email/test/test_email_codecs_renamed.pyRs cCs&tj�}|jtjt��|S(N(tunittestt TestSuitetaddTestt makeSuiteR(tsuite((s:/sys/lib/python2.7/email/test/test_email_codecs_renamed.pyR(AscCstt�dS(N(RR(((s:/sys/lib/python2.7/email/test/test_email_codecs_renamed.pyt test_mainGst__main__tdefaultTestR((R$ttest.test_supportRtemail.test.test_emailRt
email.charsetRtemail.headerRRt
email.messageRRtLookupErrortSkipTestRR(R)R"tmain(((s:/sys/lib/python2.7/email/test/test_email_codecs_renamed.pyt<module>s
+
|