File: //proc/3/cwd/usr/lib64/python2.4/test/test_binhex.pyc
mò
‚=5Dc @ sl d Z d k Z d k Z d k Z d k l Z d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( 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.
N( s test_supportt BinHexTestCasec B s) t Z d „ Z d „ Z d Z d „ Z RS( Nc C s$ t i d | _ t i d | _ d S( Nt 1t 2( t test_supportt TESTFNt selft fname1t fname2( R ( ( t( /usr/lib64/python2.4/test/test_binhex.pyt setUp s c C sX y t i | i ƒ Wn t j
o n Xy t i | i ƒ Wn t j
o n Xd S( N( t ost unlinkR R t OSErrorR ( R ( ( R t tearDown s s Jack is my heroc C s— t | i d ƒ } | i | i ƒ | i ƒ t i | i | i ƒ t i | i | i ƒ t | i d ƒ } | i
ƒ } | i ƒ | i | i | ƒ d S( Nt wt r(
t openR R t ft writet DATAt closet binhexR t hexbint readlinet finisht assertEqual( R R R ( ( R t test_binhex s
( t __name__t
__module__R R
R R ( ( ( R R
s c C s t i t ƒ d S( N( R t run_unittestR ( ( ( R t test_main, s t __main__(
t __doc__R R
t unittestt testR t TestCaseR R R ( R R! R R R R
( ( R t ? s