Current File : //opt/imh-python/lib/python2.7/test/test_applesingle.pyc |
�
��Wc
@ s d d l Z d d l Z d d l m Z d d l Z e j d � Z d d l Z d Z d Z d Z
d Z e j d e e d d
� e j d d d
e
e
� d
d
e
e
� e
e � � e
e Z e j d Z d e j f d � � YZ d � Z e d k re � n d S( i����N( t test_supportt MacOSi i s
hello
world
s goodbye
cruel world
s >ll16sht fooi s >lllllli i2 t 2t TestApplesinglec B s5 e Z d � Z d � Z d � Z d � Z d � Z RS( c C s- t t j d � } | j t � | j � d S( Nt w( t openR t TESTFNt writet applesingledatat close( t selft fp( ( sn /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_applesingle.pyt setUp s
c C s= y t j t j � Wn n Xy t j t � Wn n Xd S( N( t ost unlinkR R t TESTFN2( R ( ( sn /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_applesingle.pyt tearDown s c C sM | r t j t d � } n t t d � } | j d � } | j | | � d S( Ns *rbt rbi� ( R t openrfR R t readt assertEqual( R t isrft dataR t filedata( ( sn /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_applesingle.pyt compareData) s
c C sR y t j t � Wn n Xt j t j t � | j t t � | j t
t � d S( N( R R R t applesinglet decodeR R R t Falset dataforkdatat Truet resourceforkdata( R ( ( sn /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_applesingle.pyt test_applesingle1 s c C sH y t j t � Wn n Xt j t j t d t �| j t t
� d S( Nt resonly( R R R R R R R R R R R ( R ( ( sn /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_applesingle.pyt test_applesingle_resonly: s ( t __name__t
__module__R
R R R R"