Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/idlelib/idle_test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/idlelib/idle_test/__pycache__/test_iomenu.cpython-312.pyc

�

&Μg�	����dZddlmZddlZddlmZddlmZddlm	Z	ddlm
Z
ddlmZdd	l
mZmZGd
�dej �Zd�ZGd
�dej �Zedk(rej*d��yy)zTest , coverage 17%.�)�iomenuN)�requires)�Tk)�EditorWindow)�util)�Func)�open�detect_encodingc�8�eZdZed��Zed��Zd�Zd�Zy)�
IOBindingTestc���td�t�|_|jj�t	|j��|_t
j|j
�|_y)N�gui)�root)	rrr�withdrawr�editwinr�	IOBinding�io)�clss �:/usr/local/lib/python3.12/idlelib/idle_test/test_iomenu.py�
setUpClasszIOBindingTest.setUpClasssH������4���������"����1����!�!�#�+�+�.���c�h�|jj�|jj�|`|jj�|jjjdd�D]}|jj|��|jj�|`y)N�after�info)
r�closer�_closer�update_idletasks�tk�call�after_cancel�destroy)r�ids  r�
tearDownClasszIOBindingTest.tearDownClasssz���������������K����!�!�#��(�(�+�+�"�"�7�F�3�B��H�H�!�!�"�%�4��������Hrc�d�|j|jj|j�y)N)�assertIsrr��selfs r�	test_initzIOBindingTest.test_init's���
�
�d�g�g�o�o�t�|�|�4rc���|j}|j}|j}|jj}d|j_d}t
|��|j_||�|�|j`|j`|jdd�||�d|jz�||jdd�d�||�d|jz�y)Nz>>> if 1)�resultg�?�az1.0zend-1cza
)�assertEqualr�fixnewlinesr�text�interpr�get_prompt_text�insert�eol_convention�get)r'�eqr�fixr.�	shelltexts      r�test_fixnewlines_endz"IOBindingTest.test_fixnewlines_end*s���
�
�
��
�W�W���n�n���z�z����#������	�'+�9�'=����$�
�3�5�)���L�L�����!=����C���
�3�5�#�b�'�'�'�(�
�4�8�8�E�8�$�e�,�
�3�5�#�b�'�'�'�(rN)�__name__�
__module__�__qualname__�classmethodrr#r(r7�rrrrs2���/��/�����5�)rrc�\��t�fd�tjjD��S)Nc3�2�K�|]}d���|dv���y�w)�*�Nr<)�.0�filetype_tuple�	extensions  �r�	<genexpr>z*_extension_in_filetypes.<locals>.<genexpr>>s)������8�N��I�;��>�!�,�,�8�s�)�anyrr�	filetypes�rCs`r�_extension_in_filetypesrH=s)�����$�.�.�8�8���rc��eZdZd�Zd�Zd�Zy)�
FiletypesTestc��tjD]7}|j|��5|jt	|��ddd��9y#1swY�DxYw)NrG)r�
py_extensions�subTest�
assertTruerH)r'rCs  r�test_python_source_filesz&FiletypesTest.test_python_source_filesEsC���+�+�I����	��2����+�I�6��3�2�,�2�2�s�A�A	c�8�|jtd��y)Nz.txt�rNrHr&s r�test_text_fileszFiletypesTest.test_text_filesLs�����/��7�8rc�8�|jtd��y)N�rQr&s r�test_all_fileszFiletypesTest.test_all_filesOs�����/��3�4rN)r8r9r:rOrRrUr<rrrJrJDs���9�5rrJ�__main__�)�	verbosity)�__doc__�idlelibr�unittest�test.supportr�tkinterr�idlelib.editorrr�idlelib.idle_test.mock_idler�tokenizer	r
�TestCaserrHrJr8�mainr<rr�<module>rcsi�����!��'��,�
+�()�H�%�%�()�V�5�H�%�%�5��z���H�M�M�A��r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists