a
    ze                     @   sd   d Z ddlZddlZddlmZ ddlmZmZ ddlZe  G dd dej	Z
edkr`e  dS )z7Tests for the lll script in the Tools/script directory.    N)support)skip_if_missingimport_toolc                   @   s"   e Zd Zdd Zejdd ZdS )lllTestsc                 C   s   t d| _d S )Nlll)r   r   )self r   ./usr/lib/python3.9/test/test_tools/test_lll.pysetUp   s    zlllTests.setUpc           	      C   s,  t  }t  }tj|d}tj|d}||f||ffD ],\}}t|d  t|tj|d qBt	  }| j
||g W d    n1 s0    Y  tjdkrdnd}| | | d| | d	| d| | d

 W d    n1 s0    Y  W d    n1 s0    Y  d S )NZfoo1Zfoo2wsymlinkntz\\?\ z:
symlink -> z


)tempfileTemporaryDirectoryospathjoinopencloser   r   Zcaptured_stdoutr   mainnameZassertEqualgetvalue)	r   Zdir1Zdir2Zfn1Zfn2fndiroutputprefixr   r   r	   test_lll_multiple_dirs   s2    
.
zlllTests.test_lll_multiple_dirsN)__name__
__module____qualname__r
   r   Zskip_unless_symlinkr   r   r   r   r	   r      s   r   __main__)__doc__r   r   testr   Ztest.test_toolsr   r   ZunittestZTestCaser   r   r   r   r   r   r	   <module>   s   