EVOLUTION-NINJA
Edit File: test_install_data.cpython-38.pyc
U �i�_ � @ st d Z ddlZddlZddlmZ ddlmZ ddlmZ G dd� dej ej ejej�Z dd � Zed krpee� � dS )z)Tests for distutils.command.install_data.� N)�install_data)�support)�run_unittestc @ s e Zd Zdd� ZdS )�InstallDataTestCasec C sF | � � \}}t|�}tj�|d� |_}tj�|d�}| �|d� tj�|d�}tj�|d�}| �|d� |||gfg|_| �|� � |||gfg� |� � |�� | �t|� � �d� tj�|�d }| �tj�tj�||��� tj�|�d } | �tj�tj�|| ��� g |_d|_|� � |�� | �t|� � �d� | �tj�tj�||��� | �tj�tj�|| ��� g |_tj�|d �|_tj�|jd �} tj�|d�}tj�|jd�}| �|d � |||gfd |gf|g fg|_|� � |�� | �t|� � �d� | �tj�tj�||��� | �tj�tj�|| ��� d S )N�inst�oneZxxx�inst2�two� ���� �root�inst3�inst4�threeZxx� )Zcreate_distr �os�path�joinZinstall_dirZ write_fileZ data_filesZassertEqualZ get_inputsZensure_finalized�run�lenZget_outputs�splitZ assertTrue�existsZoutfilesZwarn_dirr ) �selfZpkg_dir�dist�cmdr r r r ZrtwoZroner r r � r �@/opt/python38/lib/python3.8/distutils/tests/test_install_data.py�test_simple_run sN �z#InstallDataTestCase.test_simple_runN)�__name__� __module__�__qualname__r r r r r r s r c C s t �t�S )N)�unittestZ makeSuiter r r r r � test_suiteG s r# �__main__)�__doc__r r"