File manager - Edit - /opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyc
Back
� ��Wc @ s� d Z d d l m Z d d l Z d d l m Z d d l m Z m Z m Z d d l m Z d e j f d � � YZ d e j f d � � YZ e d k r� e j d d � n d S( s5 Unittest for idlelib.WidgetRedirector 100% coverage i����( t requiresN( t Func( t Tkt Textt TclError( t WidgetRedirectort InitCloseTestc B s8 e Z e d � � Z e d � � Z d � Z d � Z RS( c C s, t d � t � | _ t | j � | _ d S( Nt gui( R R t rootR t text( t cls( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyt setUpClass s c C s | ` | j j � | ` d S( N( R R t destroy( R ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyt tearDownClass s c C sb t | j � } | j | j | j � | j | j | j j � | j t t | j � | j � d S( N( R R t assertEqualt widgett tkt assertRaisesR t close( t selft redir( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyt test_init s c C sY t | j � } | j d t � | j � | j | j i � | j t | j d � � d S( Nt insertR ( R R t registerR R R t _operationst assertFalset hasattr( R R ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyt test_close! s ( t __name__t __module__t classmethodR R R R ( ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyR s t WidgetRedirectorTestc B s� e Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s, t d � t � | _ t | j � | _ d S( NR ( R R R R R ( R ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyR + s c C s | ` | j j � | ` d S( N( R R R ( R ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyR 1 s c C sP t | j � | _ t � | _ | j j d | j � | _ | j j d d � d S( NR t asdf( R R R R t funcR t orig_insertR ( R ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyt setUp7 s c C s$ | j j d d � | j j � d S( Ns 1.0t end( R t deleteR R ( R ( ( s{ /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_widgetredir.pyt tearDown= s c C s6 | j d t | j � � | j d t | j � � d S( Nt Redirectort Original( t assertInt reprR R"