File manager - Edit - /opt/imh-python/lib/python2.7/idlelib/idle_test/test_textview.pyc
Back
� ��Wc @ s� d Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z e j Z d e j f d � � YZ d e j f d � � YZ e d k r� e j d d � n d S( s8 Test the functions and main class method of textView.py.i����N( t requires( t Tk( t textView( t Func( t Mboxt textviewClassTestc B sJ e Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z RS( c C sN t d � t � | _ t j | _ } t � | _ t � | _ t � | _ d S( Nt gui( R R t roott tvt TextViewert TVR t transientt grab_sett wait_window( 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_textview.pyt setUpClass s c C s | ` | j j � | ` d S( N( R R t 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_textview.pyt tearDownClass s c C s4 | j } | j j � | j j � | j j � d S( N( R R t __init__R R ( t selfR ( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_textview.pyt setUp s c C se | j } | | j d d � } | j | j j � | j | j j � | j | j j � | j � d S( Nt Titles test text( R R t assertTrueR t calledR R t Ok( R R t view( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_textview.pyt test_init_modal% s c C sk | j } | | j d d d t �} | j | j j � | j | j j � | j | j j � | j � d S( NR s test textt modal( R R t Falset assertFalseR 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_textview.pyt test_init_nonmodal- s c C sX | j | j d d d t �} t � | _ | j � | j | j j � | ` | j d S( NR s test textR ( 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_textview.pyt test_ok5 s ( t __name__t __module__t classmethodR 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_textview.pyR s t textviewTestc B s8 e Z e d � � Z e d � � Z d � Z d � Z RS( c C s# t d � t � | _ t t _ d S( NR ( R R R R R t tkMessageBox( R ( ( sx /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/idlelib/idle_test/test_textview.pyR @ s c C s | j j � | ` t t _ d S( N( R R t orig_mboxR 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_textview.pyR F s c C s5 t j | j d d d t �} | j | t j � d S( NR s test textR ( R t view_textR R t assertIsInstanceR ( 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_textview.pyt test_view_textL s c C s� t j j t � } t j j | d � } t j | j d | d t �} | j | t j � | j d | j j d d � � | j � t j j | d � } t j | j d | d t �} | j | � d S( Ns test_textview.pyR R t Tests 1.0s 1.ends ../notthere.py( t ost patht dirnamet __file__t joinR t view_fileR R R'