ó ükWc@sddlZddlmZddlZddlZejddeƒZejejdƒƒZ dej fd„ƒYZ d„Z e d kr™e ƒndS( i˙˙˙˙N(t test_supportt mimetoolst deprecatedsbContent-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Foo! t MimeToolsTestcBs#eZd„Zd„Zd„ZRS(cCs˝tjdtjd}xžddddddd d gD]~}tj|ƒ}tjƒ}tj|||ƒtj|jƒƒ}tjƒ}tj|||ƒ|j|jƒ|ƒq7WdS( Nt=s t7bitt8bittbase64squoted-printabletuuencodes x-uuencodetuuesx-uue( tstringt ascii_letterstdigitstStringIORtencodetgetvaluetdecodet assertEqual(tselftstarttenctito((s)/usr/lib/python2.7/test/test_mimetools.pyttest_decodeencodes  cCsStdgƒ}x=tdƒD]/}tjƒ}|j||ƒ|j|ƒqWdS(Ntid(tsettxrangeRtchoose_boundaryt assertNotIntadd(RtsRtnb((s)/usr/lib/python2.7/test/test_mimetools.pyt test_boundarys  cCs÷tjtjtƒƒ}|j|jƒdƒ|j|jƒdƒ|j|jƒdƒ|j|jƒddgƒ|j|j ƒddgƒ|j|j dƒdƒ|j|j dƒd ƒ|j|j d ƒdƒ|j|j ƒd ƒdS( Ns text/plainttexttplainscharset=iso-8859-1s format=flowedtcharsettformats iso-8859-1tflowedtspamR( RtMessageR tmsgtext1Rtgettypet getmaintypet getsubtypetgetplistt getparamnamestgetparamtNonet getencoding(Rtmsg((s)/usr/lib/python2.7/test/test_mimetools.pyt test_message%s(t__name__t __module__RR R2(((s)/usr/lib/python2.7/test/test_mimetools.pyRs cCstjtƒdS(N(Rt run_unittestR(((s)/usr/lib/python2.7/test/test_mimetools.pyt test_main1st__main__(tunittestttestRR R t import_moduletTrueRR'R(tTestCaseRR6R3(((s)/usr/lib/python2.7/test/test_mimetools.pyts     !