o
    LK&h 	  ã                   @   sV   d Z ddlZddlZddlmZ ddlmZ ddlZej 	d¡G dd„ dej
ƒƒZdS )z)Tests for distutils.command.install_data.é    N)Úinstall_data)ÚsupportÚsave_envc                   @   s   e Zd Zdd„ ZdS )ÚTestInstallDatac                 C   s°  |   ¡ \}}t|ƒ}tj |d¡ |_}tj |d¡}|  |d¡ tj |d¡}tj |d¡}|  |d¡ t |¡d }|  |d¡ |||gf|g|_	| 
¡ |||gf|gksYJ ‚| ¡  | ¡  t| ¡ ƒdkskJ ‚tj |¡d }	tj tj ||	¡¡s€J ‚tj |¡d }
tj tj ||
¡¡s•J ‚tj |¡d }tj tj ||¡¡sªJ ‚g |_d	|_| ¡  | ¡  t| ¡ ƒdksÂJ ‚tj tj ||	¡¡sÏJ ‚tj tj ||
¡¡sÜJ ‚tj tj ||¡¡séJ ‚g |_tj |d
¡|_tj |d¡}tj |jd¡}|  |d¡ |||gf|d|gf|g fg|_	| ¡  | ¡  t| ¡ ƒdks,J ‚tj tj ||	¡¡s:J ‚tj tj ||
¡¡sHJ ‚tj tj ||¡¡sVJ ‚d S )NÚinstÚoneÚxxxÚinst2ÚtwoÚthreeé   éÿÿÿÿTÚrootÚinst5ÚfourÚxxé   )Úcreate_distr   ÚosÚpathÚjoinÚinstall_dirÚ
write_fileÚpathlibÚPathÚ
data_filesÚ
get_inputsÚensure_finalizedÚrunÚlenÚget_outputsÚsplitÚexistsÚoutfilesÚwarn_dirr   )ÚselfÚpkg_dirÚdistÚcmdr   r   r	   r
   r   ÚrthreeÚrtwoÚroner   r   © r,   ú`/var/www/html/venv/lib/python3.10/site-packages/setuptools/_distutils/tests/test_install_data.pyÚtest_simple_run   sR     zTestInstallData.test_simple_runN)Ú__name__Ú
__module__Ú__qualname__r.   r,   r,   r,   r-   r      s    r   )Ú__doc__r   r   Údistutils.command.install_datar   Údistutils.testsr   ÚpytestÚmarkÚusefixturesÚTempdirManagerr   r,   r,   r,   r-   Ú<module>   s    


ÿ