File manager - Edit - /opt/imh-python/lib/python2.7/idlelib/idle_test/test_editmenu.pyo
Back
� ��Wc @ sz d Z d d l m Z d d l Z d d l Z d d l m Z d e j f d � � YZ e d k rv e j d d � n d S( sT Test (selected) IDLE Edit menu items. Edit modules have their own test files files i����( t requiresN( t PyShellt PasteTestc B sb e Z d Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( se Test pasting into widgets that allow pasting. On X11, replacing selections requires tk fix. c C s{ t d � t j � | _ } t j | � t j | � | _ t j | � | _ t j | � | _ | j � | j d � d S( Nt guit two( R t tkt Tkt rootR t fix_x11_pastet Textt textt Entryt entryt Spinboxt spint clipboard_cleart clipboard_append( t clsR ( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_editmenu.pyt setUpClass s c C sP | ` | ` | ` | j j � | j j � | j j � | j j � | ` d S( N( R R R R R t update_idletaskst updatet destroy( R ( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_editmenu.pyt tearDownClass s c C se | j } d \ } } | j d d � | j d d | � | j d � | j | j d d � | � d S( s+ Test pasting into text without a selection.t s onetwo s 1.0t endt ones <<Paste>>N( R s onetwo ( R t deletet insertt event_generatet assertEqualt get( t selfR t tagt ans( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_editmenu.pyt test_paste_text_no_selection# s c C se | j } d \ } } | j d d � | j d d | � | j d � | j | j d d � | � d S( s( Test pasting into text with a selection.t sels two s 1.0R R s <<Paste>>N( R# s two ( R R R R R R ( R R R R! ( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_editmenu.pyt test_paste_text_selection, s c C sl | j } d \ } } | j d d � | j d d � | j d | � | j d � | j | j � | � d S( s/ Test pasting into an entry without a selection.i t onetwoR R s <<Paste>>N( i R% ( R R R t select_rangeR R R ( R R R R! ( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_editmenu.pyt test_paste_entry_no_selection5 s c C sl | j } d \ } } | j d d � | j d d � | j d | � | j d � | j | j � | � d S( s, Test pasting into an entry with a selection.R R i R s <<Paste>>N( s ends two( R R R R&