관리-도구
편집 파일: test_autoexpand.cpython-35.opt-2.pyc
���] � @ s� 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 � d S)� 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 �4/opt/alt/python35/lib64/python3.5/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 s2 | ` | ` t | d � r. | j j � | ` d S)Nr )r r �hasattrr Zdestroy)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"