Your IP : 216.73.216.85


Current Path : /opt/alt/python38/lib64/python3.8/idlelib/idle_test/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/idlelib/idle_test/__pycache__/test_pyshell.cpython-38.pyc

U

i�f{�@sldZddlmZddlZddlmZddlmZGdd�dej�Z	Gdd	�d	ej�Z
ed
krhejdd�dS)
zTest pyshell, coverage 12%.�)�pyshellN)�requires)�Tkc@seZdZdd�Zdd�ZdS)�FunctionTestc
Cs�|j}dD]p\}}}d}|d}|j||d��F|p6d}t�||�}|t|�|�||||�d|�d|���W5QRXq
dS)N))��r)Zfiname��=�<r	)�file�barZShellz
 RESTART: � )�assertEqual�subTestr�restart_line�len)�self�eqr�mulZextra�widthr�line�r�C/opt/alt/python38/lib64/python3.8/idlelib/idle_test/test_pyshell.py�test_restart_line_wide
sz#FunctionTest.test_restart_line_widec
Csld\}}|d||dfD]0}|j|d��|�t�|d�|�W5QRXq|�t�|dd�|d�dS)N)z= RESTART: Shell��)rr�z =)rrrr)rZexpectZtaglenrrrr�test_restart_line_narrows
 z%FunctionTest.test_restart_line_narrowN)�__name__�
__module__�__qualname__rrrrrrr
src@s,eZdZedd��Zedd��Zdd�ZdS)�PyShellFileListTestcCstd�t�|_|j��dS)NZgui)rr�rootZwithdraw��clsrrr�
setUpClass"szPyShellFileListTest.setUpClasscCs|j��|`dS�N)r"Zdestroyr#rrr�
tearDownClass(s
z!PyShellFileListTest.tearDownClasscCs,t�|j�}|�|jtj�|�|j�dSr&)rZPyShellFileListr"rZEditorWindowZPyShellEditorWindowZassertIsNone)rZpsflrrr�	test_init0szPyShellFileListTest.test_initN)rrr �classmethodr%r'r(rrrrr! s


r!�__main__r)�	verbosity)
�__doc__ZidlelibrZunittestZtest.supportrZtkinterrZTestCaserr!r�mainrrrr�<module>s