File: //usr/local/lib/python3.10/test/test_tools/__pycache__/test_reindent.cpython-310.opt-1.pyc
o
�i� � @ sl d Z ddlZddlZddlmZ ddlmZ ddlmZm Z e � G dd� dej
�Zedkr4e�
� 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 @ s2 e Zd Zej�ed�Zdd� Zdd� Z dd� Z
dS ) �
ReindentTestszreindent.pyc C s t | j� d S )N)r �script)�self� r �:/usr/local/lib/python3.10/test/test_tools/test_reindent.py�test_noargs s zReindentTests.test_noargsc C s. t | jd�\}}}| �|d� | �|d� d S )Nz-h� )r r �assertEqualZ
assertGreater)r �rc�out�errr r r
� test_help s zReindentTests.test_helpc C s8 t d�}t| jd|�\}}}| �|d� | �|d� d S )Nz
bad_coding.pyz-rr )r r r r
ZassertNotEqual)r Zbad_coding_pathr r r r r r
�$test_reindent_file_with_bad_encoding s z2ReindentTests.test_reindent_file_with_bad_encodingN)�__name__�
__module__�__qualname__�os�path�joinr r r r r r r r r
r s
r �__main__)�__doc__r ZunittestZtest.support.script_helperr Ztest.supportr Ztest.test_toolsr r ZTestCaser r �mainr r r r
�<module> s �