File: D:/Python311/Lib/test/test_tools/__pycache__/test_reindent.cpython-311.pyc
�
��Vc � � � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z e � � G d� dej
� � Zedk r ej
� � dS dS ) z�Tests for scripts in the Tools directory.
This file contains regression tests for some of the scripts found in the
Tools directory of a Python checkout or tarball, such as reindent.py.
� N)�assert_python_ok)�findfile)�
scriptsdir�skip_if_missingc �V � e Zd Zej � ed� � Zd� Zd� Z d� Z
dS )�
ReindentTestszreindent.pyc �. � t | j � � d S )N)r �script)�selfs �1D:\Python311\Lib\test\test_tools\test_reindent.py�test_noargszReindentTests.test_noargs s � ����%�%�%�%�%� c � � t | j d� � \ }}}| � |d� � | � |d� � d S )Nz-hr )r r
�assertEqual�
assertGreater)r �rc�out�errs r � test_helpzReindentTests.test_help sK � �'���T�:�:���C������c�"�"�"����3��$�$�$�$�$r c � � t d� � }t | j d|� � \ }}}| � |d� � | � |d� � d S )Nz
bad_coding.pyz-rr )r r r
r �assertNotEqual)r �bad_coding_pathr r r s r �$test_reindent_file_with_bad_encodingz2ReindentTests.test_reindent_file_with_bad_encoding sZ � �"�?�3�3��'���T�?�K�K���C������c�"�"�"����C��%�%�%�%�%r N)�__name__�
__module__�__qualname__�os�path�joinr r
r
r r � r r r r sV � � � � � �
�W�\�\�*�m�
4�
4�F�&� &� &�%� %� %�
&� &� &� &� &r r �__main__)�__doc__r �unittest�test.support.script_helperr �test.supportr �test.test_toolsr r �TestCaser r �mainr r r �<module>r) s� ��� �
� � � � ���� 7� 7� 7� 7� 7� 7� !� !� !� !� !� !� 7� 7� 7� 7� 7� 7� 7� 7� �� � � �&� &� &� &� &�H�%� &� &� &�$ �z�� ��H�M�O�O�O�O�O�� r