ó {G_Tc@svdZddlZddlZddlZddlmZdejfd„ƒYZd„Ze dkrreƒndS(s‡Test script for the binhex C module Uses the mechanism of the python binhex module Based on an original test by Roger E. Masse. iÿÿÿÿN(t test_supporttBinHexTestCasecBs)eZd„Zd„ZdZd„ZRS(cCs$tjd|_tjd|_dS(Nt1t2(RtTESTFNtfname1tfname2(tself((s,/usr/local/lib/python2.7/test/test_binhex.pytsetUpscCsTytj|jƒWntk r'nXytj|jƒWntk rOnXdS(N(tostunlinkRtOSErrorR(R((s,/usr/local/lib/python2.7/test/test_binhex.pyttearDowns  sJack is my herocCs—t|jdƒ}|j|jƒ|jƒtj|j|jƒtj|j|jƒt|jdƒ}|jƒ}|jƒ|j |j|ƒdS(Ntwtr( topenRtwritetDATAtclosetbinhexRthexbintreadlinet assertEqual(Rtftfinish((s,/usr/local/lib/python2.7/test/test_binhex.pyt test_binhexs   (t__name__t __module__RR RR(((s,/usr/local/lib/python2.7/test/test_binhex.pyR s  cCstjtƒdS(N(Rt run_unittestR(((s,/usr/local/lib/python2.7/test/test_binhex.pyt test_main+st__main__( t__doc__RR tunittestttestRtTestCaseRRR(((s,/usr/local/lib/python2.7/test/test_binhex.pyts