File "test_searchdialogbase.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyc
File size: 6.87 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


V~gc@sdZddlZddlmZddlmZmZmZmZddl	m
Zddl	mZ
ddlmZdejfd	YZed
krejddd
dndS(sUnittests for idlelib/SearchDialogBase.py

Coverage: 99%. The only thing not covered is inconsequential --
testing skipping of suite when self.needwrapbutton is false.

iN(trequires(tTexttTktTopleveltFrame(tSearchEngine(tSearchDialogBase(tFunctSearchDialogBaseTestcBseZedZedZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZRS(cCstdt|_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|jjdS(N(Rtclose(R((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttearDown)scCsd|j_t|j}t|}|jj||j|jjj	d|jj
|j|jjj	d|jj|dd|j|jjjd|j
|jdS(Ntnormalt	withdrawntsearchphrasethello(tNoneRtdefault_commandRR
RtopentassertEqualttoptstateRtenttgettupdate_idletasksR
(Rttoplevelttext((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_open_and_close,s

cCst|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|jd|j	}|t
|dd|t
|dd|t
|dd|t
|d	d||jjddS(
NisTest:RR%trowtcolumnitrowspant
columnspan(RRR/RR
Rt
make_entrytassertInR"t	grid_infotint(Rtequaltentrytlabeltegi((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_entryJs	cCsId|j_|jjd|jj|j|jjjddS(NiR(RR/RtsetpatR'R4R!R"(R((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_entriesYs
cCsd|j_t|j|j_|jj\}}|j|d|j|t|jjd\}}|j|dd|j|tdS(Nitt	testlabelR%(	RR/RR
Rt
make_frameRtassertIsInstanceR(RtframeR9((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_setupjsc	Cs|j}xdD]}x3|j|j|j|jfD]}|j|q5W|j|jj\}}xt	||j
D]\}}|\}}|j|d||j|j||dkr|j
n
|j|j|jd|q}WqWdS(NiiR%(ii(RtrevartcasevartwordvartwrapvartsetRERR(tziptpack_slavesRR"tdeselecttselect(	RteR tvarRBtoptionstspectbuttonR9((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_option_buttonsos	
%"

c
Csx	ttfD]}|jj}|j||j|jj\}}|j}xt	||D]\}}|\}}	|j
|d|	||krc|j
|j|||j|j
|jd||d|j|j
|j|qcqcWq
WdS(NR%i(
tFalsetTrueRtbackvarRJRERR)RLRKRR"RN(
RR RPRBtotherstbuttonsRRRStvalR9((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|dddS(NtTestR%(	RR
RRRtbuttonframetmake_buttonRR(Rtbtn((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_buttonscCsa|jjd}x7|jjjD]#}|ddkr&|d}q&q&W|jd|dS(NR>R%Rtcommand(RR*R]twinfo_childrenR4(Rtclosebuttoncommandtchild((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_command_buttonss
(t__name__t
__module__tclassmethodRRRRR&R.R;R=RCRERTR[R`Re(((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyRs											t__main__t	verbosityitexit(t__doc__tunittestttest.test_supportRtTkinterRRRRtidlelibRRRRtidlelib.idle_test.mock_idleRtTestCaseRRftmain(((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt<module>s"