
    <e                         d Z ddlZddlZddlmZ ddlmZ ddlmZm	Z	  e	              G d dej
                  Zedk    r ej                     dS dS )	zTests 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 Zd Zej                            ed          Zd Zd Z	d Z
dS )ReindentTestszreindent.pyc                 .    t          | j                   d S )N)r   script)selfs    4/usr/lib/python3.11/test/test_tools/test_reindent.pytest_noargszReindentTests.test_noargs   s    %%%%%    c                     t          | j        d          \  }}}|                     |d           |                     |d           d S )Nz-hr   )r   r
   assertEqualassertGreater)r   rcouterrs       r   	test_helpzReindentTests.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4F& & &% % %
& & & & &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HMOOOOO r   