
|‰ãWœ  ã               @   sR   d  d l  Z  d  d l Z d  d l m Z d  d l m Z Gd d „  d e ƒ Z d S)é    N)Úsvnwc)ÚCommonFSTestsc               @   s@   e  Z d  Z d d „  Z d d „  Z d d „  Z d d „  Z d	 S)
ÚCommonSvnTestsc             C   s4   | j  d ƒ } | j d ƒ } | d k s0 t ‚ d  S)NÚ
samplefilezsvn:eol-styleÚnative)ÚjoinÚpropgetÚAssertionError)ÚselfÚpath1ÚurlÚvalue© r   ú>/home/ronny/Projects/pytest-dev/py/testing/path/svntestbase.pyÚtest_propget   s    zCommonSvnTests.test_propgetc             C   s5   | j  d ƒ } | j ƒ  } | d d k s1 t ‚ d  S)Nr   zsvn:eol-styler   )r   Úproplistr	   )r
   r   r   Úresr   r   r   Útest_proplist   s    zCommonSvnTests.test_proplistc             C   sI   | j  d ƒ } | j ƒ  } | j t d ƒ k r? | j d k sE t ‚ d  S)Nr   r   )r   ÚinfoÚsizeÚlenÚcreated_revr	   )r
   r   r   r   r   r   r   Ú	test_info   s    zCommonSvnTests.test_infoc             C   so   | j  d ƒ } | j ƒ  } xM | D]E } | j d k s= t ‚ t | d ƒ sR t ‚ t | d ƒ s" t ‚ q" Wd  S)Nr   é   ÚauthorÚdate)r   ÚlogÚrevr	   Úhasattr)r
   r   r   Z
logentriesÚlogentryr   r   r   Útest_log_simple   s    zCommonSvnTests.test_log_simpleN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r    r   r   r   r   r      s   r   )ÚsysÚpyZpy._pathr   Ú	svncommonÚcommonr   r   r   r   r   r   Ú<module>   s   