%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_binhex.pyo |
ó Nêáac @ sv d Z d d l Z d d l Z d d l Z d d l m Z d e j f d „ ƒ YZ d „ Z e d k rr 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. iÿÿÿÿN( t test_supportt BinHexTestCasec B s) e Z d „ Z d „ Z d Z d „ Z RS( c C s$ t j d | _ t j d | _ d S( Nt 1t 2( R t TESTFNt fname1t fname2( t self( ( s, /usr/local/lib/python2.7/test/test_binhex.pyt setUp s c C sT y t j | j ƒ Wn t k r' n Xy t j | j ƒ Wn t k rO n Xd S( N( t ost unlinkR t OSErrorR ( R ( ( s, /usr/local/lib/python2.7/test/test_binhex.pyt tearDown s s Jack is my heroc C s— t | j d ƒ } | j | j ƒ | j ƒ t j | j | j ƒ t j | j | j ƒ t | j d ƒ } | j ƒ } | j ƒ | j | j | ƒ d S( Nt wt r( t openR t writet DATAt closet binhexR t hexbint readlinet assertEqual( R t ft finish( ( s, /usr/local/lib/python2.7/test/test_binhex.pyt test_binhex s ( t __name__t __module__R R R R ( ( ( s, /usr/local/lib/python2.7/test/test_binhex.pyR s c C s t j t ƒ d S( N( R t run_unittestR ( ( ( s, /usr/local/lib/python2.7/test/test_binhex.pyt test_main+ s t __main__( t __doc__R R t unittestt testR t TestCaseR R R ( ( ( s, /usr/local/lib/python2.7/test/test_binhex.pyt <module> s