Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pbr/tests/__pycache__/test_files.cpython-39.pyc
Ðазад
a i�hY � @ sJ d dl mZ d dlZd dlZd dlmZ d dlmZ G dd� dej�Z dS )� )�print_functionN��files)�basec sT e Zd Z� fdd�Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z � ZS )�FilesConfigTestc sT t t| ��� t�dddg�}| �|� tj�|j d�}tj�|j ddd�}tj�|j d�}tj�|j d d �}tj�|d�}tj�|j dd�}t� |� t� |� t� |� t� |� t� |� ttj�|d �d��}|�d� W d � n1 s�0 Y ttj�|d�d��}|�d� W d � n1 �s40 Y ttj�|d�d��} | �d� W d � n1 �st0 Y ttj�|d�d��}|�d� W d � n1 �s�0 Y ttj�|d�d��} | �d� W d � n1 �s�0 Y ttj�|d�d��}|�d� W d � n1 �s40 Y | �t � |j �� d S )N�fake_package)zfake_module.py� )zother_fake_module.pyr �etcZansiblez kolla-ansible�testzdir with spacezmulti spacezmore spaces�sub� subpackageZfoo�wzFoo Data�barzBar DataZbazzBaz Dataz__init__.pyz# emptyz file with spc)�superr �setUp�fixturesZ PythonPackageZ useFixture�os�path�joinr �makedirs�open�writeZDiveDir)�selfZpkg_fixtureZpkg_etcZpkg_ansibleZdir_spcsZdir_subdir_spcZpkg_subr Zfoo_fileZbaz_fileZspc_file�file_�� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pbr/tests/test_files.pyr sL �� ��� (*****zFilesConfigTest.setUpc C s4 t t � d�}t�|d��� | �d|d d � d S )Nr r r r �packages��dictr ZFilesConfig�runZassertIn�r �configr r r �test_implicit_auto_packageB s �z*FilesConfigTest.test_implicit_auto_packagec C s8 t t dd�d�}t�|d��� | �d|d d � d S )Nr )r r r r r r r"