Hacked By AnonymousFox

Current Path : /proc/thread-self/root/opt/alt/python27/lib64/python2.7/unittest/test/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyc

�
^
bc@s�ddlmZddlZddlZddlZddlZdejfd��YZdejfd��YZ	e
�Zde
fd��YZd	ejfd
��YZ
edkr�ej�ndS(i����(tStringIONtTest_TestProgramcBsgeZd�Zd�Zdejfd��YZdejfd��YZd�Z	d�Z
d�ZRS(	cs�tj�}�g�tjjtjjtjj���t�_	���fd�}||_
|jd�}�j�j	��j
|j��dS(Ncst�_�j|���S(N(tTruetwasRuntassertEqual(t	start_dirtpattern(texpectedPathtselfttests(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt_find_testss	s
unittest.test(tunittestt
TestLoadertostpathtabspathtdirnamettestt__file__tFalseRR
tdiscovert
assertTrueRt_tests(RtloaderR
tsuite((RRR	s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttest_discovery_from_dotted_paths	$		cs�t��t�}dtf�fd��Y}|�}tjj��fd�}d�tj_|j|�d�}|tj_|j|�tjd|dtdd	�}|j|j��|j|j|�|j|j	d	�dS(
Nt
FakeRunnercseZ�fd�ZRS(cs
||_�S(N(R(RR(tresult(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pytrun!s	(t__name__t
__module__R((R(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyR scs�tj_dS(N(RtTestProgramt	parseArgs((toldParseArgs(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pytrestoreParseArgs(scWsdS(N(tNone(targs((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt<lambda>*tcSs
tj`dS(N(RRR(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt
removeTest-st
testRunnertexitt	verbosityi(
tobjectRRR t
addCleanupRRRRR*(RRRtrunnerR"R'tprogram((R!Rs?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt
testNoExits			
	
tFooBarcBseZd�Zd�ZRS(cCstst�dS(N(RtAssertionError(R((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestPass9scCstst�dS(N(RR1(R((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestFail;s(RRR2R3(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyR08s	tFooBarLoadercBseZdZd�ZRS(s3Test loader that returns a suite containing FooBar.cCs|j|jtj�g�S(N(t
suiteClasstloadTestsFromTestCaseRR0(Rtmodule((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pytloadTestsFromModule@s(RRt__doc__R8(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyR4>sc	CsVtjdtddgdtjdt��d|j��}|jt|d��dS(NR)targvtfoobarR(tstreamt
testLoaderR(RtmainRtTextTestRunnerRR4Rthasattr(RR.((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttest_NonExitEs
	cCsG|jttjddgdtjdt��dtd|j��dS(NR:R;R(R<R)R=(tassertRaisest
SystemExitRR>R?RRR4(R((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt	test_ExitMs		c	CsA|jttjddgdtjdt��d|j��dS(NR:R;R(R<R=(RBRCRR>R?RR4(R((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttest_ExitAsDefaultWs		(RRRR/RtTestCaseR0RR4RARDRE(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyR	s				
tInitialisableProgramcBsDeZeZdZdZdZdZe	j
ZdZdZ
d�ZRS(iRcGsdS(N((RR$((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt__init__isN(RRRR)R#RR*tdefaultTestR(RtdefaultTestLoaderR=tprogNameRRH(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyRG`s	RcBs,eZdZdZeZd�Zd�ZRS(cKs(|t_tjr$tt_t�ndS(N(RtinitArgst
raiseErrorRt	TypeError(Rtkwargs((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyRHss			cCs
|t_tS(N(RRtRESULT(RR((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyRys	N(	RRR#RLRRRMRHR(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyRns
	tTestCommandLineArgscBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCs:t�|_d�|j_dt_dt_tt_dS(NcSsdS(N(R#(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyR%�R&(	RGR.tcreateTestsR#RRLRRRM(R((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pytsetUps
		cs�|j�d�fd�}|�_xJdD]B}t�_�jd|g�|j�j�|j�j�q+W�jddg�|j�j�|j	�j�dS(Ncs|�_t�_dS(N(tmsgRR)(RT(R.(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt	usageExit�s	s-hs-Hs--helps-$(s-hs-Hs--help(
R.R#RURR)R RtassertIsNoneRTtassertIsNotNone(RRUtopt((R.s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestHelpAndUnknown�s		
	cCs�|j}x=dD]5}d|_|jd|g�|j|jd�qWx=d	D]5}d|_|jd|g�|j|jd�qPWdS(
Ns-qs--quietiis-vs	--verbosei(s-qs--quiet(s-vs	--verbose(R.R*R R#R(RR.RX((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt
testVerbosity�s	
	
	cCs
|j}x�dd	d
fD]�\}}|dkr>tr>qnd|d}d|}xM||fD]?}t||d�|jd|g�|jt||��qcWxY||fD]K}t�}t|||�|jd|g�|jt||�|�q�WqWdS(Ntbuffertfailfasttcatcht
catchbreaks-%sis--%s(R[R[(R\R\(R]R^(	R.thasInstallHandlertsetattrR#R RtgetattrR+R(RR.targtattrt	short_opttlong_optRXtnot_none((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestBufferCatchFailfast�s 		
	cCs�|j}t|_d|_d|_d|_|j�|jtjidd6dd6dd6�|jtj	d�|j
|jt�dS(NR*R\R[R(
R.RR(R*R\R[trunTestsRRLRtassertIsRRP(RR.((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestRunTestsRunnerClass�s					
cCsb|j}t�|_dt_|j�|jtj�|jtjd�|j	|j
t�dS(NR(R.RR(R#RLRhRVRRRiRRP(RR.((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestRunTestsRunnerInstance�s		
cCs�|j}tt_t|_d|_d|_d|_d|_|j	�|j
tji�|j
tjd�|j|j
t�dS(NR*R\R[R(R.RRRMR(R*R\R[RRhRRLRiRRP(RR.((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestRunTestsOldRunnerClass�s							
cs�tjd��j���fd�}�j|�t�_�fd�}|�_�j}t|_t	|_
|j��j�j�dS(Ns
unittest.maincs
��_dS(N(tinstallHandler((R7toriginal(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pytrestore�scs
t�_dS(N(Rt	installed((R(s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pytfakeInstallHandler�s(
tsystmodulesRmR,RRpR.RR^RR(RhR(RRoRqR.((R7RnRs?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyttestCatchBreakInstallsHandler�s
	
					
(
RRRSRYRZRgRjRkRlRt(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyRQ}s			
				t__main__(t	cStringIORR
RrRt
unittest.testRFRRRGR+RPRRQRR>(((s?/opt/alt/python27/lib64/python2.7/unittest/test/test_program.pyt<module>sW	�

Hacked By AnonymousFox1.0, Coded By AnonymousFox