ok

Mini Shell

Direktori : /lib64/python2.7/unittest/test/
Upload File :
Current File : //lib64/python2.7/unittest/test/test_setups.pyo

�
|fc@sgddlZddlmZddlZd�Zdejfd��YZedkrcej�ndS(i����N(tStringIOcGs
tj�S(N(tunittestt
TestResult(t_((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt
resultFactoryst
TestSetupscBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�ZRS(cCstjdtdt��S(Ntresultclasststream(RtTextTestRunnerRR(tself((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt	getRunnerscGs�tj�}x-|D]%}tjj|�}|j|�qW|j�}tj�}|j|�|jtj��|jtj��|j|�S(N(Rt	TestSuitetdefaultTestLoadertloadTestsFromTestCasetaddTestsR
taddTesttrun(R	tcasestsuitetcasetteststrunnert	realSuite((s1/usr/lib64/python2.7/unittest/test/test_setups.pytrunTestss

csqdtjf�fd��Y�|j��}|j�jd�|j|jd�|jt|j�d�dS(NtTestcs5eZdZe�fd��Zd�Zd�ZRS(ics �jd7_tjj�dS(Ni(tsetUpCalledRtTestCaset
setUpClass(tcls(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR$scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_one(scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_two*s(t__name__t
__module__RtclassmethodRRR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR"s	iii(RRRtassertEqualRttestsRuntlenterrors(R	tresult((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_setup_class!s
csqdtjf�fd��Y�|j��}|j�jd�|j|jd�|jt|j�d�dS(NRcs5eZdZe�fd��Zd�Zd�ZRS(ics �jd7_tjj�dS(Ni(ttearDownCalledRRt
tearDownClass(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)6scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR:scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR<s(RR R(R!R)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR4s	iii(RRRR"R(R#R$R%(R	R&((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_teardown_class3s
cs�dtjf�fd��Y�dtjf�fd��Y�|j���}|j�jd�|j�jd�|j|jd�|jt|j�d�dS(NRcs5eZdZe�fd��Zd�Zd�ZRS(ics �jd7_tjj�dS(Ni(R(RRR)(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)HscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRLscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRNs(RR R(R!R)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRFs	tTest2cs5eZdZe�fd��Zd�Zd�ZRS(ics �jd7_tjj�dS(Ni(R(RRR)(R(R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)SscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRWscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRYs(RR R(R!R)RR((R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+Qs	iii(RRRR"R(R#R$R%(R	R&((RR+s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_teardown_class_two_classesEscCs�dtjfd��Y}|j|�}|j|jd�|jt|j�d�|jd\}}|jt|�dt�dS(Nt
BrokenTestcBs)eZed��Zd�Zd�ZRS(cSstd��dS(Ntfoo(t	TypeError(R((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRescSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRhscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRjs(RR R!RRR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR-ds	iissetUpClass (%s.BrokenTest)(	RRRR"R#R$R%tstrR(R	R-R&terrorR((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_setupclasscs	cs�dtjf�fd��Y�dtjf�fd��Y�|j���}|j|jd�|jt|j�d�|j�jd�|j�jd�|jd\}}|jt|�d	t	�dS(
NRcs5eZdZe�fd��Zd�Zd�ZRS(ics�jd7_td��dS(NiR.(ttornDownR/(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)xscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR|scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR~s(RR R3R!R)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRvs	R+cs5eZdZe�fd��Zd�Zd�ZRS(ics�jd7_td��dS(NiR.(R3R/(R(R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(RR R3R!R)RR((R+(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+�s	iiiistearDownClass (%s.Test)(
RRRR"R#R$R%R3R0R(R	R&R1R((RR+s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_teardown_classuscs@dtjf�fd��Y�|j��|j�j�dS(NRcs;eZeZed��Ze�fd��Zd�ZRS(cSs
t�dS(N(R/(R((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scst�_td��dS(NR.(tTrueR3R/(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�s	cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(RR tFalseR3R!RR)R((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(RRRtassertFalseR3(R	((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyt(test_class_not_torndown_when_setup_fails�s
csedtjf�fd��Y�tjd����|j��|j�j�|j�j�dS(NRcsGeZeZeZe�fd��Ze�fd��Zd�ZRS(cs
t�_dS(N(R5t
classSetUp(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scs
t�_dS(N(R5R3(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(	RR R6R9R3R!RR)R((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s
thop(RRtskipRR7R9R3(R	((Rs1/usr/lib64/python2.7/unittest/test/test_setups.pyt-test_class_not_setup_or_torndown_when_skipped�s

cs
g�dtf�fd��Y}dtf�fd��Y}dtjf�fd��Y}dtjf�fd��Y}d	tjf�fd
��Y}d|_|_d|_|tjd<|tjd<tj|d�f�}tj|d
�f�}tj|d�f�}tj|d
�f�}	tj|d�f�}
tj|d
�f�}tj||||	|
|f�}|j�}
|
j|�}|j	|j
d�|j	t|j�d�|j	�ddddddddddddddddg�dS( NtModule1cs2eZe�fd��Ze�fd��ZRS(cs�jd�dS(NsModule1.setUpModule(tappend((tresults(s1/usr/lib64/python2.7/unittest/test/test_setups.pytsetUpModule�scs�jd�dS(NsModule1.tearDownModule(R>((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyttearDownModule�s(RR tstaticmethodR@RA((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR=�stModule2cs2eZe�fd��Ze�fd��ZRS(cs�jd�dS(NsModule2.setUpModule(R>((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@�scs�jd�dS(NsModule2.tearDownModule(R>((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRA�s(RR RBR@RA((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRC�stTest1csPeZe�fd��Ze�fd��Z�fd�Z�fd�ZRS(cs�jd�dS(Nssetup 1(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scs�jd�dS(Ns
teardown 1(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scs�jd�dS(Ns
Test1.testOne(R>(R	(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyttestOne�scs�jd�dS(Ns
Test1.testTwo(R>(R	(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyttestTwo�s(RR R!RR)RERF((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRD�sR+csPeZe�fd��Ze�fd��Z�fd�Z�fd�ZRS(cs�jd�dS(Nssetup 2(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scs�jd�dS(Ns
teardown 2(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scs�jd�dS(Ns
Test2.testOne(R>(R	(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRE�scs�jd�dS(Ns
Test2.testTwo(R>(R	(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRF�s(RR R!RR)RERF((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+�stTest3csPeZe�fd��Ze�fd��Z�fd�Z�fd�ZRS(cs�jd�dS(Nssetup 3(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scs�jd�dS(Ns
teardown 3(R>(R(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scs�jd�dS(Ns
Test3.testOne(R>(R	(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRE�scs�jd�dS(Ns
Test3.testTwo(R>(R	(R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRF�s(RR R!RR)RERF((R?(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRG�stModuleRERFiisModule1.setUpModulessetup 1s
Test1.testOnes
Test1.testTwos
teardown 1ssetup 2s
Test2.testOnes
Test2.testTwos
teardown 2sModule1.tearDownModulesModule2.setUpModulessetup 3s
Test3.testOnes
Test3.testTwos
teardown 3sModule2.tearDownModule(
tobjectRRR tsystmodulesRR
RR"R#R$R%(R	R=RCRDR+RGtfirsttsecondtthirdtfourthtfifthtsixthRRR&((R?s1/usr/lib64/python2.7/unittest/test/test_setups.pyt1test_setup_teardown_order_with_pathological_suite�s:	

!			cs�dtf�fd��Y�dtjfd��Y}d|_�tjd<|j|�}|j�jd�|j|j	d�|jt
|j�d�dS(NRHcs#eZdZe�fd��ZRS(ics�jd7_dS(Ni(tmoduleSetup((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@
s(RR RSRBR@((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHsRcBseZd�Zd�ZRS(cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs	iii(RIRRR RJRKRR"RSR#R$R%(R	RR&((RHs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_setup_module
s	
cs$dtf�fd��Y�dtjf�fd��Y�dtjfd��Y}d�_d|_�tjd<|j�|�}|j�jd�|j�j	d�|j|j
d�|j�j�|j�j
�|jt|j�d�|jd\}}|jt|�d	�dS(
NRHcs>eZdZdZe�fd��Ze�fd��ZRS(ics�jd7_td��dS(NiR.(RSR/((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@"scs�jd7_dS(Ni(tmoduleTornDown((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRA&s(RR RSRURBR@RA((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHsRcsPeZeZeZe�fd��Ze�fd��Zd�Zd�Z	RS(cs
t�_dS(N(R5R9(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR-scs
t�_dS(N(R5t
classTornDown(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)0scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR3scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR5s(
RR R6R9RVR!RR)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR*s	R+cBseZd�Zd�ZRS(cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR9scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR;s(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+8s	iissetUpModule (Module)(RIRRR RJRKRR"RSRUR#R7R9RVR$R%R0(R	R+R&R1R((RHRs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_setup_modules		
cCs[dtjfd��Y}d|_tjjdd�|j|�}|j|j	d�dS(NRcBseZd�Zd�ZRS(cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRMscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyROs(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRLs	RHi(
RRR RJRKtpoptNoneRR"R#(R	RR&((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt!test_testcase_with_missing_moduleKs
	cs�dtf�fd��Y�dtjfd��Y}d|_�tjd<|j|�}|j�jd�|j|j	d�|jt
|j�d�dS(NRHcs#eZdZe�fd��ZRS(ics�jd7_dS(Ni(RU((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRAZs(RR RURBRA((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHXsRcBseZd�Zd�ZRS(cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR_scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRas(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR^s	iii(RIRRR RJRKRR"RUR#R$R%(R	RR&((RHs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_teardown_moduleWs	
csdtf�fd��Y�dtjf�fd��Y�dtjfd��Y}d�_d|_�tjd<|j�|�}|j�jd�|j|j	d�|j
�j�|j
�j�|jt
|j�d�|jd	\}}|jt|�d
�dS(NRHcs#eZdZe�fd��ZRS(ics�jd7_td��dS(NiR.(RUR/((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRAns(RR RURBRA((RH(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRHlsRcsPeZeZeZe�fd��Ze�fd��Zd�Zd�Z	RS(cs
t�_dS(N(R5R9(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRvscs
t�_dS(N(R5RV(R(R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)yscSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR|scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR~s(
RR R6R9RVR!RR)RR((R(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRss	R+cBseZd�Zd�ZRS(cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR+�s	iiistearDownModule (Module)(RIRRR RJRKRR"RUR#t
assertTrueR9RVR$R%R0(R	R+R&R1R((RHRs1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_error_in_teardown_moduleks		
cCs�dtjfd��Y}|j|�}|j|jd�|jt|j�d�|jt|j�d�|jdd}|jt|�dt	�dS(NRcBs)eZed��Zd�Zd�ZRS(cSstjd��dS(NR.(RtSkipTest(R((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(RR R!RRR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s	iissetUpClass (%s.Test)(
RRRR"R#R$R%tskippedR0R(R	RR&R_((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_skiptest_in_setupclass�s	cCs�dtjfd��Y}dtfd��Y}d|_|tjd<|j|�}|j|jd�|jt	|j
�d�|jt	|j�d�|jdd}|jt|�d�dS(NRcBseZd�Zd�ZRS(cSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scSsdS(N((R	((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s(RR RR(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�s	RHcBseZed��ZRS(cSstjd��dS(NR.(RR^(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@�s(RR RBR@(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRH�siissetUpModule (Module)(
RRRIR RJRKRR"R#R$R%R_R0(R	RRHR&R_((s1/usr/lib64/python2.7/unittest/test/test_setups.pyttest_skiptest_in_setupmodule�s	
cs�g�dtf�fd��Y}dtjf�fd��Y}d|_|tjd<tjj|�}|j�ddddd	g}|j	�|�dS(
NRHcs2eZe�fd��Ze�fd��ZRS(cs�jd�dS(NR@(R>((tordering(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@�scs�jd�dS(NRA(R>((Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRA�s(RR RBR@RA((Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRH�sRcsAeZe�fd��Ze�fd��Z�fd�ZRS(cs�jd�dS(NR(R>(R(Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scs�jd�dS(NR)(R>(R(Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scs�jd�dS(Nttest_something(R>(R	(Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRc�s(RR R!RR)Rc((Rb(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�sR@RRcR)RA(
RIRRR RJRKRR
tdebugR"(R	RHRRt
expectedOrder((Rbs1/usr/lib64/python2.7/unittest/test/test_setups.pyt.test_suite_debug_executes_setups_and_teardowns�s
	

cs�dtf�fd��Y}dtjf�fd��Y}d|_|tjd<tjj|�}tj�}|j	|�d
}x=t
|�D]/\�}|jt|��|j
�WdQXq�WdS(NRHcs2eZe�fd��Ze�fd��ZRS(cs�dkrtd��ndS(NiR@(t	Exception((tphase(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR@�scs�dkrtd��ndS(NiRA(Rg((Rh(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRA�s(RR RBR@RA((Rh(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRH�sRcsAeZe�fd��Ze�fd��Z�fd�ZRS(cs�dkrtd��ndS(NiR(Rg(R(Rh(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�scs�dkrtd��ndS(NiR)(Rg(R(Rh(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR)�scs�dkrtd��ndS(NiRc(Rg(R	(Rh(s1/usr/lib64/python2.7/unittest/test/test_setups.pyRc�s(RR R!RR)Rc((Rh(s1/usr/lib64/python2.7/unittest/test/test_setups.pyR�sR@RARR)Rc(R@RARR)Rc(RIRRR RJRKRR
RRt	enumeratetassertRaisesRegexpRgRd(R	RHRt_suiteRtmessagestmsg((Rhs1/usr/lib64/python2.7/unittest/test/test_setups.pyt&test_suite_debug_propagates_exceptions�s

	

(RR R
RR'R*R,R2R4R8R<RRRTRWRZR[R]R`RaRfRn(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyRs&							!			R		-			(			t__main__(	RJt	cStringIORRRRRRtmain(((s1/usr/lib64/python2.7/unittest/test/test_setups.pyt<module>s	��

Zerion Mini Shell 1.0