관리-도구
편집 파일: test_statusbar.cpython-37.opt-2.pyc
B YI~dm � @ sV d dl mZ d dlZd dlmZ d dlmZ G dd� dej�Ze dkrRej dd � dS ) � )� statusbarN)�requires)�Tkc @ s4 e Zd Zedd� �Zedd� �Zdd� Zdd� Zd S ) �Testc C s t d� t� | _| j�� d S )NZgui)r r �rootZwithdraw)�cls� r �E/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_statusbar.py� setUpClass s zTest.setUpClassc C s | j �� | j �� | ` d S )N)r Zupdate_idletasksZdestroy)r r r r � tearDownClass s zTest.tearDownClassc C s t �| j�}| �|ji � d S )N)r �MultiStatusBarr �assertEqual�labels)�self�barr r r � test_init s zTest.test_initc C s� t �| j�}|jdddd� | �d|j� |jd }| �|d d� | �|d d� |jddd� | �|d d� |jd d d� | �|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)Zidlelibr ZunittestZtest.supportr Ztkinterr ZTestCaser r �mainr r r r �<module> s