mς %U²Ic@sdkZdklZdkZdkZdkZdkZeieidƒƒZdei fd„ƒYZ d„Z e djo e ƒndS(N(s test_supportsbContent-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Foo! t MimeToolsTestcBs#tZd„Zd„Zd„ZRS(NcCs½tidtid}xžddddddd d gD]~}ti|ƒ}tiƒ}ti |||ƒti|i ƒƒ}tiƒ}ti |||ƒ|i |i ƒ|ƒq7WdS( Nt=s t7bitt8bittbase64squoted-printabletuuencodes x-uuencodetuuesx-uue(tstringt ascii_letterstdigitststarttenctStringIOtitot mimetoolstencodetgetvaluetdecodetselft assertEqual(RR R RR ((t0/data/zmath/lib/python2.4/test/test_mimetools.pyttest_decodeencodes  cCsYtidgƒ}x@tdƒD]2}tiƒ}|i ||jƒ|i |ƒqWdS(Ntid( tsetstSettstxrangeR Rtchoose_boundarytnbRtassert_tadd(RR RR((Rt test_boundarys   cCsχtititƒƒ}|i|iƒdƒ|i|iƒdƒ|i|i ƒdƒ|i|i ƒddgƒ|i|i ƒddgƒ|i|i dƒdƒ|i|i dƒd ƒ|i|i d ƒdƒ|i|iƒd ƒdS( Ns text/plainttexttplainscharset=iso-8859-1s format=flowedtcharsettformats iso-8859-1tflowedtspamR(RtMessageR tmsgtext1tmsgRRtgettypet getmaintypet getsubtypetgetplistt getparamnamestgetparamtNonet getencoding(RR)((Rt test_message"s(t__name__t __module__RR R2(((RR s cCstitƒdS(N(t test_supportt run_unittestR(((Rt test_main.st__main__( tunittestttestR5RR RRR'R(tTestCaseRR7R3( R5RRR R9R(R7RR((Rt?s  $!