%PDF- %PDF-
Direktori : /lib64/python2.7/idlelib/idle_test/ |
Current File : //lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyc |
� {fc @ s� d Z d d l Z d d l m Z d d l m Z m Z m Z m Z d d l m Z d d l m Z d d l m Z d e j f d � � YZ e d k r� e j d d d d � n d S( s� Unittests for idlelib/SearchDialogBase.py Coverage: 99%. The only thing not covered is inconsequential -- testing skipping of suite when self.needwrapbutton is false. i����N( t requires( t Textt Tkt Toplevelt Frame( t SearchEngine( t SearchDialogBase( t Funct SearchDialogBaseTestc 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 d � Z RS( c C s t d � t � | _ d S( Nt gui( R R t root( t cls( ( s? /usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt setUpClass s c C s | j j � | ` d S( N( R t destroy( R ( ( s? /usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt tearDownClass s c C s: t j | j � | _ t j d | j d | j � | _ d S( NR t engine( t seR R R t sdbR t dialog( t self( ( s? /usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt setUp% s c C s | j j � d S( N( R t close( R ( ( s? /usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt tearDown) s c C s� d | j _ t | j � } t | � } | j j | � | j | j j j � d � | j j � | j | j j j � d � | j j | d d �| j | j j j � d � | j � | j � d S( Nt normalt withdrawnt searchphraset hello( t NoneR t default_commandR R R t opent assertEqualt topt stateR t entt gett update_idletasksR ( R t toplevelt text( ( s? /usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt test_open_and_close, s c C s� t � | j _ t � | j _ t � | j _ t � | j _ d | j _ | j j � | j | j j j � | j | j j j � | j | j j j � | j | j j j � d S( N( R R t create_entriest create_option_buttonst create_other_buttonst create_command_buttonsR R t create_widgetst assertTruet called( R ( ( s? /usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt test_create_widgets<