a
    ze                     @   sb   d dl mZ d dlZd dlmZ d dlmZ d dlmZ G dd dej	Z
edkr^ejd	d
 dS )    )
zoomheightN)requires)Tk)EditorWindowc                   @   s4   e Zd Zedd Zedd Zdd Zdd Zd	S )
Testc                 C   s,   t d t | _| j  t| jd| _d S )NZgui)root)r   r   r   Zwithdrawr   editwin)cls r
   7/usr/lib/python3.9/idlelib/idle_test/test_zoomheight.py
setUpClass   s    
zTest.setUpClassc                 C   sH   | j   | j  | jjddD ]}| j| q$| j  | `d S )NZafterinfo)r   _closer   Zupdate_idletasksZtkcallZafter_cancelZdestroy)r	   idr
   r
   r   tearDownClass   s    


zTest.tearDownClassc                 C   s    t | j}| |j| j d S N)r   
ZoomHeightr   ZassertIsselfZzoomr
   r
   r   	test_init   s    zTest.test_initc                 C   s   t | j}|  d S r   )r   r   r   Zzoom_height_eventr   r
   r
   r   test_zoom_height_event!   s    zTest.test_zoom_height_eventN)__name__
__module____qualname__classmethodr   r   r   r   r
   r
   r
   r   r      s   

r   __main__   )	verbosity)Zidlelibr   ZunittestZtest.supportr   tkinterr   Zidlelib.editorr   ZTestCaser   r   mainr
   r
   r
   r   <module>   s   