관리-도구
편집 파일: test_statusbar.cpython-36.pyc
3 � fm � @ sZ d Z ddlmZ ddlZddlmZ ddlmZ G dd� dej�Z e dkrVejd d � dS )zTest statusbar, coverage 100%.� )� statusbarN)�requires)�Tkc @ s4 e Zd Zedd� �Zedd� �Zdd� Zdd� Zd S ) �Testc C s t d� t� | _| jj� d S )NZgui)r r �rootZwithdraw)�cls� r �E/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_statusbar.py� setUpClass s zTest.setUpClassc C s | j j� | j j� | ` d S )N)r Zupdate_idletasksZdestroy)r r r r � tearDownClass s zTest.tearDownClassc C s t j| j�}| j|ji � d S )N)r �MultiStatusBarr �assertEqual�labels)�self�barr r r � test_init s zTest.test_initc C s� t j| j�}|jdddd� | jd|j� |jd }| j|d d� | j|d d� |jddd� | j|d d� |jd d d� | j|jd d d � d S )N�leftZsometext� )�text�widthr r zrevised text)r �rightzcorrect text)r r r Z set_labelZassertInr r )r r r r r r �test_set_label s zTest.test_set_labelN)�__name__� __module__�__qualname__�classmethodr r r r r r r r r s r �__main__� )� verbosity)�__doc__Zidlelibr ZunittestZtest.supportr Ztkinterr ZTestCaser r �mainr r r r �<module> s