관리-도구
편집 파일: test_editor.cpython-36.pyc
3 � fu � @ sr d Z ddlmZ ddlZddlmZ ddlmZ ejZ G dd� dej �ZG dd � d ej �Ze d krnejdd� dS ) zTest editor, coverage 35%.� )�editorN)�requires)�Tkc @ s, e Zd Zedd� �Zedd� �Zdd� ZdS )�EditorWindowTestc C s t d� t� | _| jj� d S )NZgui)r r �rootZwithdraw)�cls� r �B/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_editor.py� setUpClass s zEditorWindowTest.setUpClassc C sB | j j� x$| j jjdd�D ]}| j j|� qW | j j� | ` d S )N�after�info)r Zupdate_idletasksZtkZcallZafter_cancelZdestroy)r �idr r r � tearDownClass s zEditorWindowTest.tearDownClassc C s( t | jd�}| j|j| j� |j� d S )N)r )�Editorr �assertEqualZ_close)�self�er r r � test_init s zEditorWindowTest.test_initN)�__name__� __module__�__qualname__�classmethodr r r r r r r r s r c @ s e Zd Zdd� ZdS )�EditorFunctionTestc C s@ t j}G dd� d�}d}x"|D ]\}}| j|||�|� qW d S ) Nc @ s e Zd ZdZdS )z:EditorFunctionTest.test_filename_to_unicode.<locals>.dummyzutf-8N)r r r Zfilesystemencodingr r r r �dummy% s r �abc� a𑄑c� a�c� abc� a𑄑c�r r �r r �r r �r r )r r r! r"