HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3/dist-packages/pbr/tests/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3/dist-packages/pbr/tests/__pycache__/test_files.cpython-311.pyc
�

㦧bY��`�ddlmZddlZddlZddlmZddlmZGd�dej��Z	dS)�)�print_functionN��files)�basec�H��eZdZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
�xZS)	�FilesConfigTestc����tt|�����tjdddg��}|�|��tj�|j	d��}tj�|j	ddd��}tj�|j	d��}tj�|j	d	d
��}tj�|d��}tj�|j	dd��}t
j
|��t
j
|��t
j
|��t
j
|��t
j
|��ttj�|d
��d��5}|�d��ddd��n#1swxYwYttj�|d��d��5}|�d��ddd��n#1swxYwYttj�|d��d��5}	|	�d��ddd��n#1swxYwYttj�|d��d��5}|�d��ddd��n#1swxYwYttj�|d��d��5}
|
�d��ddd��n#1swxYwYttj�|d��d��5}|�d��ddd��n#1swxYwY|�tj
|j	����dS)N�fake_package)zfake_module.py�)zother_fake_module.pyr�etc�ansiblez
kolla-ansible�testzdir with spacezmulti spacezmore spaces�sub�
subpackage�foo�wzFoo Data�barzBar Data�bazzBaz Dataz__init__.pyz# emptyz
file with spc)�superr�setUp�fixtures�
PythonPackage�
useFixture�os�path�joinr�makedirs�open�write�DiveDir)
�self�pkg_fixture�pkg_etc�pkg_ansible�dir_spcs�dir_subdir_spc�pkg_subr�foo_file�baz_file�spc_file�file_�	__class__s
            ��6/usr/lib/python3/dist-packages/pbr/tests/test_files.pyrzFilesConfigTest.setUps����
�o�t�$�$�*�*�,�,�,��,��'�-�����
	
����$�$�$��'�,�,�{�/��7�7���g�l�l�;�#3�Y�#2�F�<�<���7�<�<�� 0�2B�C�C������k�&6�
�&3�5�5���'�,�,�w��.�.���W�\�\���n�l�<�<�
�
��G����
��J����
��K� � � �
��H����
��N�#�#�#�
�"�'�,�,�w��.�.��
4�
4�	'���N�N�:�&�&�&�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'����	'�	'�	'�	'�
�"�'�,�,�w��.�.��
4�
4�	'���N�N�:�&�&�&�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'����	'�	'�	'�	'�
�"�'�,�,�{�E�2�2�C�
8�
8�	'�H��N�N�:�&�&�&�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'����	'�	'�	'�	'�
�"�'�,�,�z�=�9�9�3�
?�
?�	&�8��N�N�9�%�%�%�	&�	&�	&�	&�	&�	&�	&�	&�	&�	&�	&����	&�	&�	&�	&�
�"�'�,�,�x��9�9�3�
?�
?�	&�8��N�N�9�%�%�%�	&�	&�	&�	&�	&�	&�	&�	&�	&�	&�	&����	&�	&�	&�	&�
�"�'�,�,�~��?�?��
E�
E�	#���K�K�	�"�"�"�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#�	#����	#�	#�	#�	#�	
�����[�%5�6�6�7�7�7�7�7sl�G&�&G*�-G*�I�I�I�:J�J �#J �K7�7K;�>K;�0M�M�M�N-�-N1�4N1c���tt�����}tj|d�����|�d|dd��dS)Nrr
rr�packages��dictr�FilesConfig�run�assertIn�r!�configs  r-�test_implicit_auto_packagez*FilesConfigTest.test_implicit_auto_packageBsg������
�
�
��	��&�.�1�1�5�5�7�7�7��
�
�l�F�7�O�J�$?�@�@�@�@�@rc���ttd������}tj|d�����|�d|dd��dS)Nr
)r/rrrr/r0r5s  r-�test_auto_packagez!FilesConfigTest.test_auto_packageJso����'����
�
�
��
	��&�.�1�1�5�5�7�7�7��
�
�l�F�7�O�J�$?�@�@�@�@�@rc���ttd������}tj|d�����|�d|dd��dS)Nz
  etc/pbr = etc/*��
data_filesrr
z9
'etc/pbr/' = 
 'etc/foo'
'etc/pbr/sub' = 
 'etc/sub/bar'rr<r0r5s  r-�test_data_files_globbingz(FilesConfigTest.test_data_files_globbingSs{����0����
�
�
��
	��&�.�1�1�5�5�7�7�7��
�
�K��7�O�L�)�	+�	+�	+�	+�	+rc���ttd������}tj|d�����|�d|dd��dS)Nz'
  'i like spaces' = 'dir with space'/*r;rr
z4
'i like spaces/' = 
 'dir with space/file with spc'rr<r0r5s  r-�test_data_files_with_spacesz+FilesConfigTest.test_data_files_with_spaces^s{����E����
�
�
��
	��&�.�1�1�5�5�7�7�7��
�
�D��7�O�L�)�	+�	+�	+�	+�	+rc���d}d}tt|������}tj|d�����|�||dd��dS)Nz5
 'one space/two space' = 'multi space/more spaces'/*�C
'one space/two space/' = 
 'multi space/more spaces/file with spc'r;rr
rr<r0�r!r<�expectedr6s    r-�*test_data_files_with_spaces_subdirectoriesz:FilesConfigTest.test_data_files_with_spaces_subdirectoriesis���M�
�
9�	���%����
�
�
��
	��&�.�1�1�5�5�7�7�7��
�
�h��w��� =�>�>�>�>�>rc���d}d}tt|������}tj|d�����|�||dd��dS)Nz8
'one space'/'two space' = 'multi space'/'more spaces'/*rAr;rr
rr<r0rBs    r-�-test_data_files_with_spaces_quoted_componentsz=FilesConfigTest.test_data_files_with_spaces_quoted_componentsws���
H�	�A����%����
�
�
��
	��&�.�1�1�5�5�7�7�7��
�
�h��w��� =�>�>�>�>�>rc���ttd������}tj|d�����|�d|dd��dS)Nz
  share/ansible = ansible/*r;rr
z}
'share/ansible/' = 
'share/ansible/kolla-ansible' = 
'share/ansible/kolla-ansible/test' = 
 'ansible/kolla-ansible/test/baz'rr<r0r5s  r-�8test_data_files_globbing_source_prefix_in_directory_namezHFilesConfigTest.test_data_files_globbing_source_prefix_in_directory_name�s�����:����
�
�
��
	��&�.�1�1�5�5�7�7�7��
�
�
2�
�7�O�L�)�	+�	+�	+�	+�	+r)�__name__�
__module__�__qualname__rr7r9r=r?rDrFrH�
__classcell__)r,s@r-rrs��������$8�$8�$8�$8�$8�LA�A�A�A�A�A�	+�	+�	+�	+�	+�	+�?�?�?�
?�
?�
?�+�+�+�+�+�+�+rr)
�
__future__rrr�	pbr.hooksr�	pbr.testsr�BaseTestCaser�rr-�<module>rRs��� &�%�%�%�%�%�	�	�	�	�����������������z+�z+�z+�z+�z+�d�'�z+�z+�z+�z+�z+r