;
ฬโ"Ic               @   so   d  d l  Z  d  d l m Z d  d l Z d  d l Z Gd   d e  j  Z d   Z e d k o e   n d S(   i    N(   u   supportc             B   sM   |  Ee  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d S(   c             C   s   |  j  | | k  d  S(   N(   u   assert_(   u   selfu   au   b(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   assertIs   s    c             C   sz   |  j  t j g   d  |  j  t j d d g  d  |  j  t j d d g  d  |  j  t j d d g  d  d  S(   Nu    u   /home/swenson/spamu   /home/swen/spamu
   /home/swenu   /home/swen/eggsu   /home/swen/(   u   assertEqualu   genericpathu   commonprefix(   u   self(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   test_commonprefix   s    c          	   C   sy   t  t j d  } z7 | j d  | j   |  j t j t j  d  Wd  | j p | j   n t	 j
 t j  Xd  S(   Nu   wbs   fooi   (   u   openu   supportu   TESTFNu   writeu   closeu   assertEqualu   genericpathu   getsizeu   closedu   osu   remove(   u   selfu   f(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   test_getsize   s    
 
c          
   C   s้   t  t j d  } zง | j d  | j   t  t j d  } | j d  | j   t  t j d  } | j   } | j   |  j | d  |  j t j	 t j  t j
 t j  k  Wd  | j p | j   n t j t j  Xd  S(   Nu   wbs   foou   abs   baru   rbs   foobar(   u   openu   supportu   TESTFNu   writeu   closeu   readu   assertEqualu   assert_u   genericpathu   getctimeu   getmtimeu   closedu   osu   remove(   u   selfu   fu   d(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu	   test_time(   s"    



c             C   sษ   |  j  t j t j  d  t t j d  } z7 | j d  | j   |  j  t j t j  d  Wd  | j   p | j   n y t
 j t j  Wn t
 j k
 o Yn XX|  j t t j  d  S(   Nu   wbs   fooFT(   u   assertIsu   genericpathu   existsu   supportu   TESTFNu   Falseu   openu   writeu   closeu   Trueu   osu   removeu   erroru   assertRaisesu	   TypeError(   u   selfu   f(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   test_exists>   s    
 c             C   sC  |  j  t j t j  d  t t j d  } z | j d  | j   |  j  t j t j  d  t	 j
 t j  t	 j t j  |  j  t j t j  d  t	 j t j  Wd  | j   p | j   n y t	 j
 t j  Wn t	 j k
 o Yn Xy t	 j t j  Wn t	 j k
 o Yn XX|  j t t j  d  S(   Nu   wbs   fooFT(   u   assertIsu   genericpathu   isdiru   supportu   TESTFNu   Falseu   openu   writeu   closeu   osu   removeu   mkdiru   Trueu   rmdiru   erroru   assertRaisesu	   TypeError(   u   selfu   f(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu
   test_isdirO   s*    
c             C   sL  |  j  t j t j  d  t t j d  } z | j d  | j   |  j  t j t j  d  t
 j t j  t
 j t j  |  j  t j t j  d  t
 j t j  Wd  | j   p | j   n y t
 j t j  Wn t
 j k
 o Yn Xy t
 j t j  Wn t
 j k
 o Yn XX|  j t t j  d   } d  S(   Nu   wbs   fooc             S   sผ  t  t j d d  } z| j d  | j   |  j t j t j d t j d  d  t	 t
 d  oท t
 j t j d t j d  |  j t j t j d t j d  d  t
 j t j d  t  t j d d  } | j d  | j   |  j t j t j d t j d  d  n Wd  | j   p | j   n y t
 j t j d  Wn t
 j k
 o Yn Xy t
 j t j d  Wn t
 j k
 o Yn XX|  j t t j  d  S(	   Nu   1u   wbs   foou   symlinku   2s   barTF(   u   openu   supportu   TESTFNu   writeu   closeu   assertIsu   genericpathu   samefileu   Trueu   hasattru   osu   symlinku   removeu   Falseu   erroru   assertRaisesu	   TypeError(   u   selfu   f(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   test_samefile   sL    





FT(   u   assertIsu   genericpathu   isfileu   supportu   TESTFNu   Falseu   openu   writeu   closeu   Trueu   osu   removeu   mkdiru   rmdiru   erroru   assertRaisesu	   TypeErroru   isdir(   u   selfu   fu   test_samefile(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   test_isfileh   s,    
N(	   u   __name__u
   __module__u   assertIsu   test_commonprefixu   test_getsizeu	   test_timeu   test_existsu
   test_isdiru   test_isfile(   u
   __locals__(    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   AllCommonTest   s   
						u   AllCommonTestc               C   s   t  j t  d  S(   N(   u   supportu   run_unittestu   AllCommonTest(    (    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu	   test_mainด   s    u   __main__(	   u   unittestu   testu   supportu   osu   genericpathu   TestCaseu   AllCommonTestu	   test_mainu   __name__(    (    (    u2   /mit/python/lib/python3.0/test/test_genericpath.pyu   <module>   s   ฎ	