ó Â>Sc@sÊddlZddlZddlZddlZddlZddlZddlZddlmZddl Z dZ ej dkr”ej e_ ndejfd„ƒYZedkrÆejƒndS(iÿÿÿÿN(tBytesIOtABABABABABZt3tTcBséeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsÔtjƒ}d|d           cCstjddƒ}d|dR?R1R@Rt write_mimeR/temailtmessage_from_binary_filetwalkR R+Rt is_multiparttget_content_typetget_content_charsett get_filenameR^t get_payloadRW(RRR3tmsgtptpartsRA((s2/usr/share/apport/testsuite/test_problem_report.pyttest_write_mime_textŠsh         &    **c Csxtjƒ}|jtƒ|jƒtjƒ}tjddd|ƒ}|jtƒ|jƒ|jƒtj ddƒ}d|d<|j f|d<|j f|dtmessage_from_fileRÈtTestCaseRRtmain(((s2/usr/share/apport/testsuite/test_problem_report.pytsT ÿÿÿÐ