mς
­fIc           @   s   d  k  Z  d  k Z e i d d e e  d  k 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(   Nt   ignores   macfs.*(   s   test_supportt	   TestMacfsc           B   sb   t  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 d
   Z RS(   Nc         C   s-   t  t i d  } | i d  | i   d  S(   Nt   ws   hello world
(   t   opent   test_supportt   TESTFNt   fpt   writet   close(   t   selfR   (    (    t,   /mit/python/lib/python2.4/test/test_macfs.pyt   setUp   s    c         C   s"   y t  i t i  Wn n Xd  S(   N(   t   ost   unlinkR   R   (   R	   (    (    R
   t   tearDown   s    c         C   s;   t  i t i  } |  i t i i	 t i  | i
    d  S(   N(   t   macfst   FSSpecR   R   t   fssR	   t   assertEqualR   t   patht   realpatht   as_pathname(   R	   R   (    (    R
   t   test_fsspec   s    c         C   s;   t  i t i  } |  i t i i	 t i  | i
    d  S(   N(   R   t   FSRefR   R   t   fsrR	   R   R   R   R   R   (   R	   R   (    (    R
   t
   test_fsref   s    c         C   sX   t  i   oG t t i  } t i |  } |  i
 t i i t i  | i    n d  S(   N(   t   syst   getfilesystemencodingt   unicodeR   R   t   testfn_unicodeR   R   R   R	   R   R   R   R   R   (   R	   R   R   (    (    R
   t   test_fsref_unicode!   s    c         C   sx   t  i t i  } t  i t i  } | i   } | i	   } |  i | i   | i    |  i | i   | i    d  S(   N(   R   R   R   R   R   R   R   t	   as_fsspect   fss2t   as_fsreft   fsr2R	   R   R   (   R	   R"   R    R   R   (    (    R
   t   test_coercion'   s    c         C   sy   d  k  } t i t i  } t | i     } | i | | d | d  | i	   } |  i | | | d | d f  d  S(   Ni   i   (   t   timeR   R   R   R   R   t   intt   nowt   SetDatest   GetDatest   datesR	   R   (   R	   R)   R   R$   R&   (    (    R
   t
   test_dates/   s    	c         C   sN   t  i t i  } | i d d  | i   \ } } |  i
 | | f d  d  S(   Nt   Pytht   TEXT(   R+   R,   (   R   R   R   R   R   t   SetCreatorTypet   GetCreatorTypet   filecrt   filetpR	   R   (   R	   R/   R0   R   (    (    R
   t   test_ctor_type7   s    c         C   s`   t  i t i  } | i   } | i   \ } } |  i | d  |  i | i   | i    d  S(   Ni    (   R   R   R   R   R   t   NewAliast   aliast   ResolveR    t   changedR	   R   R   (   R	   R    R5   R3   R   (    (    R
   t
   test_alias=   s
    c         C   s   t  i t i  } d  S(   N(   R   R   R   R   R   (   R	   R   (    (    R
   t   test_fss_aliasE   s    (   t   __name__t
   __module__R   R   R   R   R   R#   R*   R1   R6   R7   (    (    (    R
   R      s   									c           C   s   t  i t  d  S(   N(   R   t   run_unittestR   (    (    (    R
   t	   test_mainI   s    t   __main__(   t   unittestt   warningst   filterwarningst   DeprecationWarningR8   R   R   R   t   tempfilet   testR   t   TestCaseR   R;   (	   R   R>   RA   R   R=   R   R;   R   R   (    (    R
   t   ?   s   						=	