a  zeîã@shdZddlZddlZddlmZddlmZddlmZm Z e ƒGdd„dej ƒZ e dkrde  ¡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@s2eZdZej ed¡Zdd„Zdd„Z dd„Z dS) Ú ReindentTestsz reindent.pycCst|jƒdS)N)rÚscript)Úself©r úQ/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_tools/test_reindent.pyÚ test_noargsszReindentTests.test_noargscCs.t|jdƒ\}}}| |d¡| |d¡dS)Nz-hó)rrÚ assertEqualZ assertGreater)rÚrcÚoutÚerrr r r Ú test_helps zReindentTests.test_helpcCs8tdƒ}t|jd|ƒ\}}}| |d¡| |d¡dS)Nz bad_coding.pyz-rr )rrrr ZassertNotEqual)rZbad_coding_pathrrrr r r Ú$test_reindent_file_with_bad_encodings z2ReindentTests.test_reindent_file_with_bad_encodingN) Ú__name__Ú __module__Ú __qualname__ÚosÚpathÚjoinrrr rrr r r r rsrÚ__main__)Ú__doc__rZunittestZtest.support.script_helperrZ test.supportrZtest.test_toolsrrZTestCaserrÚmainr r r r Ús