ó
|‰ãW?M  c           @   s
  d  d l  Z d  d l j j Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 m Z m Z m Z d  d l m Z d  d l m Z d „  Z d „  Z d e f d „  ƒ  YZ d	 f  d
 „  ƒ  YZ d „  Z d f  d „  ƒ  YZ d „  Z d „  Z d f  d „  ƒ  YZ d S(   iÿÿÿÿN(   t   InfoSvnWCCommandt   XMLWCStatust   parse_wcinfotime(   t   svnwc(   t   CommonSvnTestsc         C   s‰  | j  d ƒ } t j j d | ƒ t j d k rQ d t | ƒ j d d ƒ } n  t j j	 d | ƒ } t j j
 | j  d ƒ ƒ } | j | ƒ | j } d } | | k } | sUt j d* | f d+ | | f ƒ i d t j ƒ  k sò t j | ƒ rt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d, i | d 6} t t j | ƒ ƒ ‚ n  d  } } } | j }	 |	 ƒ  } t | ƒ }
 d } |
 | k } | s•t j d- | f d. |
 | f ƒ i d t j ƒ  k sÛt j t ƒ rêt j t ƒ n d d 6d t j ƒ  k st j | ƒ r!t j | ƒ n d d 6t j | ƒ d 6t j |	 ƒ d 6t j | ƒ d 6t j |
 ƒ d 6} d/ i | d 6} t t j | ƒ ƒ ‚ n  d  }	 } }
 } } | j  d ƒ } | j d ƒ | j ƒ  | j d ƒ } | j } | ƒ  } | j } d } | | k } | sØt j d0 | f d1 | | f ƒ i d t j ƒ  k sUt j | ƒ rdt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d  6} d2 i | d" 6} t t j | ƒ ƒ ‚ n  d  } } } } } d }	 | |	 k } | s›t j d3 | f d4 | |	 f ƒ i d$ t j ƒ  k sHt j | ƒ rWt j | ƒ n d$ d 6t j |	 ƒ d 6} d5 i | d 6} t t j | ƒ ƒ ‚ n  d  } }	 | j ƒ  } | d  k } | st j d6 | f d7 | d  f ƒ i d$ t j ƒ  k st j | ƒ rt j | ƒ n d$ d 6d( t j ƒ  k s<t j d  ƒ rKt j d  ƒ n d( d 6} d8 i | d 6} t t j | ƒ ƒ ‚ n  d  } d  S(9   Nt   repos   svnadmin create %st   win32t   /s   \s	   file://%st   wci    s   ==s+   %(py2)s
{%(py2)s = %(py0)s.rev
} == %(py5)st   py0t   py2t   py5t    s   assert %(py7)st   py7se   %(py7)s
{%(py7)s = %(py0)s(%(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.listdir
}()
})
} == %(py10)st   lent   py1t   py10t   py3s   assert %(py12)st   py12t   a_files	   test files	   some testi   s\   %(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.info
}()
}.rev
} == %(py9)st   pt   py9t   py4t   py6s   assert %(py11)st   py11s   %(py0)s == %(py3)st   revs   assert %(py5)st   iss   %(py0)s is %(py2)st   Nones   assert %(py4)s(   s   ==(   s+   %(py2)s
{%(py2)s = %(py0)s.rev
} == %(py5)ss   assert %(py7)s(   s   ==(   se   %(py7)s
{%(py7)s = %(py0)s(%(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.listdir
}()
})
} == %(py10)ss   assert %(py12)s(   s   ==(   s\   %(py6)s
{%(py6)s = %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.info
}()
}.rev
} == %(py9)ss   assert %(py11)s(   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   R   (   s   %(py0)s is %(py2)ss   assert %(py4)s(   t   joint   pyt   processt   cmdexect   syst   platformt   strt   replacet   patht   svnurlR   t   checkoutR   t
   @pytest_art   _call_reprcomparet   @py_builtinst   localst   _should_repr_global_namet	   _safereprt   AssertionErrort   _format_explanationR   t   listdirR   t   writet   addt   committ   info(   t   path1t   tmpdirR   R   t   @py_assert1t   @py_assert4t   @py_assert3t   @py_format6t   @py_format8t   @py_assert2t   @py_assert6t   @py_assert9t   @py_assert8t   @py_format11t   @py_format13R   R   t   @py_assert5t   @py_assert7t   @py_format10t   @py_format12t   @py_format4t   @py_format3t   @py_format5(    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_make_repo   sj    	    |   	 	     Ó   
	 	 	    œ      l   
  “   c         C   s   |  j  d ƒ \ } } } | S(   Nt   repowc1(   t   getfuncargvalue(   t   requestR   t   repourlR   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   pytest_funcarg__path1   s    t   TestWCSvnCommandPathc           B   s+  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j	 j
 d d ƒ d „  ƒ Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" RS(    c         C   sB   d „  } | j  d ƒ } | | j  d ƒ ƒ | | j  d ƒ ƒ d  S(   Nc         S   sÑ  |  j  ƒ  } | j } | } | s d d i d t j ƒ  k sM t j | ƒ r\ t j | ƒ n d d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } | j
 } | } | sd d i d t j ƒ  k sÚ t j | ƒ ré t j | ƒ n d d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } | j } | } | s©d d i d t j ƒ  k sgt j | ƒ rvt j | ƒ n d d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } | j } | } | s6d d i d t j ƒ  k sôt j | ƒ rt j | ƒ n d d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } | j } | } | sÃd d	 i d t j ƒ  k st j | ƒ rt j | ƒ n d d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } d  S(
   NR   s0   assert not %(py2)s
{%(py2)s = %(py0)s.modified
}t   sR	   R
   s5   assert not %(py2)s
{%(py2)s = %(py0)s.prop_modified
}s-   assert not %(py2)s
{%(py2)s = %(py0)s.added
}s/   assert not %(py2)s
{%(py2)s = %(py0)s.deleted
}s0   assert not %(py2)s
{%(py2)s = %(py0)s.replaced
}(   t   statust   modifiedR)   R*   R'   R+   R,   R-   R.   R   t   prop_modifiedt   addedt   deletedt   replaced(   R   RO   R6   R8   RE   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   assert_nochange!   s>    	   U  
	   U  
	   U  
	   U  
	   U  t	   sampledirt
   samplefile(   R   (   t   selfR4   RV   t   dpath(    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_attributes_simple    s    	c         C   sq  | j  d ƒ } | j d ƒ | j ƒ  z9| j ƒ  } | j } | s± d d i d t j ƒ  k so t j | ƒ r~ t j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } | j } | } | s:d d i d t j ƒ  k sø t j | ƒ rt j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } | j } | } | sÇd d	 i d t j ƒ  k s…t j | ƒ r”t j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } | j } | } | sTd d
 i d t j ƒ  k st j | ƒ r!t j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } Wd  | j ƒ  Xd  S(   Nt   newfilet   helloR   s)   assert %(py2)s
{%(py2)s = %(py0)s.added
}RO   R	   R
   s0   assert not %(py2)s
{%(py2)s = %(py0)s.modified
}s5   assert not %(py2)s
{%(py2)s = %(py0)s.prop_modified
}s0   assert not %(py2)s
{%(py2)s = %(py0)s.replaced
}(   R   R0   R1   RP   RS   R)   R*   R'   R+   R,   R-   R.   R   RQ   RR   RU   t   revert(   RY   R4   t   nfRO   R6   RF   R8   RE   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_added-   s:    
	  U  	   U  
	   U  
	   U  c         C   sq  | j  d ƒ } zP| j | j ƒ  d ƒ | j ƒ  } | j } | } | s¸ d d i d t j ƒ  k sv t j | ƒ r… t j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } | j } | s>d d i d t j ƒ  k sü t j | ƒ rt j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } | j } | } | sÇd d	 i d t j ƒ  k s…t j | ƒ r”t j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } | j } | } | sTd d
 i d t j ƒ  k st j | ƒ r!t j	 | ƒ n d d 6t j	 | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } Wd  | j ƒ  Xd  S(   NRX   t   changeR   s-   assert not %(py2)s
{%(py2)s = %(py0)s.added
}RO   R	   R
   s,   assert %(py2)s
{%(py2)s = %(py0)s.modified
}s5   assert not %(py2)s
{%(py2)s = %(py0)s.prop_modified
}s0   assert not %(py2)s
{%(py2)s = %(py0)s.replaced
}(   R   R0   t   readRP   RS   R)   R*   R'   R+   R,   R-   R.   R   RQ   RR   RU   R^   (   RY   R4   R_   RO   R6   R8   RE   RF   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_change:   s8    	   U  
	  U  	   U  
	   U  c         C   s_  | j  d ƒ } z%| j d ƒ } | j  d ƒ } | j d ƒ | j ƒ  | j d d ƒ } | j } g  | j D] } | j ^ ql } | | k }	 |	 s8t j d |	 f d | | f ƒ i d t	 j
 ƒ  k sÕ t j | ƒ rä t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6}
 d i |
 d 6} t t j | ƒ ƒ ‚ n  d  } }	 } | j } g  | j D] } | j ^ qY} | | k }	 |	 s%t j d |	 f d | | f ƒ i d t	 j
 ƒ  k sÂt j | ƒ rÑt j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6}
 d i |
 d 6} t t j | ƒ ƒ ‚ n  d  } }	 } Wd  | j d d ƒ | j j d d ƒ Xd  S(   NRW   t   t2t   t1t   testt   reci   t   ins0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)sR	   R
   R   R   s   assert %(py7)sR   (   Rh   (   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)ss   assert %(py7)s(   Rh   (   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)ss   assert %(py7)s(   R   t   mkdirR0   R1   RP   t   basenameRS   R'   R(   R)   R*   R+   R,   R-   R.   R   R^   t	   localpatht   remove(   RY   R4   RW   Rd   Re   RO   R6   t   itemR7   R8   R9   R:   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_added_ondirectoryF   s2    
	    |   	    |   c   
      C   s.  | j  d ƒ } z
| j d ƒ | j ƒ  } | j } g  | j D] } | j ^ q> } | | k } | s
t j d | f d | | f ƒ i d t j ƒ  k s§ t j	 | ƒ r¶ t j
 | ƒ n d d 6t j
 | ƒ d 6t j
 | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } Wd  | j j ƒ  Xd  S(   Nt   un1Rf   Rh   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)sRe   R	   R
   R   R   s   assert %(py7)sR   (   Rh   (   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)ss   assert %(py7)s(   R   R0   RP   Rj   t   unknownR'   R(   R)   R*   R+   R,   R-   R.   R   Rk   Rl   (
   RY   R4   Re   RO   R6   Rm   R7   R8   R9   R:   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_unknownV   s    	    |   c         C   sè  | } | j  d d ƒ } | j } d } | | ƒ } | j } g  | j D] } | j ^ qF }	 | |	 k }
 |
 sBt j d |
 f d | |	 f ƒ i t j | ƒ d 6d t j ƒ  k s¿ t j	 | ƒ rÎ t j | ƒ n d d 6t j | ƒ d	 6t j |	 ƒ d
 6t j | ƒ d 6t j | ƒ d 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  } } } } }
 }	 | j } d } | | ƒ } | j } g  | j D] } | j ^ qŠ}	 | |	 k }
 |
 s†t j d |
 f d | |	 f ƒ i t j | ƒ d 6d t j ƒ  k st j	 | ƒ rt j | ƒ n d d 6t j | ƒ d	 6t j |	 ƒ d
 6t j | ƒ d 6t j | ƒ d 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  } } } } }
 }	 | j } d } | | ƒ } | j } g  | j D] } | j ^ qÎ}	 | |	 k }
 |
 sÊt j d |
 f d | |	 f ƒ i t j | ƒ d 6d t j ƒ  k sGt j	 | ƒ rVt j | ƒ n d d 6t j | ƒ d	 6t j |	 ƒ d
 6t j | ƒ d 6t j | ƒ d 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  } } } } }
 }	 d  S(   NRg   i   RX   Rh   si   %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.basename
} in %(py11)st   py8t   rR	   R
   R   R   R   R   s   assert %(py13)st   py13RW   s   sampledir/otherfile(   Rh   (   si   %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.basename
} in %(py11)ss   assert %(py13)s(   Rh   (   si   %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.basename
} in %(py11)ss   assert %(py13)s(   Rh   (   si   %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.basename
} in %(py11)ss   assert %(py13)s(   RP   R   Rj   t	   unchangedR'   R(   R,   R)   R*   R+   R-   R.   R   (   RY   R4   Rs   RO   R6   R8   RA   RB   Rm   t   @py_assert10R=   RD   t   @py_format14(    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_unchangeda   sF    	   	    ¬   	   	    ¬   	   	    ¬   t   reasons'   svn-1.7 has buggy 'status --xml' outputc         C   s¡  | } z‰| j  d d ƒ | j d d d d ƒ } t j j j | j ƒ  ƒ | j } d } | | ƒ } | j } g  | j D] } | j ^ qx }	 | |	 k }
 |
 stt	 j
 d |
 f d | |	 f ƒ i t	 j | ƒ d 6d	 t j ƒ  k sñ t	 j | ƒ r t	 j | ƒ n d	 d
 6t	 j | ƒ d 6t	 j |	 ƒ d 6t	 j | ƒ d 6t	 j | ƒ d 6} d i | d 6} t t	 j | ƒ ƒ ‚ n  d  } } } } }
 }	 Wd  | j  ƒ  Xd  S(   NR   i   t   updatesRg   t   anotherfileRh   si   %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.basename
} in %(py11)sRr   Rs   R	   R
   R   R   R   R   s   assert %(py13)sRt   (   Rh   (   si   %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.basename
} in %(py11)ss   assert %(py13)s(   t   updateRP   R   t   stdt   pprintt   allpathR   Rj   t   update_availableR'   R(   R,   R)   R*   R+   R-   R.   R   (   RY   R4   Rs   RO   R6   R8   RA   RB   Rm   Rv   R=   RD   Rw   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_updatem   s"    	   	    ¬   c   
      C   s>  | j  d ƒ } | j ƒ  | j d d ƒ zý | j ƒ  } | j } g  | j D] } | j ^ qK } | | k } | st j d | f d | | f ƒ i d t j	 ƒ  k s´ t j
 | ƒ rÃ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } Wd  | j d d ƒ Xd  S(   NRX   t   diri    Rh   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)sR   R	   R
   R   R   s   assert %(py7)sR   Rg   i   (   Rh   (   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)ss   assert %(py7)s(   R   Rl   t   ensureRP   Rj   RU   R'   R(   R)   R*   R+   R,   R-   R.   R   R^   (
   RY   R4   R   RO   R6   Rm   R7   R8   R9   R:   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_replaced|   s    
	    |   c         C   sP  z8| j  d ƒ } t j j | ƒ j  d ƒ } | j d t ƒ | j ƒ  } g  | j D] } | j ^ qS } d g } | | k } | sñ t	 j
 d | f d | | f ƒ i t	 j | ƒ d 6t	 j | ƒ d 6}	 d i |	 d
 6}
 t t	 j |
 ƒ ƒ ‚ n  d  } } } g  | j D] } | j ^ q	} g  } | | k } | s¤t	 j
 d | f d | | f ƒ i t	 j | ƒ d 6t	 j | ƒ d 6}	 d i |	 d
 6}
 t t	 j |
 ƒ ƒ ‚ n  d  } } } | j d d ƒ | j ƒ  } g  | j D] } | j ^ qØ} g  } | | k } | sst	 j
 d | f d | | f ƒ i t	 j | ƒ d 6t	 j | ƒ d 6}	 d i |	 d
 6}
 t t	 j |
 ƒ ƒ ‚ n  d  } } } g  | j D] } | j ^ q‹} d g } | | k } | s)t	 j
 d | f d | | f ƒ i t	 j | ƒ d 6t	 j | ƒ d 6}	 d i |	 d
 6}
 t t	 j |
 ƒ ƒ ‚ n  d  } } } Wd  | j d d ƒ Xd  S(   NRW   t   ignoredfilet   files   ==s   %(py1)s == %(py4)sR   R   R   s   assert %(py6)sR   s
   svn:ignoreRg   i   (   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   R   R   R$   t   localRƒ   t   TrueRP   Rp   Rj   R'   R(   R,   R-   R.   R   t   ignoredt   propsetR^   (   RY   R4   t   dR   RO   t   xt   @py_assert0R8   R;   RG   t   @py_format7(    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_ignored†   sP     	   E       E       E    	   E   c         C   sf  | } t  j j | j d ƒ ƒ } | j | j ƒ | j d d d ƒ} | j d ƒ | j d ƒ | j	 ƒ  | j } d } | | ƒ } | j
 }	 |	 ƒ  }
 |
 sJd d i t j |	 ƒ d	 6d
 t j ƒ  k sØ t j | ƒ rç t j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j |
 ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } } }	 }
 | j d ƒ | j d ƒ | j d ƒ j d ƒ | j	 d t ƒ | j ƒ  } g  | j D] } | j ^ q¶} d g } | | k } | sTt j d | f d | | f ƒ i t j | ƒ d 6t j | ƒ d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } } d  S(   Nt   conflict_copyt   conflictsamplefileR†   i   t   foos   added conflictsamplefileR   sz   assert %(py10)s
{%(py10)s = %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.check
}()
}Rr   t   wccopyR	   R
   R   R   R   t   bars   wrote some datat   bazt   interactives   ==s   %(py1)s == %(py4)sR   s   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   R   R$   R   R   R&   t   urlRƒ   R0   R2   R|   t   checkR'   R,   R)   R*   R+   R-   R.   R   t   FalseRP   t   conflictRj   R(   (   RY   R4   R5   R   R“   R   R6   R8   RA   RB   R=   R?   RO   RŒ   R   R;   RG   RŽ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_conflict•   s:    
	   	 	  •   	   E   c         C   s^  | \ } } } | j  d d d ƒ} z"| j ƒ  | j d d | j f ƒ | j ƒ  | j ƒ  } g  | j D] } | j ^ qk }	 d g }
 |	 |
 k } | s	t j d | f d |	 |
 f ƒ i t j	 |	 ƒ d	 6t j	 |
 ƒ d
 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  }	 } }
 d }	 g  | j D] } | j ^ q'}
 |	 |
 k } | s¼t j d | f d |	 |
 f ƒ i t j	 |	 ƒ d	 6t j	 |
 ƒ d
 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  }	 } }
 | j d d ƒ } g  | j D] } | j ^ qæ}	 d g }
 |	 |
 k } | s„t j d | f d |	 |
 f ƒ i t j	 |	 ƒ d	 6t j	 |
 ƒ d
 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  }	 } }
 d }	 g  | j D] } | j ^ q¢}
 |	 |
 k } | s7t j d | f d |	 |
 f ƒ i t j	 |	 ƒ d	 6t j	 |
 ƒ d
 6} d i | d 6} t
 t j | ƒ ƒ ‚ n  d  }	 } }
 Wd  | j d d ƒ Xd  S(   NRW   R‚   i   s   svn:externalss
   otherwc %st   otherwcs   ==s   %(py1)s == %(py4)sR   R   R   s   assert %(py6)sR   s   not ins   %(py1)s not in %(py4)sRg   Rh   s   %(py1)s in %(py4)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   s   not in(   s   %(py1)s not in %(py4)ss   assert %(py6)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   Rh   (   s   %(py1)s in %(py4)ss   assert %(py6)s(   Rƒ   R|   RŠ   R—   RP   t   externalRj   R'   R(   R,   R-   R.   R   Ru   R^   (   RY   R4   t   repowc2t	   otherrepot   otherrepourlRœ   R‹   RO   RŒ   R   R8   R;   RG   RŽ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_external¥   sR    

 	   E       E    	   E       E   c         C   sU  | j  d d d ƒ} | j ƒ  | j  d d ƒ | j ƒ  | j  d d d ƒ| j ƒ  | j ƒ  } d } g  | j D] } | j ^ qr } | | k } | st j d | f d | | f ƒ i t j | ƒ d 6t j | ƒ d	 6} d i | d 6}	 t	 t j
 |	 ƒ ƒ ‚ n  d  } } } | j }
 |
 } | s˜d
 d i d t j ƒ  k sVt j | ƒ ret j | ƒ n d d 6t j |
 ƒ d 6} t	 t j
 | ƒ ƒ ‚ n  d  }
 } | j d ƒ } | j ƒ  | j ƒ  } d } | j } | | k } | st j d | f d | | f ƒ i t j | ƒ d 6d t j ƒ  k s:t j | ƒ rIt j | ƒ n d d 6t j | ƒ d 6} d i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } } } g  | j D] } | j ^ q¥} d g } | | k } | sCt j d | f d  | | f ƒ i t j | ƒ d 6t j | ƒ d	 6} d! i | d 6}	 t	 t j
 |	 ƒ ƒ ‚ n  d  } } } d  S("   NRW   R‚   i   t
   deletefilei    Rh   s   %(py1)s in %(py4)sR   R   R   s   assert %(py6)sR   s/   assert not %(py2)s
{%(py2)s = %(py0)s.deleted
}RO   R	   R
   s   not ins5   %(py1)s not in %(py5)s
{%(py5)s = %(py3)s.unchanged
}R   R   s   assert %(py7)sR   s   ==s   %(py1)s == %(py4)s(   Rh   (   s   %(py1)s in %(py4)ss   assert %(py6)s(   s   not in(   s5   %(py1)s not in %(py5)s
{%(py5)s = %(py3)s.unchanged
}s   assert %(py7)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   Rƒ   Rl   R2   RP   Ru   Rj   R'   R(   R,   R-   R.   R   RT   R)   R*   R+   R   (   RY   R4   R‹   RO   R   RŒ   R8   R;   RG   RŽ   R6   RE   R   R7   R9   R:   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_deletedµ   sP    


    E   	   U  

 	   |    	   E   c         C   s   d } t  j | | ƒ d  S(   Nsô           <entry path="/tmp/pytest-23/wc">
        <wc-status item="normal" props="none" revision="0">
        <commit revision="0">
        <date>2008-08-19T16:50:53.400198Z</date>
        </commit>
        </wc-status>
        </entry>
        (   R   t
   fromstring(   RY   R4   t   xml(    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_noauthorÅ   s    
c   
      C   sG  d } t  j | | ƒ } | j } t | ƒ } d } | | k } | s1t j d | f d | | f ƒ i d t j ƒ  k s‡ t j t ƒ r– t j	 t ƒ n d d 6d t j ƒ  k s¾ t j | ƒ rÍ t j	 | ƒ n d d 6t j	 | ƒ d	 6t j	 | ƒ d
 6t j	 | ƒ d 6} d i | d 6}	 t
 t j |	 ƒ ƒ ‚ n  d  } } } } d  S(   Ns¦   <entry path="/home/jean/zope/venv/projectdb/parts/development-products/DataGridField">
<wc-status item="incomplete" props="none" revision="784">
</wc-status>
</entry>i   s   ==sP   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.incomplete
})
} == %(py8)sR   R	   t   stR   Rr   R   R   R   s   assert %(py10)sR   (   s   ==(   sP   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.incomplete
})
} == %(py8)ss   assert %(py10)s(   R   R¤   t
   incompleteR   R'   R(   R)   R*   R+   R,   R-   R.   R   (
   RY   R4   R¥   R§   R;   R7   RB   R<   t   @py_format9R?   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_status_wrong_xmlÒ   s    	     Ã   c         C   s.  | d } | j  d d ƒ } | j } d } | | ƒ } d } | | k } | st j d | f d | | f ƒ i d t j ƒ  k s‘ t j | ƒ r  t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6}	 d i |	 d 6}
 t t j	 |
 ƒ ƒ ‚ n  d  } } } } } d  S(   NR{   R   i   R]   iÿÿÿÿs   !=sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)st   outR	   R   R
   R   R   R   s   assert %(py11)sR   (   s   !=(   sJ   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.find
}(%(py4)s)
} != %(py9)ss   assert %(py11)s(   t   difft   findR'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   R   R«   R6   R8   RA   R>   RB   RC   RD   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt	   test_diffØ   s    
	      œ   c         C   s6  | j  d ƒ } | j ƒ  } g  | D] } | d ^ q" } t | ƒ } t | ƒ } | | k } | rt j d f | f d f | | f ƒ i t j | ƒ d 6d t j ƒ  k p¸ t j	 t ƒ rÊ t j t ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6d
 t j ƒ  k pt j	 t ƒ r!t j t ƒ n d
 d 6d t j ƒ  k pFt j	 | ƒ rXt j | ƒ n d d 6}	 d d i |	 d 6}
 t
 t j |
 ƒ ƒ ‚ n  t } } } } xt | j ƒ  g  | D] } | d ^ q¸ƒ D]ë \ } } | | k } | r´t j d f | f d f | | f ƒ i d t j ƒ  k p3t j	 | ƒ rEt j | ƒ n d d 6d t j ƒ  k pjt j	 | ƒ r|t j | ƒ n d d 6} d d i | d	 6} t
 t j | ƒ ƒ ‚ n  t } qÏWg  | D] } | d ^ qÅ} d g } t | ƒ } | | } | | k } | rt j d f | f d f | | f ƒ i t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6d
 t j ƒ  k p‚t j	 t ƒ r”t j t ƒ n d
 d 6d t j ƒ  k p¹t j	 | ƒ rËt j | ƒ n d d 6}	 d d i |	 d 6}
 t
 t j |
 ƒ ƒ ‚ n  t } } } } } | j  d ƒ } | j ƒ  } g  | D] } | d ^ q;} t | ƒ } t | ƒ } | | k } | r©t j d f | f d f | | f ƒ i t j | ƒ d 6d t j ƒ  k pÑt j	 t ƒ rãt j t ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6d
 t j ƒ  k p(t j	 t ƒ r:t j t ƒ n d
 d 6d t j ƒ  k p_t j	 | ƒ rqt j | ƒ n d d 6}	 d d i |	 d 6}
 t
 t j |
 ƒ ƒ ‚ n  t } } } } xt | j ƒ  g  | D] } | d ^ qÑƒ D]ë \ } } | | k } | rÍt j d f | f d f | | f ƒ i d t j ƒ  k pLt j	 | ƒ r^t j | ƒ n d d 6d t j ƒ  k pƒt j	 | ƒ r•t j | ƒ n d d 6} d d i | d	 6} t
 t j | ƒ ƒ ‚ n  t } qèWg  | D] } | d ^ qÞ} d g } t | ƒ } | | } | | k } | rt j d f | f d f | | f ƒ i t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6d
 t j ƒ  k p›t j	 t ƒ r­t j t ƒ n d
 d 6d t j ƒ  k pÒt j	 | ƒ rät j | ƒ n d d 6}	 d d i |	 d 6}
 t
 t j |
 ƒ ƒ ‚ n  t } } } } } d  S(   Nt   samplepicklei    s   ==sN   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} == %(py9)s
{%(py9)s = %(py6)s(%(py7)s)
}R   t   sumR	   R
   R   R   R   t   linesR   R   s   assert %(py11)sR   i   s   %(py0)s == %(py2)st   l1t   l2s   assert %(py4)si   t   hpks<   %(py1)s == (%(py4)s * %(py8)s
{%(py8)s = %(py5)s(%(py6)s)
})Rr   R   R   RX   (   R   t   blameR°   R   R'   R(   R,   R)   R*   R+   R-   R.   R   t   zipt	   readlines(   RY   R4   R   R±   t   lR6   R8   R>   RA   RC   RD   R²   R³   RF   RG   R   RB   R=   R;   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt
   test_blameÝ   st         ÿ    9  ™   
 	  
   É        ÿ    9  ™   
 	  
   É   c         C   sü   t  | j ƒ } | j | d d ƒ} | | k } | sò t j d | f d | | f ƒ i d t j ƒ  k sx t j | ƒ r‡ t j | ƒ n d d 6d t j ƒ  k s¯ t j | ƒ r¾ t j | ƒ n d d 6} d i | d 6} t	 t j
 | ƒ ƒ ‚ n  d  } d  S(   Nt   absi   s   ==s   %(py0)s == %(py2)sR4   R	   t   nR
   R   s   assert %(py4)sR   (   s   ==(   s   %(py0)s == %(py2)ss   assert %(py4)s(   R"   Rk   R   R'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   RO   R»   R6   RF   RG   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_join_absë   s      “   c         C   s±  | j  } d } d } | | d | ƒ} | j  } d } | | ƒ } | | k }	 |	 r‹t j d f |	 f d f | | f ƒ i	 t j | ƒ d 6d t j ƒ  k pª t j | ƒ r¼ t j | ƒ n d d 6t j | ƒ d	 6t j | ƒ d
 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6d t j ƒ  k pAt j | ƒ rSt j | ƒ n d d 6}
 d d i |
 d 6} t t j | ƒ ƒ ‚ n  t	 } } } } }	 } } } d  S(   NRX   i   Rº   s   ==s•   %(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s, abs=%(py6)s)
} == %(py16)s
{%(py16)s = %(py12)s
{%(py12)s = %(py10)s.join
}(%(py14)s)
}Rr   R4   R	   t   py16R
   R   R   R   t   py14R   R   s   assert %(py18)st   py18(
   R   R'   R(   R,   R)   R*   R+   R-   R.   R   (   RY   R4   R6   R8   RA   RB   t   @py_assert11t   @py_assert13t   @py_assert15R=   t   @py_format17t   @py_format19(    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_join_abs2ð   s    	    	     ÿ 
   c         C   s®  t  | ƒ } | j } t  | ƒ } | | k } | r˜t j d f | f d f | | f ƒ i t j | ƒ d 6d t j ƒ  k p‰ t j t  ƒ r› t j t  ƒ n d d 6d t j ƒ  k pÀ t j | ƒ rÒ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d	 6d t j ƒ  k pt j t  ƒ r)t j t  ƒ n d d
 6d t j ƒ  k pNt j | ƒ r`t j | ƒ n d d 6} d d i | d 6} t t j	 | ƒ ƒ ‚ n  t
 } } } } d  S(   Ns   ==so   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py10)s
{%(py10)s = %(py5)s(%(py8)s
{%(py8)s = %(py6)s.localpath
})
}Rr   R"   R	   R4   R   R   R   R   R   R   s   assert %(py12)sR   (   R"   Rk   R'   R(   R,   R)   R*   R+   R-   R.   R   (   RY   R4   R;   RB   R=   R7   R?   R@   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_str_gives_localpathó   s     	    ÿ 8   c         C   sA  | j  } d } | d | ƒ } | s± d d i d t j ƒ  k sO t j | ƒ r^ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6} t t j | ƒ ƒ ‚ n  d  } } } | j	 } d
 } | | ƒ } | j  } d } | d | ƒ } | s»d d i t j | ƒ d 6d t j ƒ  k s9t j | ƒ rHt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6t j | ƒ d 6t j | ƒ d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } } } | j	 } d } | | ƒ } | j  } d } | d | ƒ } | }
 |
 sØd d i t j | ƒ d 6d t j ƒ  k sVt j | ƒ ret j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6t j | ƒ d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } } } } } }
 | j	 d ƒ j
 } z'| j d ƒ | j	 } d } | | ƒ } | j  } d } | d | ƒ } | sd d i t j | ƒ d 6d t j ƒ  k s’t j | ƒ r¡t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6t j | ƒ d 6t j | ƒ d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } } } Wd  | j ƒ  Xd  S(   Ni   t	   versionedR   sQ   assert %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.check
}(versioned=%(py4)s)
}R4   R	   R
   R   R   RX   sŒ   assert %(py12)s
{%(py12)s = %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.check
}(versioned=%(py10)s)
}Rr   R   R   t   notexistings   assert not %(py12)s
{%(py12)s = %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.check
}(versioned=%(py10)s)
}R]   i    (   R˜   R)   R*   R'   R+   R,   R-   R.   R   R   Rk   R0   Rl   (   RY   R4   R6   R8   RA   RŽ   RB   R=   RÀ   R@   RÁ   Rw   RÈ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_versionedö   sT    	    u  	   	    ¥  	   	     ¥  	   	    ¥  c         C   sÑ  | j  } d } | d | ƒ } | s± d d i d t j ƒ  k sO t j | ƒ r^ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6} t t j | ƒ ƒ ‚ n  d  } } } | j	 j
 d
 ƒ } g  | j d „  ƒ D] } | j	 ^ qä } | | k } | sÇt j d | f d | | f ƒ i d t j ƒ  k sMt j | ƒ r\t j | ƒ n d d 6d t j ƒ  k s„t j | ƒ r“t j | ƒ n d d 6}	 d i |	 d 6}
 t t j |
 ƒ ƒ ‚ n  d  } d  S(   Ni   RÇ   R   sQ   assert %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.check
}(versioned=%(py4)s)
}R4   R	   R
   R   R   t   not_a_versioned_filec         S   s   |  j  d t ƒ S(   NRÇ   (   R˜   Rˆ   (   RŒ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   <lambda>  s    s   not ins   %(py0)s not in %(py2)sR   R¸   s   assert %(py4)s(   s   not in(   s   %(py0)s not in %(py2)ss   assert %(py4)s(   R˜   R)   R*   R'   R+   R,   R-   R.   R   Rk   Rƒ   R/   R(   (   RY   R4   R6   R8   RA   RŽ   R   RŒ   R¸   RF   RG   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_listdir_versioned  s     	    u  %  “   c         C   s~  | j  } d } | d | ƒ } | s± d d i d t j ƒ  k sO t j | ƒ r^ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6} t t j | ƒ ƒ ‚ n  d  } } } | j	 d
 ƒ } t
 j j | ƒ } | j ƒ  | j  } | ƒ  } | sd d i d t j ƒ  k s-t j | ƒ r<t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } | j  } | d t ƒ }	 |	 }
 |
 sbd d i d t j ƒ  k sÙt j | ƒ rèt j | ƒ n d d 6t j | ƒ d 6d t j ƒ  k s t j t ƒ r/t j t ƒ n d d 6t j |	 ƒ d 6} t t j | ƒ ƒ ‚ n  d  } }	 }
 | j ƒ  d  S(   Ni   RÇ   R   sQ   assert %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.check
}(versioned=%(py4)s)
}R4   R	   R
   R   R   s   nonversioned/somefiles@   assert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.check
}()
}t   somefilesU   assert not %(py5)s
{%(py5)s = %(py2)s
{%(py2)s = %(py0)s.check
}(versioned=%(py3)s)
}Rˆ   R   R   (   R˜   R)   R*   R'   R+   R,   R-   R.   R   R   R   R$   R‡   Rƒ   Rˆ   Rl   (   RY   R4   R6   R8   RA   RŽ   RÍ   t   nonwcRG   R7   R<   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_nonversioned_remove
  s0    	    u  
	 	  e  
	    œ  c         C   s¿  zª| j  d d ƒ | j } d } | | ƒ } d } | | k } | st j d | f d | | f ƒ i d t j ƒ  k sˆ t j | ƒ r— t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d	 6t j | ƒ d
 6} d i | d 6} t t j	 | ƒ ƒ ‚ n  d  } } } } } | j } g  | j ƒ  j D] }	 |	 j ^ q:}
 | |
 k } | st j d | f d | |
 f ƒ i d t j ƒ  k s£t j | ƒ r²t j | ƒ n d d 6t j | ƒ d 6t j |
 ƒ d 6} d i | d 6} t t j	 | ƒ ƒ ‚ n  d  } } }
 d } | j }
 |
 ƒ  } | | k } | sót j d | f d  | | f ƒ i t j | ƒ d 6d t j ƒ  k st j | ƒ rŸt j | ƒ n d d 6t j |
 ƒ d 6t j | ƒ d 6} d! i | d 6} t t j	 | ƒ ƒ ‚ n  d  } } }
 } | j ƒ  d } d } | | k } | s›t j d" | f d# | | f ƒ i t j | ƒ d 6t j | ƒ d	 6} d$ i | d
 6} t t j	 | ƒ ƒ ‚ n  d  } } } Wd  | j d ƒ Xd  S(%   Nt   gagat   thiss   ==sM   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.propget
}(%(py4)s)
} == %(py9)sR4   R	   R   R
   R   R   R   s   assert %(py11)sR   Rh   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)sR   s   assert %(py7)sR   sG   %(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.proplist
}()
}R   R   s   assert %(py9)ss   %(py1)s == %(py4)ss   assert %(py6)s(   s   ==(   sM   %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.propget
}(%(py4)s)
} == %(py9)ss   assert %(py11)s(   Rh   (   s0   %(py2)s
{%(py2)s = %(py0)s.basename
} in %(py5)ss   assert %(py7)s(   Rh   (   sG   %(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.proplist
}()
}s   assert %(py9)s(   s   ==(   s   %(py1)s == %(py4)ss   assert %(py6)s(   RŠ   t   propgetR'   R(   R)   R*   R+   R,   R-   R.   R   Rj   RP   RR   t   proplistt   propdel(   RY   R4   R6   R8   RA   R>   RB   RC   RD   Rm   R7   R9   R:   R   R<   R;   RG   RŽ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_properties  sL    	      œ   	 %   |    	 	   Œ       E   c         C   s\  | j  d ƒ } | j d d ƒ z(| j d d ƒ } d } | | } | j } g  | D] } | j ^ qT } | | k }	 |	 s0t j d |	 f d | | f ƒ i d t j ƒ  k s½ t j | ƒ rÌ t j	 | ƒ n d d	 6t j	 | ƒ d
 6t j	 | ƒ d 6t j	 | ƒ d 6}
 d i |
 d 6} t
 t j | ƒ ƒ ‚ n  d  } } } }	 } Wd  | j d ƒ Xd  S(   NRX   t   gugut   thatRg   i   Rh   s<   %(py5)s
{%(py5)s = (%(py0)s / %(py2)s).basename
} in %(py8)sR4   R	   Rr   R
   R   R   s   assert %(py10)sR   (   Rh   (   s<   %(py5)s
{%(py5)s = (%(py0)s / %(py2)s).basename
} in %(py8)ss   assert %(py10)s(   R   RŠ   RÓ   Rj   R'   R(   R)   R*   R+   R,   R-   R.   R   RÔ   (   RY   R4   RO   R   R6   R8   R7   Rm   RB   R<   R©   R?   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_proplist_recursive!  s     
 	    Œ   c         C   s  d } z÷ | j  d | ƒ | j d ƒ } | | k } | sö t j d | f d | | f ƒ i d t j ƒ  k s| t j | ƒ r‹ t j | ƒ n d d 6d t j ƒ  k s³ t j | ƒ rÂ t j | ƒ n d d 6} d i | d 6} t t j	 | ƒ ƒ ‚ n  d  } Wd  | j d ƒ Xd  S(   Nsq   
        vadm:posix : root root 0100755
        Properties on 'chroot/dns/var/bind/db.net.xots':
                RÐ   s   ==s   %(py0)s == %(py2)st	   backvalueR	   t   valueR
   R   s   assert %(py4)sR   (   s   ==(   s   %(py0)s == %(py2)ss   assert %(py4)s(   RŠ   RÒ   R'   R(   R)   R*   R+   R,   R-   R.   R   RÔ   (   RY   R4   RÚ   RÙ   R6   RF   RG   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_long_properties-  s      “   
c         C   s!  | j  d d d ƒ } zë| j } d } d } | d | d | ƒ } | så d d i d	 t j ƒ  k ss t j | ƒ r‚ t j | ƒ n d	 d
 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } } } | j
 d ƒ | j  ƒ  | j } | ƒ  } d } | | k } | sít j d | f d | | f ƒ i d	 t j ƒ  k szt j | ƒ r‰t j | ƒ n d	 d
 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6}	 d i |	 d 6}
 t t j |
 ƒ ƒ ‚ n  d  } } } } Wd  | j d ƒ j d d ƒ Xd  S(   Nt   at   bt   ci   t   existsRÇ   R   sa   assert %(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.check
}(exists=%(py4)s, versioned=%(py6)s)
}t   newpathR	   Rr   R
   R   R   R]   s   ==sC   %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.read
}()
} == %(py7)sR   s   assert %(py9)sR   t   force(   s   ==(   sC   %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.read
}()
} == %(py7)ss   assert %(py9)s(   Rƒ   R˜   R)   R*   R'   R+   R,   R-   R.   R   R0   Rb   R(   R   Rl   (   RY   R4   Rà   R6   R8   RA   RB   R©   R<   R:   RC   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_ensure;  s,    	     …  
	 	    Œ   c         C   s—  | j  j d ƒ } | j  j d ƒ } zQ| j } d } | | ƒ } | j } d } | d | ƒ }	 |	 s#d d i t j | ƒ d 6d t j ƒ  k s¡ t j	 | ƒ r° t j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6t j | ƒ d 6t j |	 ƒ d 6t j | ƒ d 6}
 t
 t j |
 ƒ ƒ ‚ n  d  } } } } } }	 | j } d } | | ƒ } | j } d } | d | ƒ }	 |	 s9d d i t j | ƒ d 6d t j ƒ  k s·t j	 | ƒ rÆt j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6t j | ƒ d 6t j |	 ƒ d 6t j | ƒ d 6}
 t
 t j |
 ƒ ƒ ‚ n  d  } } } } } }	 | j } d } | | ƒ } | j } d } | d | ƒ }	 |	 } | sVd d i t j | ƒ d 6d t j ƒ  k sÔt j	 | ƒ rãt j | ƒ n d d	 6t j | ƒ d
 6t j | ƒ d 6t j | ƒ d 6t j |	 ƒ d 6t j | ƒ d 6} t
 t j | ƒ ƒ ‚ n  d  } } } } } }	 } Wd  | j d d ƒ | j ƒ  Xd  S(   Nt   whatevert   testcreatedfilei    RÇ   R   sŒ   assert %(py12)s
{%(py12)s = %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.check
}(versioned=%(py10)s)
}Rr   R4   R	   R
   R   R   R   R   i   s   assert not %(py12)s
{%(py12)s = %(py8)s
{%(py8)s = %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.join
}(%(py4)s)
}.check
}(versioned=%(py10)s)
}Rg   (   Rk   Ri   Rƒ   R   R˜   R'   R,   R)   R*   R+   R-   R.   R   Rl   (   RY   R4   R   t   fR6   R8   RA   RB   R=   RÀ   R@   RÁ   Rw   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_not_versionedE  sH    	   	    ¥  	   	    ¥  	   	     ¥  "c         C   s¿  | } | j  d ƒ } | j d t ƒ t j j t d ƒ | j d ƒ | j d ƒ | j	 } | d t ƒ } | s$d d i d t
 j ƒ  k s› t j | ƒ rª t j | ƒ n d d	 6t j | ƒ d
 6d t
 j ƒ  k sâ t j t ƒ rñ t j t ƒ n d d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } | j ƒ  z’| j ƒ  j } t | ƒ } d }	 | |	 k } | sJt j d% | f d& | |	 f ƒ i d t
 j ƒ  k s°t j t ƒ r¿t j t ƒ n d d	 6d t
 j ƒ  k sçt j | ƒ röt j | ƒ n d d 6t j | ƒ d 6t j |	 ƒ d 6}
 d' i |
 d 6} t t j | ƒ ƒ ‚ n  d  } } }	 | d } | j } | j } | | k } | s;t j d( | f d) | | f ƒ i t j | ƒ d 6t j | ƒ d 6d t
 j ƒ  k sèt j | ƒ r÷t j | ƒ n d d 6t j | ƒ d 6} d* i | d 6} t t j | ƒ ƒ ‚ n  d  } } } } | d } | j } | ƒ  } | j } | j } | ƒ  } | j } | | k } | s”t j d+ | f d, | | f ƒ i d t
 j ƒ  k sát j | ƒ rðt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d- i | d! 6} t t j | ƒ ƒ ‚ n  d  } } } } } } } } t j j t d ƒ Wd  | j ƒ  X| j ƒ  j } g  } | | k } | s”t j d. | f d/ | | f ƒ i d t
 j ƒ  k sAt j | ƒ rPt j | ƒ n d d	 6t j | ƒ d 6} d0 i | d 6} t t j | ƒ ƒ ‚ n  d  } } t j j t d$ ƒ | j ƒ  d  S(1   NRÍ   R†   s   somefile.lock()R’   Rf   RÇ   R   sQ   assert %(py5)s
{%(py5)s = %(py2)s
{%(py2)s = %(py0)s.check
}(versioned=%(py3)s)
}R	   R
   Rˆ   R   R   i   s   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)sR   t   lockedR   R   s   assert %(py8)sRr   i    sN   %(py3)s
{%(py3)s = %(py1)s.basename
} == %(py7)s
{%(py7)s = %(py5)s.basename
}R   s   assert %(py9)sR   s¼   %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.dirpath
}()
}.basename
} == %(py15)s
{%(py15)s = %(py13)s
{%(py13)s = %(py11)s
{%(py11)s = %(py9)s.dirpath
}()
}.basename
}R   Rt   t   py15s   assert %(py17)st   py17s   %(py0)s == %(py3)ss   assert %(py5)ss   somefile,unlock()(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ss   assert %(py8)s(   s   ==(   sN   %(py3)s
{%(py3)s = %(py1)s.basename
} == %(py7)s
{%(py7)s = %(py5)s.basename
}s   assert %(py9)s(   s   ==(   s¼   %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s
{%(py3)s = %(py1)s.dirpath
}()
}.basename
} == %(py15)s
{%(py15)s = %(py13)s
{%(py13)s = %(py11)s
{%(py11)s = %(py9)s.dirpath
}()
}.basename
}s   assert %(py17)s(   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   R   Rƒ   Rˆ   R   Rf   t   raisest	   ExceptionR0   R2   R˜   R)   R*   R'   R+   R,   R-   R.   R   t   lockRP   Rç   R   R(   Rj   t   dirpatht   unlockRl   (   RY   R4   t   rootRÍ   R6   R7   R9   Rç   R;   RA   RŽ   R©   R   R<   R:   RC   Rv   t   @py_assert12t   @py_assert14R>   t   @py_format16t   @py_format18RE   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_lock_unlockP  sr    	   œ  

    ³   
 	 	   Œ   
 	 	 	 	 	 	   Ì   "   l   
c   
      C   sv  | j  d ƒ } | j d ƒ | j d d ƒ | j ƒ  } | j } t | ƒ } d } | | k } | sQt j d | f d | | f ƒ i d t j	 ƒ  k s§ t j
 t ƒ r¶ t j t ƒ n d d	 6d
 t j	 ƒ  k sÞ t j
 | ƒ rí t j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } | j } t | ƒ } d } | | k } | s|t j d | f d | | f ƒ i d t j	 ƒ  k sÒt j
 t ƒ rát j t ƒ n d d	 6d
 t j	 ƒ  k s	t j
 | ƒ rt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } | j d d d ƒ| j ƒ  } | j } t | ƒ } d } | | k } | sÆt j d | f d | | f ƒ i d t j	 ƒ  k st j
 t ƒ r+t j t ƒ n d d	 6d
 t j	 ƒ  k sSt j
 | ƒ rbt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } | j } t | ƒ } d } | | k } | sñt j d  | f d! | | f ƒ i d t j	 ƒ  k sGt j
 t ƒ rVt j t ƒ n d d	 6d
 t j	 ƒ  k s~t j
 | ƒ rt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d" i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } | j d ƒ | j ƒ  } | j } t | ƒ } d } | | k } | s5t j d# | f d$ | | f ƒ i d t j	 ƒ  k s‹t j
 t ƒ ršt j t ƒ n d d	 6d
 t j	 ƒ  k sÂt j
 | ƒ rÑt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d% i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } | j } t | ƒ } d } | | k } | s`t j d& | f d' | | f ƒ i d t j	 ƒ  k s¶t j
 t ƒ rÅt j t ƒ n d d	 6d
 t j	 ƒ  k sít j
 | ƒ rüt j | ƒ n d
 d 6t j | ƒ d 6t j | ƒ d 6t j | ƒ d 6} d( i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } } d  S()   NRW   t	   subsubdirR’   R”   i   s   ==sS   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.prop_modified
})
} == %(py8)sR   R	   RP   R   Rr   R   R   R   s   assert %(py10)sR   sK   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.added
})
} == %(py8)ss   non-recursive commitRg   i    s   recursive commit(   s   ==(   sS   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.prop_modified
})
} == %(py8)ss   assert %(py10)s(   s   ==(   sK   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.added
})
} == %(py8)ss   assert %(py10)s(   s   ==(   sS   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.prop_modified
})
} == %(py8)ss   assert %(py10)s(   s   ==(   sK   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.added
})
} == %(py8)ss   assert %(py10)s(   s   ==(   sS   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.prop_modified
})
} == %(py8)ss   assert %(py10)s(   s   ==(   sK   %(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.added
})
} == %(py8)ss   assert %(py10)s(   R   Ri   RŠ   RP   RR   R   R'   R(   R)   R*   R+   R,   R-   R.   R   RS   R2   (
   RY   R4   t   somedirRP   R;   R7   RB   R<   R©   R?   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_commit_nonrecursivei  s|    	     Ã   	     Ã   	     Ã   	     Ã   	     Ã   	     Ã   c         C   sÄ  | j  d ƒ j d t ƒ } | j d ƒ | j d ƒ } t | ƒ } | t k } | sXt j d | f d | t f ƒ i d t	 j
 ƒ  k s— t j t ƒ r¦ t j t ƒ n d d 6d	 t	 j
 ƒ  k sÎ t j | ƒ rÝ t j | ƒ n d	 d
 6t j | ƒ d 6d t	 j
 ƒ  k st j t ƒ r$t j t ƒ n d d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } | j  d ƒ j d t ƒ } | j d ƒ | j d ƒ }	 t |	 ƒ } | t k } | sºt j d | f d | t f ƒ i d t	 j
 ƒ  k sùt j t ƒ rt j t ƒ n d d 6d t	 j
 ƒ  k s0t j |	 ƒ r?t j |	 ƒ n d d
 6t j | ƒ d 6d t	 j
 ƒ  k swt j t ƒ r†t j t ƒ n d d 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } d }
 | |
 } |	 | k } | s²t j d | f d |	 | f ƒ i d t	 j
 ƒ  k s(t j |	 ƒ r7t j |	 ƒ n d d 6d	 t	 j
 ƒ  k s_t j | ƒ rnt j | ƒ n d	 d 6t j |
 ƒ d 6} d  i | d 6} t t j | ƒ ƒ ‚ n  d  } }
 } d  S(!   Ns   test.txtR†   Rf   t   testings   ==s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py5)st   typeR	   R   R   R   t   intR   R   s   assert %(py7)sR   s   another.txts   testing moret   rev2i   s   %(py0)s == (%(py2)s + %(py4)s)R
   R   (   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py5)ss   assert %(py7)s(   s   ==(   s0   %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py5)ss   assert %(py7)s(   s   ==(   s   %(py0)s == (%(py2)s + %(py4)s)s   assert %(py7)s(   R   Rƒ   Rˆ   R0   R2   Rù   Rú   R'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   t   testfileR   R;   R7   R9   R:   R{   Rû   R8   RA   R6   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_commit_return_value{  s8       Ú   
   Ú   
 
   £   (#   t   __name__t
   __module__R[   R`   Rc   Rn   Rq   Rx   t   pytestt   markt   xfailR   R„   R   R›   R¡   R£   R¦   Rª   R®   R¹   R¼   RÅ   RÆ   RÉ   RÌ   RÏ   RÕ   RØ   RÛ   Râ   Ræ   Rô   R÷   Rý   (    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyRN      s<   							
																			
			t   XTestWCSvnCommandPathSpecialc           B   s   e  Z d  Z RS(   s=   http://codespeak.net/svn/py.path/trunk/dist/py.path/test/data(   Rþ   Rÿ   t   rooturl(    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyR  ‹  s   c          C   sæ  d }  t  |  ƒ } d } | | k } | sß t j d | f d | | f ƒ i d t j ƒ  k sl t j t  ƒ r{ t j t  ƒ n d d 6t j |  ƒ d 6t j | ƒ d 6t j | ƒ d	 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  }  } } } d }  t  |  ƒ } d } | | k } | sÐt j d | f d | | f ƒ i d t j ƒ  k s]t j t  ƒ rlt j t  ƒ n d d 6t j |  ƒ d 6t j | ƒ d 6t j | ƒ d	 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  }  } } } d  S(   Ns,   2006-05-30 20:45:26 +0200 (Tue, 30 May 2006)iæ®|Ds   ==s0   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} == %(py7)sR   R	   R
   R   R   R   s   assert %(py9)sR   s,   2003-10-27 20:43:14 +0100 (Mon, 27 Oct 2003)ibƒ?(   s   ==(   s0   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} == %(py7)ss   assert %(py9)s(   s   ==(   s0   %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
} == %(py7)ss   assert %(py9)s(
   R   R'   R(   R)   R*   R+   R,   R-   R.   R   (   R6   R8   R<   RA   R:   RC   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_parse_wcinfotime˜  s$         Œ        Œ   t   TestInfoSvnWCCommandc           B   s   e  Z d  „  Z d „  Z RS(   c   
      C   s>  d } t  j j t ƒ j ƒ  j ƒ  } z t | ƒ } Wd  | j ƒ  X| j } d } | | k } | st j	 d | f d | | f ƒ i d t
 j ƒ  k s¥ t j | ƒ r´ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | sÜt j	 d | f d | | f ƒ i d t
 j ƒ  k syt j | ƒ rˆt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | s°t j	 d | f d | | f ƒ i d t
 j ƒ  k sMt j | ƒ r\t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | s„t j	 d | f d  | | f ƒ i d t
 j ƒ  k s!t j | ƒ r0t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d! i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | sXt j	 d" | f d# | | f ƒ i d t
 j ƒ  k sõt j | ƒ rt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d$ i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | s,t j	 d% | f d& | | f ƒ i d t
 j ƒ  k sÉt j | ƒ rØt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d' i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } d  S((   Nsa  
        Path: test_svnwc.py
        Name: test_svnwc.py
        URL: http://codespeak.net/svn/py/dist/py/path/svn/wccommand.py
        Repository UUID: fd0d7bf2-dfb6-0310-8d31-b7ecfe96aada
        Revision: 28137
        Node Kind: file
        Schedule: normal
        Last Changed Author: jan
        Last Changed Rev: 27939
        Last Changed Date: 2006-05-30 20:45:26 +0200 (Tue, 30 May 2006)
        Text Last Updated: 2006-06-01 00:42:53 +0200 (Thu, 01 Jun 2006)
        Properties Last Updated: 2006-05-23 11:54:59 +0200 (Tue, 23 May 2006)
        Checksum: 357e44880e5d80157cc5fbc3ce9822e3
        t   jans   ==s3   %(py2)s
{%(py2)s = %(py0)s.last_author
} == %(py5)sR3   R	   R
   R   R   s   assert %(py7)sR   R†   s,   %(py2)s
{%(py2)s = %(py0)s.kind
} == %(py5)sg  €¹+ÑAs-   %(py2)s
{%(py2)s = %(py0)s.mtime
} == %(py5)ss9   http://codespeak.net/svn/py/dist/py/path/svn/wccommand.pys+   %(py2)s
{%(py2)s = %(py0)s.url
} == %(py5)sg ôTCs,   %(py2)s
{%(py2)s = %(py0)s.time
} == %(py5)siém  s+   %(py2)s
{%(py2)s = %(py0)s.rev
} == %(py5)s(   s   ==(   s3   %(py2)s
{%(py2)s = %(py0)s.last_author
} == %(py5)ss   assert %(py7)s(   s   ==(   s,   %(py2)s
{%(py2)s = %(py0)s.kind
} == %(py5)ss   assert %(py7)s(   s   ==(   s-   %(py2)s
{%(py2)s = %(py0)s.mtime
} == %(py5)ss   assert %(py7)s(   s   ==(   s+   %(py2)s
{%(py2)s = %(py0)s.url
} == %(py5)ss   assert %(py7)s(   s   ==(   s,   %(py2)s
{%(py2)s = %(py0)s.time
} == %(py5)ss   assert %(py7)s(   s   ==(   s+   %(py2)s
{%(py2)s = %(py0)s.rev
} == %(py5)ss   assert %(py7)s(   R   R$   R‡   t   __file__Rí   t   chdirR    t   last_authorR'   R(   R)   R*   R+   R,   R-   R.   R   t   kindt   mtimeR—   t   timeR   (
   RY   R4   t   outputR$   R3   R6   R7   R8   R9   R:   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_svn_1_2   sj    	    |   	    |   	    |   	    |   	    |   	    |   c   
      C   s>  d } t  j j t ƒ j ƒ  j ƒ  } z t | ƒ } Wd  | j ƒ  X| j } d } | | k } | st j	 d | f d | | f ƒ i d t
 j ƒ  k s¥ t j | ƒ r´ t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | sÜt j	 d | f d | | f ƒ i d t
 j ƒ  k syt j | ƒ rˆt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | s°t j	 d | f d | | f ƒ i d t
 j ƒ  k sMt j | ƒ r\t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | s„t j	 d | f d  | | f ƒ i d t
 j ƒ  k s!t j | ƒ r0t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d! i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | sXt j	 d" | f d# | | f ƒ i d t
 j ƒ  k sõt j | ƒ rt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d$ i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } | j } d } | | k } | s,t j	 d% | f d& | | f ƒ i d t
 j ƒ  k sÉt j | ƒ rØt j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} d' i | d 6}	 t t j |	 ƒ ƒ ‚ n  d  } } } d  S((   Ns“  
        Path: test_svnwc.py
        Name: test_svnwc.py
        URL: http://codespeak.net/svn/py/dist/py/path/svn/wccommand.py
        Repository Root: http://codespeak.net/svn
        Repository UUID: fd0d7bf2-dfb6-0310-8d31-b7ecfe96aada
        Revision: 28124
        Node Kind: file
        Schedule: normal
        Last Changed Author: jan
        Last Changed Rev: 27939
        Last Changed Date: 2006-05-30 20:45:26 +0200 (Tue, 30 May 2006)
        Text Last Updated: 2006-06-02 23:46:11 +0200 (Fri, 02 Jun 2006)
        Properties Last Updated: 2006-06-02 23:45:28 +0200 (Fri, 02 Jun 2006)
        Checksum: 357e44880e5d80157cc5fbc3ce9822e3
        R  s   ==s3   %(py2)s
{%(py2)s = %(py0)s.last_author
} == %(py5)sR3   R	   R
   R   R   s   assert %(py7)sR   R†   s,   %(py2)s
{%(py2)s = %(py0)s.kind
} == %(py5)sg  €¹+ÑAs-   %(py2)s
{%(py2)s = %(py0)s.mtime
} == %(py5)ss9   http://codespeak.net/svn/py/dist/py/path/svn/wccommand.pys+   %(py2)s
{%(py2)s = %(py0)s.url
} == %(py5)siÜm  s+   %(py2)s
{%(py2)s = %(py0)s.rev
} == %(py5)sg ôTCs,   %(py2)s
{%(py2)s = %(py0)s.time
} == %(py5)s(   s   ==(   s3   %(py2)s
{%(py2)s = %(py0)s.last_author
} == %(py5)ss   assert %(py7)s(   s   ==(   s,   %(py2)s
{%(py2)s = %(py0)s.kind
} == %(py5)ss   assert %(py7)s(   s   ==(   s-   %(py2)s
{%(py2)s = %(py0)s.mtime
} == %(py5)ss   assert %(py7)s(   s   ==(   s+   %(py2)s
{%(py2)s = %(py0)s.url
} == %(py5)ss   assert %(py7)s(   s   ==(   s+   %(py2)s
{%(py2)s = %(py0)s.rev
} == %(py5)ss   assert %(py7)s(   s   ==(   s,   %(py2)s
{%(py2)s = %(py0)s.time
} == %(py5)ss   assert %(py7)s(   R   R$   R‡   R  Rí   R	  R    R
  R'   R(   R)   R*   R+   R,   R-   R.   R   R  R  R—   R   R  (
   RY   R4   R  R$   R3   R6   R7   R8   R9   R:   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_svn_1_3½  sj    	    |   	    |   	    |   	    |   	    |   	    |   (   Rþ   Rÿ   R  R  (    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyR  ž  s   	c           C   s   t  j j t d ƒ d  S(   Ns   py.path.svnwc('/tmp/@@@:')(   R   Rf   Rê   t
   ValueError(    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_characters_atÛ  s    c           C   s   t  j j d ƒ d  S(   Ns
   /tmp/test~(   R   R$   R   (    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_characters_tildeÞ  s    t   TestRepoc           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sç   | j  d ƒ } | | k } | sÝ t j d | f d | | f ƒ i d t j ƒ  k sc t j | ƒ rr t j | ƒ n d d 6d t j ƒ  k sš t j | ƒ r© t j | ƒ n d d 6} d i | d
 6} t t j | ƒ ƒ ‚ n  d  } d  S(   NR   s   ==s   %(py0)s == %(py2)sR4   R	   R—   R
   R   s   assert %(py4)sR   (   s   ==(   s   %(py0)s == %(py2)ss   assert %(py4)s(
   R   R'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   R—   R6   RF   RG   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_trailing_slash_is_strippedã  s      “   c         C   s£   | j  } | ƒ  } | s• d d i d t j ƒ  k sC t j | ƒ rR t j | ƒ n d d 6t j | ƒ d 6t j | ƒ d 6} t t j | ƒ ƒ ‚ n  d  } } d  S(   NR   s@   assert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.check
}()
}R4   R	   R
   R   (	   R˜   R)   R*   R'   R+   R,   R-   R.   R   (   RY   R4   R6   R8   RG   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_exists_svn_rootì  s    	 	  e  c         C   sì  t  j ƒ  } | j | j d ƒ | j | j d ƒ j ƒ \ } } d } | | k } | sí t j d | f d | | f ƒ i d t j	 ƒ  k sš t j
 | ƒ r© t j | ƒ n d d 6t j | ƒ d 6} d i | d
 6} t t j | ƒ ƒ ‚ n  d  } } | j }	 | |	 k } | sÞt j d | f d | |	 f ƒ i d t j	 ƒ  k sTt j
 | ƒ rct j | ƒ n d d 6d t j	 ƒ  k s‹t j
 | ƒ ršt j | ƒ n d d 6t j |	 ƒ d 6}
 d i |
 d 6} t t j | ƒ ƒ ‚ n  d  } }	 d  S(   Ni*   Rf   s   ==s   %(py0)s == %(py3)sR   R	   R   R   s   assert %(py5)sR   s/   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.strpath
}R—   R4   R
   R   s   assert %(py6)sR   (   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   s   ==(   s/   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.strpath
}s   assert %(py6)s(   t	   svncommont	   RepoCachet   putt   strpatht   getR   R'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   t	   repocacheR—   R   R;   R6   RE   R9   R8   RG   RŽ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_repocache_simple  s"    !   l   
	   £   c         C   sï  t  j ƒ  } d | _ | j | j | j ƒ | j | j ƒ \ } } d } | | k } | sð t j d | f d | | f ƒ i d t	 j
 ƒ  k s t j | ƒ r¬ t j | ƒ n d d 6t j | ƒ d 6} d i | d
 6} t t j | ƒ ƒ ‚ n  d  } } | j }	 | |	 k } | sát j d | f d | |	 f ƒ i d t	 j
 ƒ  k sWt j | ƒ rft j | ƒ n d d 6d t	 j
 ƒ  k sŽt j | ƒ rt j | ƒ n d d 6t j |	 ƒ d 6}
 d i |
 d 6} t t j | ƒ ƒ ‚ n  d  } }	 d  S(   Ni    iÿÿÿÿs   ==s   %(py0)s == %(py3)sR   R	   R   R   s   assert %(py5)sR   s/   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.strpath
}R—   R4   R
   R   s   assert %(py6)sR   (   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   s   ==(   s/   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.strpath
}s   assert %(py6)s(   R  R  t   timeoutR  R  R   R  R'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   R  R—   R   R;   R6   RE   R9   R8   RG   RŽ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_repocache_notimeout  s$    	   l   
	   £   c         C   sò  t  j ƒ  } | j | j d d d ƒ| j | j d ƒ j ƒ \ } } d } | | k } | só t j d | f d | | f ƒ i d t j	 ƒ  k s  t j
 | ƒ r¯ t j | ƒ n d d	 6t j | ƒ d
 6} d i | d 6} t t j | ƒ ƒ ‚ n  d  } } | j }	 | |	 k } | sät j d | f d | |	 f ƒ i d t j	 ƒ  k sZt j
 | ƒ rit j | ƒ n d d	 6d t j	 ƒ  k s‘t j
 | ƒ r t j | ƒ n d d 6t j |	 ƒ d 6}
 d i |
 d 6} t t j | ƒ ƒ ‚ n  d  } }	 d  S(   Ni*   t	   timestampi    Rf   iÿÿÿÿs   ==s   %(py0)s == %(py3)sR   R	   R   R   s   assert %(py5)sR   s/   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.strpath
}R—   R4   R
   R   s   assert %(py6)sR   (   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   s   ==(   s/   %(py0)s == %(py4)s
{%(py4)s = %(py2)s.strpath
}s   assert %(py6)s(   R  R  R  R  R  R   R'   R(   R)   R*   R+   R,   R-   R.   R   (   RY   R4   R  R—   R   R;   R6   RE   R9   R8   RG   RŽ   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   test_repocache_outdated  s"    !   l   
	   £   c         C   sã  t  j j } zÆt j ƒ  t j d d ƒ } t j j	 | j
 ƒ \ } } d } | | k } | só t j d | f d | | f ƒ i d t j ƒ  k s  t j | ƒ r¯ t j | ƒ n d d 6t j | ƒ d 6} d i | d
 6} t t j | ƒ ƒ ‚ n  d } } | t k } | sËt j d | f d | t f ƒ i d t j ƒ  k sQt j | ƒ r`t j | ƒ n d d 6d t j ƒ  k sˆt j t ƒ r—t j t ƒ n d d 6}	 d i |	 d 6}
 t t j |
 ƒ ƒ ‚ n  d } Wd | t _ Xd S(   s.    this test runs so slow it's usually disabled R   iÿÿÿÿi    s   >=s   %(py0)s >= %(py3)sR	   R   R   s   assert %(py5)sR   s   ==s   %(py0)s == %(py2)sR—   t
   svnrepourlR
   s   assert %(py4)sR   N(   s   >=(   s   %(py0)s >= %(py3)ss   assert %(py5)s(   s   ==(   s   %(py0)s == %(py2)ss   assert %(py4)s(   R  t   repositoriest   repost
   _repocachet   clearR4   t   newt   cacheR  R  R  R'   R(   R)   R*   R+   R,   R-   R.   R   R"  (   RY   t   oldRï   R—   R   R;   R6   RE   R9   RF   RG   (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   _test_getreporev  s&    
   l   
  “   
(   Rþ   Rÿ   R  R  R  R  R!  R*  (    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyR  â  s   						(   t   __builtin__R)   t   _pytest.assertion.rewritet	   assertiont   rewriteR'   R   t   osR    R   t   py._path.svnwcR    R   R   t   py._pathR   R  t   svntestbaseR   RH   RM   RN   R  R  R  R  R  R  (    (    (    s=   /home/ronny/Projects/pytest-dev/py/testing/path/test_svnwc.pyt   <module>   s"     		ÿ m	=		