관리-도구
편집 파일: test_autoexpand.cpython-34.pyo
� e f � @ s� d Z d d l Z d d l m Z d d l m Z m Z d d l m Z Gd d � d � Z Gd d � d e j � Z e d k r� e j d d � n d S) z!Unit tests for idlelib.AutoExpand� N)�requires)�Text�Tk)� AutoExpandc @ s e Z d Z d d � Z d S)� Dummy_Editwinc C s | | _ d S)N)�text)�selfr � r �F/opt/alt/python34/lib64/python3.4/idlelib/idle_test/test_autoexpand.py�__init__ s zDummy_Editwin.__init__N)�__name__� __module__�__qualname__r r r r r r s r c @ s| e Z d Z e d d � � Z e d d � � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�AutoExpandTestc C se d t t � k r= t d � t � | _ t | j � | _ n t � | _ t t | j � � | _ d S)N�tkinterZgui) �strr r r �tkr r r �auto_expand)�clsr r r � setUpClass s zAutoExpandTest.setUpClassc C s5 t | d � r% | j j � | ` n | ` | ` d S)Nr )�hasattrr Zdestroyr r )r r r r � tearDownClass s zAutoExpandTest.tearDownClassc C s | j j d d � d S)Nz1.0�end)r �delete)r r r r �tearDown! s zAutoExpandTest.tearDownc C s | j } | j j } | j } | | � d � | j d d � | | � d � | j d d � | | � d � | j d d � | | � d � | j d d � | | � d � | j d d � | | � d � | j d d � | | � d � | j d d � | | � d � d S) N� �insert�tZhis�this� �isz sample string�stringz3.0z1.0r )r r �getprevword�assertEqualr r )r r �previous�equalr r r �test_get_prevword$ s$ z AutoExpandTest.test_get_prevwordc C s� | j j } | j j } | j } | j j d d � | | j j � d d d d g � | d � | | � d � | d � | | � d � | d � | | � d � | d � | | � d � d S)Nr zab ac bx ad ab a�ab�ad�ac�a�event)r r"