관리-도구
편집 파일: test_statusbar.cpython-36.opt-2.pyc
3 ��2am � @ 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� | _| jj� d S )NZgui)r r �rootZwithdraw)�cls� r �3/opt/alt/python36/lib64/python3.6/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)Zidlelibr ZunittestZtest.supportr Ztkinterr ZTestCaser r �mainr r r r �<module> s