AlkantarClanX12
Current Path : /lib64/python2.7/idlelib/idle_test/ |
Current File : //lib64/python2.7/idlelib/idle_test/test_parenmatch.pyo |
� {fc @ s� d Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d d � � YZ d d d � � YZ d e j f d � � YZ e d k r� e j d d � n d S( s Test idlelib.ParenMatch.i����N( t requires( t Tkt Text( t ParenMatcht Mockc B s, e Z d � Z d � Z d � Z d � Z RS( c O s t | _ d S( N( t Falset called( t selft argst kwargs( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt __init__ s c O s t | _ d S( N( t TrueR ( R R R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt __call__ s c O s t | _ d S( N( R R ( R R R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt reset_mock s c O s d S( N( ( R R R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt after s ( t __name__t __module__R R R R ( ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyR s t DummyEditwinc B s e Z d � Z RS( c C s( | | _ d | _ d | _ t | _ d S( Ni ( t textt indentwidtht tabwidthR t context_use_ps1( R R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyR s ( R R R ( ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyR s t ParenMatchTestc B sS e Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z RS( c C sM t d � t � | _ t | j � | _ t | j � | _ t � | j _ d S( Nt gui( R R t rootR R R t editwinR t text_frame( t cls( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt setUpClass! s c C s# | ` | ` | j j � | ` d S( N( R R R t destroy( R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt tearDownClass) s c C s | j j d d � d S( Ns 1.0t end( R t delete( R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt tearDown/ s c 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 � d � | j d � | j | j d d � d � d S( s: Test ParenMatch with 'expression' style. t expressiont inserts def foobar(a, bt events <<parenmatch-check-restore>>t parenR s 1.10s 1.15t )s 1.16N( s 1.10s 1.15( ( s 1.10s 1.16( R R R t set_styleR# t flash_paren_eventt assertInt event_infot assertTupleEqualt tag_prevranget restore_eventt assertNotInt assertEqualt paren_closed_event( R R t pm( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_parenmatch.pyt test_paren_expression2 s c 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 � d � d S( s7 Test ParenMatch with 'default' style. t defaultR# s def foobar(a, bR$ s <<parenmatch-check-restore>>R% R s 1.10s 1.11R&