Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/test/test_binhex.pyo
�
��#ec@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((s0/opt/RZpython2/lib/python2.7/test/test_binhex.pytsetUpscCsTytj|j�Wntk
r'nXytj|j�Wntk
rOnXdS(N(tostunlinkRtOSErrorR(R((s0/opt/RZpython2/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(
topenRtwritetDATAtclosetbinhexRthexbintreadlinetassertEqual(Rtftfinish((s0/opt/RZpython2/lib/python2.7/test/test_binhex.pyttest_binhexs

(t__name__t
__module__RRRR(((s0/opt/RZpython2/lib/python2.7/test/test_binhex.pyRs		cCstjt�dS(N(Rtrun_unittestR(((s0/opt/RZpython2/lib/python2.7/test/test_binhex.pyt	test_main+st__main__(
t__doc__RR	tunittestttestRtTestCaseRRR(((s0/opt/RZpython2/lib/python2.7/test/test_binhex.pyt<module>s