Ñò
à"Ic           @   s   d  d k  Z  d  d k Z d  d k Z d  d k Z d  d k l Z d Z e i Z d e i	 f d „  ƒ  YZ
 d „  Z e d j o e ƒ  n d S(   iÿÿÿÿN(   t   test_supports   
machine foo login log1 password pass1 account acct1

macdef macro1
line1
line2

macdef macro2
line3
line4

default login log2 password pass2

t   NetrcTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s`   d } t  i d j o | d 7} n t t | ƒ } | i t ƒ | i ƒ  t i t ƒ |  _ d  S(   Nt   wt   cygwint   t(   s   cygwin(   t   syst   platformt   opent   temp_filenamet   writet
   TEST_NETRCt   closet   netrc(   t   selft   modet   fp(    (    s,   /mit/python/lib/python2.6/test/test_netrc.pyt   setUp   s    
c         C   s   |  `  t i t ƒ d  S(   N(   R   t   ost   unlinkR   (   R   (    (    s,   /mit/python/lib/python2.6/test/test_netrc.pyt   tearDown!   s    c         C   sq   |  i  |  i i h d d g d 6d d g d 6j ƒ |  i  |  i i d d j ƒ |  i  |  i i d d j ƒ d  S(   Ns   line1
s   line2
t   macro1s   line3
s   line4
t   macro2t   foot   log1t   acct1t   pass1t   defaultt   log2t   pass2(   R   R   R   (   R   NR   (   t   assert_R   t   macrost   hostst   None(   R   (    (    s,   /mit/python/lib/python2.6/test/test_netrc.pyt   test_case_1%   s    (   t   __name__t
   __module__R   R   R!   (    (    (    s,   /mit/python/lib/python2.6/test/test_netrc.pyR      s   			c           C   s   t  i t ƒ d  S(   N(   R    t   run_unittestR   (    (    (    s,   /mit/python/lib/python2.6/test/test_netrc.pyt	   test_main,   s    t   __main__(   R   R   t   unittestR   t   testR    R
   t   TESTFNR   t   TestCaseR   R%   R"   (    (    (    s,   /mit/python/lib/python2.6/test/test_netrc.pyt   <module>   s   0		