B  f{@sldZddlmZddlZddlmZddlmZGdddejZ Gdd d ejZ e d krhej d d dS) zTest pyshell, coverage 12%.)pyshellN)requires)Tkc@seZdZddZddZdS) FunctionTestc Cs|j}xxdD]p\}}}d}|d}|j||dF|p8d}t||}|t||||||d|d|WdQRXq WdS)N))r)Zfiname=<r )filebarZShellz RESTART:  ) assertEqualsubTestr restart_linelen)selfeqr mulZextrawidthr linerC/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_pyshell.pytest_restart_line_wide s z#FunctionTest.test_restart_line_widec Cspd\}}xF|d||dfD]0}|j|d|t|d|WdQRXqW|t|dd|ddS)N)z= RESTART: Shell)rrz =)rrrr)rZexpectZtaglenrrrrtest_restart_line_narrows "z%FunctionTest.test_restart_line_narrowN)__name__ __module__ __qualname__rrrrrrr s rc@s,eZdZeddZeddZddZdS)PyShellFileListTestcCstdt|_|jdS)NZgui)rrrootZwithdraw)clsrrr setUpClass"szPyShellFileListTest.setUpClasscCs|j|`dS)N)r"Zdestroy)r#rrr tearDownClass(s z!PyShellFileListTest.tearDownClasscCs,t|j}||jtj||jdS)N)rZPyShellFileListr"rZ EditorWindowZPyShellEditorWindowZ assertIsNone)rZpsflrrr test_init0s zPyShellFileListTest.test_initN)rrr classmethodr$r%r&rrrrr! s  r!__main__r) verbosity) __doc__ZidlelibrZunittestZ test.supportrZtkinterrZTestCaserr!rmainrrrrs