File: //opt/alt/python312/lib64/python3.12/test/test_tools/__pycache__/test_reindent.cpython-312.pyc
�
h�e � � � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z e � G d� dej � Zedk( r ej � yy) 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)�toolsdir�skip_if_missingc �X � e Zd Zej j edd� Zd� Zd� Z d� Z
y)�
ReindentTests�
patchcheckzreindent.pyc �. � t | j � y )N)r �script)�selfs �D/opt/alt/python312/lib64/python3.12/test/test_tools/test_reindent.py�test_noargszReindentTests.test_noargs s � �����%� c � � t | j d� \ }}}| j |d� | j |d� y )Nz-hr )r r �assertEqual�
assertGreater)r �rc�out�errs r
� test_helpzReindentTests.test_help s8 � �'����T�:���C������c�"����3��$r c � � t dd�� }t | j d|� \ }}}| j |d� | j |d� y )Nz
bad_coding.py�tokenizedata)�subdirz-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 sF � �"�?�>�J��'����T�?�K���C������c�"����C��%r N)�__name__�
__module__�__qualname__�os�path�joinr r r r r � r r
r r s'