3 *jau@srdZddlmZddlZddlmZddlmZejZ Gdddej Z Gdd d ej Z e d krnejd d dS) zTest editor, coverage 35%.)editorN)requires)Tkc@s,eZdZeddZeddZddZdS)EditorWindowTestcCstdt|_|jjdS)NZgui)rrrootZwithdraw)clsrB/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_editor.py setUpClass szEditorWindowTest.setUpClasscCsB|jjx$|jjjddD]}|jj|qW|jj|`dS)Nafterinfo)rZupdate_idletasksZtkZcallZ after_cancelZdestroy)ridrrr tearDownClasss   zEditorWindowTest.tearDownClasscCs(t|jd}|j|j|j|jdS)N)r)Editorr assertEqualZ_close)selferrr test_inits zEditorWindowTest.test_initN)__name__ __module__ __qualname__ classmethodr rrrrrr r s  rc@seZdZddZdS)EditorFunctionTestcCs@tj}Gddd}d }x"|D]\}}|j||||qWdS) Nc@seZdZdZdS)z:EditorFunctionTest.test_filename_to_unicode..dummyzutf-8N)rrrZfilesystemencodingrrrr dummy%srabca𑄑ca�cabca𑄑crrrrrrrr)rr r!r")rZ_filename_to_unicoder)rfuncrZpairsZinpoutrrr test_filename_to_unicode#s z+EditorFunctionTest.test_filename_to_unicodeN)rrrr%rrrr r!sr__main__) verbosity)__doc__ZidlelibrZunittestZ test.supportrZtkinterrZ EditorWindowrZTestCaserrrmainrrrr s