← Back
Editing: test_hooks.cpython-311.pyc
� 㦧b� � �p � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ G d� dej � � Z dS ) � N)�matchers)� skipUnless)� testr_command)�base)�utilc �X � � e Zd Z� fd�Zd� Z eej d� � d� � � Z� xZ S )� TestHooksc �$ �� t t | � � � � � t j t j � | j d� � � � 5 }|� ddd� � d d d � � d S # 1 swxY w Y d S )Nz setup.cfg�globalzsetup-hookszQpbr_testpackage._setup_hooks.test_hook_1 pbr_testpackage._setup_hooks.test_hook_2) �superr �setUpr �open_config�os�path�join�package_dir�set)�self�cfg� __class__s ��6/usr/lib/python3/dist-packages/pbr/tests/test_hooks.pyr zTestHooks.setUp4 s� �� � �i����$�$�&�&�&� � �����T�-�{�;�;�=� =� @�@C��G�G�H�m�?� @� @� @� @� @� @� @� @� @� @� @� @� @� @� @���� @� @� @� @� @� @s � B�B �B c �T � | � d� � \ }}}d|v sJ �|dk sJ �dS )z�Test setup_hooks. Test that setup_hooks listed in the [global] section of setup.cfg are executed in order. �egg_infoztest_hook_1 test_hook_2r N)� run_setup�r �stdout�_�return_codes r �test_global_setup_hooksz!TestHooks.test_global_setup_hooks<