HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pbr/tests/__pycache__/test_commands.cpython-38.pyc
U

jP�^h�@s.ddlmZddlmZGdd�dej�ZdS)�)�content)�basec@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestCommandscCsP|�d�\}}}|�dt�|��|�dt�|��|�d|�|�d|�dS)z�Test custom build_py command.

        Test that a custom subclass of the build_py command runs when listed in
        the commands [global] option, rather than the normal build command.
        Zbuild_py�stdout�stderrz Running custom build_py command.rN�Z	run_setupZ	addDetailrZtext_contentZassertIn�assertEqual��selfrr�return_code�r�9/usr/lib/python3/dist-packages/pbr/tests/test_commands.py�test_custom_build_py_command/s
z)TestCommands.test_custom_build_py_commandcCsP|�d�\}}}|�dt�|��|�dt�|��|�d|�|�d|�dS)z Test custom deb_version command.Zdeb_versionrrzExtracting deb versionrNrr	rrr
�"test_custom_deb_version_py_command<s
z/TestCommands.test_custom_deb_version_py_commandcCsP|�d�\}}}|�dt�|��|�dt�|��|�d|�|�d|�dS)z Test custom rpm_version command.Zrpm_versionrrzExtracting rpm versionrNrr	rrr
�"test_custom_rpm_version_py_commandDs
z/TestCommands.test_custom_rpm_version_py_commandcCsh|�d�\}}}|�d|�g}|�d�D]}|�|�d�d���q*t|dd��}|�||�dS)z?Test that freeze output is sorted in a case-insensitive manner.Zfreezer�
z==N)Zrun_pbrr�split�append�lower�sorted)r
rrrZpkgs�lZ	pkgs_sortrrr
�test_freeze_commandLsz TestCommands.test_freeze_commandN)�__name__�
__module__�__qualname__rrrrrrrr
r.s
rN)Z	testtoolsrZ	pbr.testsrZBaseTestCaserrrrr
�<module>)s