관리-도구
편집 파일: test_widgetredir.cpython-35.opt-1.pyc
��Yfi � @ s� d Z d d l m Z d d l Z d d l m Z d d l m Z m Z m Z d d l m Z Gd d � d e j � Z Gd d � d e j � Z e d k r� e j d d � d S)z.Test idlelib.WidgetRedirector. 100% coverage � )�requiresN)�Func)�Tk�Text�TclError)�WidgetRedirectorc @ sL e Z d Z e d d � � Z e d d � � Z d d � Z d d � Z d S) � InitCloseTestc C s9 t d � t � | _ | j j � t | j � | _ d S)N�gui)r r �root�withdrawr �text)�cls� r �G/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_widgetredir.py� setUpClass s zInitCloseTest.setUpClassc C s | ` | j j � | ` d S)N)r r �destroy)r r r r � tearDownClass s zInitCloseTest.tearDownClassc C sb t | j � } | j | j | j � | j | j | j j � | j t t | j � | j � d S)N)r r �assertEqual�widget�tkZassertRaisesr �close)�self�redirr r r � test_init s zInitCloseTest.test_initc C sY t | j � } | j d t � | j � | j | j i � | j t | j d � � d S)N�insertr ) r r �registerr r r �_operations�assertFalse�hasattr)r r r r r � test_close"