3 2au@snddlmZddlZddlmZddlmZejZGdddej Z Gdddej Z e d krjej d d dS) )editorN)requires)Tkc@s,eZdZeddZeddZddZdS)EditorWindowTestcCstdt|_|jjdS)NZgui)rrrootZwithdraw)clsr0/opt/alt/python36/lib64/python3.6/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)ZidlelibrZunittestZ test.supportrZtkinterrZ EditorWindowrZTestCaserrrmainrrrr s