관리-도구
편집 파일: test_parenmatch.cpython-34.pyo
� e f� � @ s� d Z d d l Z d d l m 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)zTest idlelib.ParenMatch.� N)�Mock)�requires)�Tk�Text)� ParenMatchc @ s e Z d Z d d � Z d S)�DummyEditwinc C s( | | _ d | _ d | _ d | _ d S)N� T)�textZindentwidthZtabwidthZcontext_use_ps1)�selfr � r �F/opt/alt/python34/lib64/python3.4/idlelib/idle_test/test_parenmatch.py�__init__ s zDummyEditwin.__init__N)�__name__� __module__�__qualname__r r r r r r s r c @ sp 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 S)�ParenMatchTestc C sM t d � t � | _ t | j � | _ t | j � | _ t � | j _ d S)NZgui) r r �rootr r r �editwinr Z text_frame)�clsr r r � setUpClass s zParenMatchTest.setUpClassc C s# | ` | ` | j j � | ` d S)N)r r r Zdestroy)r r r r � tearDownClass s zParenMatchTest.tearDownClassc C s | j j d d � d S)Nz1.0�end)r Zdelete)r r r r �tearDown# s zParenMatchTest.tearDownc C s� | j } t | j � } | j d � | j d d � | j d � | j d | j � � | j | j d d � d � | j d d � | j � | j d | j � � | j | j d d � f � | j d � | j | j d d � d � d S)z: Test ParenMatch with 'expression' style. Z expression�insertzdef foobar(a, b�eventz<<parenmatch-check-restore>>�parenr �1.10�1.15�)�1.16N)r r )r r )r r r � set_styler �flash_paren_event�assertIn� event_info�assertTupleEqual� tag_prevrange� restore_event�assertNotIn�assertEqual�paren_closed_event)r r �pmr r r �test_paren_expression&