%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/idlelib/idle_test/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyo

�
�Ю]c@s�dZddlZddlmZddlmZmZmZddlm	Z
ddlmZddl
mZdejfd	��YZed
kr�ejddd
d�ndS(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(trequires(tTktTopleveltFrame(tSearchEngine(tSearchDialogBase(tFunctSearchDialogBaseTestcBs�eZed��Zed��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�ZRS(cCstd�t�|_dS(Ntgui(RRtroot(tcls((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt
setUpClasss
cCs|jj�|`dS(N(R	tdestroy(R
((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt
tearDownClass s
cCs:tj|j�|_tjd|jd|j�|_dS(NR	tengine(tseRR	RtsdbRtdialog(tself((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pytsetUp%scCs|jj�dS(N(Rtclose(R((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttearDown)scCs�d|j_|jjd�|j|jjj�d�|jj�|j|jjj�d�|jjddd�|j|jjj	�d�|jj�dS(Nttexttnormalt	withdrawntsearchphrasethello(
tNoneRtdefault_commandtopentassertEqualttoptstateRtenttget(R((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_open_and_close,s
cCs�t�|j_t�|j_t�|j_t�|j_d|j_|jj�|j	|jjj
�|j	|jjj
�|j	|jjj
�|j	|jjj
�dS(N(RRtcreate_entriestcreate_option_buttonstcreate_other_buttonstcreate_command_buttonsRRtcreate_widgetst
assertTruetcalled(R((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_widgets;s
cCs�|j}d|j_t|j�|j_|jjdd�\}}||dd�|j|j�d�|j	�}|t
|d�d�|t
|d�d�|t
|d�d�|t
|d	�d�||jjd�dS(
NisTest:RRtrowtcolumnitrowspant
columnspan(RRR,RR	Rt
make_entrytassertInR"t	grid_infotint(Rtequaltentrytlabeltegi((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_entryIs	cCsId|j_|jjd�|jj�|j|jjj�d�dS(NiR(RR,RtsetpatR$R1R!R"(R((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_entriesXs
cCs�d|j_t|j�|j_|jj�\}}|j|d�|j|t�|jjd�\}}|j|dd�|j|t�dS(Nitt	testlabelR(	RR,RR	Rt
make_frameRtassertIsInstanceR(RtframeR6((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_frame^scCs(t|j�|j_d|j_|�S(Ni(RR	RRR,(Rtmeth((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pytbtn_test_setupisc	Cs|j}x�dD]�}x3|j|j|j|jfD]}|j|�q5W|j|jj�\}}x�t	||j
��D]\}}|\}}|j|d|�|j|j�|�|dkr�|j
�n
|j�|j|j�d|�q}WqWdS(NiiR(ii(RtrevartcasevartwordvartwrapvartsetRBRR%tziptpack_slavesRR"tdeselecttselect(	RteR tvarR?toptionstspectbuttonR6((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_option_buttonsns	
%"

c
Csx	ttfD]�}|jj}|j|�|j|jj�\}}|j�}x�t	||�D]�\}}|\}}	|j
|d|	�||krc|j
|j�|�||j�|j
|j�d|�|d|j�|j
|j�|�qcqcWq
WdS(NRi(
tFalsetTrueRtbackvarRGRBRR&RIRHRR"RK(
RR RMR?totherstbuttonsRORPtvalR6((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_other_buttonss
cCs`t|j�|j_t|jj�|j_|jjd|jj�}|j|dd�dS(NtTestR(	RR	RRRtbuttonframetmake_buttonRR(Rtbtn((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_button�scCsa|jj�d}x7|jjj�D]#}|ddkr&|d}q&q&W|jd|�dS(NR;RRtcommand(RR'RZtwinfo_childrenR1(Rtclosebuttoncommandtchild((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_command_buttons�s
(t__name__t
__module__tclassmethodRR
RRR#R+R8R:R@RBRQRXR]Rb(((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyRs											t__main__t	verbosityitexit(t__doc__tunittestttest.test_supportRtTkinterRRRtidlelibRRRRtidlelib.idle_test.mock_idleRtTestCaseRRctmain(((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt<module>s
�

Zerion Mini Shell 1.0