3 Õì2auã@snddlmZddlZddlmZddlmZejZGdd„dej ƒZ Gdd„dej ƒZ e d krjej d d �dS) é)ÚeditorN)Úrequires)ÚTkc@s,eZdZedd„ƒZedd„ƒZdd„ZdS)ÚEditorWindowTestcCstdƒtƒ|_|jjƒdS)NZgui)rrÚrootZwithdraw)Úcls©rú0/opt/alt/python36/lib64/python3.6/test_editor.pyÚ setUpClass szEditorWindowTest.setUpClasscCsB|jjƒx$|jjjddƒD]}|jj|ƒqW|jjƒ|`dS)NÚafterÚinfo)rZupdate_idletasksZtkZcallZ after_cancelZdestroy)rÚidrrr Ú tearDownClasss   zEditorWindowTest.tearDownClasscCs(t|jd�}|j|j|jƒ|jƒdS)N)r)ÚEditorrÚ assertEqualZ_close)ÚselfÚerrr Ú test_inits zEditorWindowTest.test_initN)Ú__name__Ú __module__Ú __qualname__Ú classmethodr rrrrrr r s  rc@seZdZdd„ZdS)ÚEditorFunctionTestcCs@tj}Gdd„dƒ}d }x"|D]\}}|j|||ƒ|ƒqWdS) Nc@seZdZdZdS)z:EditorFunctionTest.test_filename_to_unicode..dummyzutf-8N)rrrZfilesystemencodingrrrr Údummy%srÚabcõað‘„‘cõa�cóabcóað‘„‘c©rr©rr©rr©rr)rr r!r")rZ_filename_to_unicoder)rÚfuncrZpairsZinpÚoutrrr Útest_filename_to_unicode#s z+EditorFunctionTest.test_filename_to_unicodeN)rrrr%rrrr r!srÚ__main__é)Ú verbosity)ZidlelibrZunittestZ test.supportrZtkinterrZ EditorWindowrZTestCaserrrÚmainrrrr Ús