관리-도구
편집 파일: test_tree.cpython-37.pyc
B � f� � @ s| d Z ddlmZ ddlZddlmZ ed� ddlmZmZm Z G dd� dej �ZG d d � d ej �Ze dkrxejdd � dS )zTest tree. coverage 56%.� )�treeN)�requiresZgui)�Tk� EventType�SCROLLc @ s, e Zd Zedd� �Zedd� �Zdd� ZdS )�TreeTestc C s t � | _| j�� d S )N)r �rootZwithdraw)�cls� r �@/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_tree.py� setUpClass s zTreeTest.setUpClassc C s | j �� | ` d S )N)r Zdestroy)r r r r � tearDownClass s zTreeTest.tearDownClassc C sN t j| jdddd�}|jjdddd� t �t j�}t �|jd |�}|� � d S )NZwhiter � )ZbgZhighlightthicknessZ takefocusZboth�left)�expandZfillZside) r ZScrolledCanvasr �frameZpackZFileTreeItemZICONDIRZTreeNodeZcanvasr )�selfZsc�itemZnoder r r � test_init s zTreeTest.test_initN)�__name__� __module__�__qualname__�classmethodr r r r r r r r s r c @ s e Zd Zdd� ZdS )�TestScrollEventc s� G � fdd�d�}G dd� d�}t jdddft jddd ft jdd dft jdd d ff}|� }xF|D ]>\}}}}||_||_||_t�||t|d��} � � | d� q`W d S ) Nc s e Zd Zdd� Z� fdd�ZdS )z1TestScrollEvent.test_wheel_event.<locals>._Widgetc W s || _ d S )N)�expected)�widgetr r r r �__init__% s z:TestScrollEvent.test_wheel_event.<locals>._Widget.__init__c s � � | j|� d S )N)ZassertTupleEqualr )r �args)r r r �yview'