관리-도구
편집 파일: test_replacedialog.cpython-35.opt-1.pyc
��Yfp � @ s� d Z d d l m Z e d � d d l Z d d l m Z d d l m Z m Z d d l m Z d d l j Z d d l j Z e j Z e j Z Gd d � d e j � Z e d k r� e j d d � d S) z"Unittest for idlelib.ReplaceDialog� )�requiresZguiN)�Mock)�Tk�Text)�Mboxc @ 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 d � Z d d � Z d d � Z d d � Z d S)�ReplaceDialogTestc C s� t � | _ | j j � t t _ t j | j � | _ t j | j | j � | _ t � | j _ t | j � | _ t � | j _ t � | j _ | j | j _ d S)N)r �rootZwithdrawr �se�tkMessageBox�SearchEngine�engine�rd� ReplaceDialog�dialogr �okr �textZundo_block_startZundo_block_stop)�cls� r �I/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_replacedialog.py� setUpClass s zReplaceDialogTest.setUpClassc C s2 t t _ | ` | ` | ` | j j � | ` d S)N)� orig_mboxr r r r r r Zdestroy)r r r r � tearDownClass s zReplaceDialogTest.tearDownClassc C s | j j d d � d S)N�insertzThis is a sample sTring)r r )�selfr r r �setUp&