o
    JAfQ                     @   sz   d Z ddlmZ ddlZddlmZ ed ddlmZmZm	Z	 ddl
mZ G dd	 d	ejZed
kr;ejdd dS dS )zTest help, coverage 87%.    )helpN)requiresZgui)abspathdirnamejoin)Tkc                   @   s,   e Zd Zedd Zedd Zdd ZdS )HelpFrameTestc                 C   s<   t   | _}|  tttttd}t||| _	dS )z9By itself, this tests that file parsed without exception.z	help.htmlN)
r   rootZwithdrawr   r   r   __file__r   Z	HelpFrameframe)clsr	   Zhelpfile r   2/usr/lib/python3.10/idlelib/idle_test/test_help.py
setUpClass   s   zHelpFrameTest.setUpClassc                 C   s    | ` | j  | j  | `d S )N)r   r	   Zupdate_idletasksZdestroy)r   r   r   r   tearDownClass   s   

zHelpFrameTest.tearDownClassc                 C   s    | j j}| |ddd d S )Nz1.0z1.endz IDLE )r   textZassertEqualget)selfr   r   r   r   
test_line1   s   zHelpFrameTest.test_line1N)__name__
__module____qualname__classmethodr   r   r   r   r   r   r   r      s    

r   __main__   )	verbosity)__doc__Zidlelibr   ZunittestZtest.supportr   Zos.pathr   r   r   tkinterr   ZTestCaser   r   mainr   r   r   r   <module>   s    