관리-도구
편집 파일: test_editmenu.cpython-35.opt-2.pyc
���]� � @ s{ d d l m Z e d � d d l Z d d l Z d d l m Z Gd d � d e j � Z e d k rw e j d d � d S) � )�requiresZguiN)�PyShellc @ sX e Z d Z e d d � � Z e d d � � Z d d � Z d d � Z d d � Z d S)� PasteTestc C s{ t j � | _ } | j � t j | � t j | � | _ t j | � | _ t j | � | _ | j � | j d � d S)N�two)�tkZTk�rootZwithdrawr Z fix_x11_pasteZText�textZEntry�entryZSpinbox�spin�clipboard_clearZclipboard_append)�clsr � r �2/opt/alt/python35/lib64/python3.5/test_editmenu.py� setUpClass s zPasteTest.setUpClassc C sC | ` | ` | ` | j j � | j j � | j j � | ` d S)N)r r r r r Zupdate_idletasksZdestroy)r r r r � tearDownClass s zPasteTest.tearDownClassc C s� | j } x� d D]x \ } } | j d | d | � �Q | j d d � | j d d | � | j d � | j | j d d � | � Wd QRXq Wd S)N� �onetwo �sel�two �tag�ansz1.0�end�onez <<Paste>>�r r �r r )r r )r �subTest�delete�insert�event_generate�assertEqual�get)�selfr r r r r r �test_paste_text# s zPasteTest.test_paste_textc C s� | j } x� d D]� \ } } | j d | d | d | � �X | j d d � | j d d � | j d | � | j d � | j | j � | � Wd QRXq Wd S)Nr �onetwor r r r r z <<Paste>>�r r# �r r )r$ r% )r r r r Zselect_ranger r r )r! r r r r r r �test_paste_entry- s zPasteTest.test_paste_entryc C s� | j } x� d D]� \ } } | j d | d | � �[ | j d d � | j d d � | j d d | � | j d � | j | j � | � Wd QRXq Wd S)Nr r# r r r r �rangez <<Paste>>�r r# �r r )r( r) )r r r r Z selectionr r r )r! r r r r r r �test_paste_spin: s zPasteTest.test_paste_spinN) �__name__� __module__�__qualname__�classmethodr r r"