{G_Tc@sddlZddlmZddlZddlZejddeZejejdZ dej fdYZ dZ e d kre ndS( iN(t test_supportt mimetoolst deprecatedsbContent-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Foo! t MimeToolsTestcBs#eZdZdZdZRS(cCstjdtjd}xddddddd 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/local/lib/python2.7/test/test_mimetools.pyttest_decodeencodes  cCsStdg}x=tdD]/}tj}|j|||j|qWdS(Ntid(tsettxrangeRtchoose_boundaryt assertNotIntadd(RtsRtnb((s//usr/local/lib/python2.7/test/test_mimetools.pyt test_boundarys  cCstjtjt}|j|jd|j|jd|j|jd|j|jddg|j|j ddg|j|j dd|j|j dd |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/local/lib/python2.7/test/test_mimetools.pyt test_message%s(t__name__t __module__RR R2(((s//usr/local/lib/python2.7/test/test_mimetools.pyRs cCstjtdS(N(Rt run_unittestR(((s//usr/local/lib/python2.7/test/test_mimetools.pyt test_main1st__main__(tunittestttestRR R t import_moduletTrueRR'R(tTestCaseRR6R3(((s//usr/local/lib/python2.7/test/test_mimetools.pyts     !