a  ze{@shddlmZddlZddlmZddlmZGdddejZGdddejZ e d krdej d d dS) )pyshellN)requires)Tkc@seZdZddZddZdS) FunctionTestc Cs|j}dD]\}}}d}|d}|j||dP|p6d}t||}|t||||||d|d|Wdq 1s0Yq dS)N))r)Zfiname=<r )filebarZShellz RESTART:  ) assertEqualsubTestr restart_linelen)selfeqr mulextrawidthr linerR/opt/bitninja-python-dojo/embedded/lib/python3.9/idlelib/idle_test/test_pyshell.pytest_restart_line_wide s z#FunctionTest.test_restart_line_widec Csd\}}|d||dfD]D}|j|d$|t|d|Wdq1sT0Yq|t|dd|ddS)N)z= RESTART: Shell)rrz =)rrrr)rexpectZtaglenrrrrtest_restart_line_narrows 4z%FunctionTest.test_restart_line_narrowN)__name__ __module__ __qualname__rrrrrrr s rc@s,eZdZeddZeddZddZdS)PyShellFileListTestcCstdt|_|jdS)NZgui)rrrootZwithdrawclsrrr setUpClass"szPyShellFileListTest.setUpClasscCs|j|`dSN)r$Zdestroyr%rrr tearDownClass(s z!PyShellFileListTest.tearDownClasscCs,t|j}||jtj||jdSr()rZPyShellFileListr$rZ EditorWindowZPyShellEditorWindowZ assertIsNone)rZpsflrrr test_init0s zPyShellFileListTest.test_initN)r r!r" classmethodr'r)r*rrrrr# s   r#__main__r) verbosity) ZidlelibrZunittestZ test.supportrtkinterrZTestCaserr#r mainrrrrs