ok
Direktori : /proc/thread-self/root/lib64/python2.7/idlelib/idle_test/ |
Current File : //proc/thread-self/root/lib64/python2.7/idlelib/idle_test/test_autoexpand.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 e j f d � � YZ e d k r� e j d d � n d S( s! Unit tests for idlelib.AutoExpandi����N( t requires( t Textt Tk( t AutoExpandt Dummy_Editwinc B s e Z d � Z RS( c C s | | _ d S( N( t text( t selfR ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_autoexpand.pyt __init__ s ( t __name__t __module__R ( ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_autoexpand.pyR s t AutoExpandTestc B s\ e Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C se d t t � k r= t d � t � | _ t | j � | _ n t � | _ t t | j � � | _ d S( Nt Tkintert gui( t strR R R t tkR R R t auto_expand( t cls( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_autoexpand.pyt setUpClass s c C s5 | ` | ` t | d � r1 | j j � | ` n d S( NR ( R R t hasattrR t destroy( R ( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_autoexpand.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_autoexpand.pyt tearDown! s c 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( Nt t insertt tt hist thist t iss sample stringt strings 3.0s 1.0R ( R R t getprevwordt assertEqualR R ( R R t previoust equal( ( s9 /usr/lib64/python2.7/idlelib/idle_test/test_autoexpand.pyt test_get_prevword$ s$ c 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 s ab ac bx ad ab at abt adt act at event( R R t expand_word_eventR! R R t getwords( R R"