ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/unittest/test/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/unittest/test/test_result.pyo

�
`цdc@s>ddlZddlZddlmZddlmZddlZddlZdejfd��YZe	ej
j�Zx!dddd	fD]
Z
ee
=q�Weeed
�Zeed	<edefe�Zdejfd
��YZdefd��YZd�Zdejfd��YZedkr:ej�ndS(i����N(tStringIO(ttest_supporttTest_TestResultcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
eje
jjd	kd
�d��Zeje
jjd	kd
�d��Zd
�Zd�Zd�ZRS(cCs�tj�}|j|j��|jt|j�d�|jt|j�d�|j|jd�|j|j	t
�|j|j�|j|j
�dS(Ni(tunittestt
TestResultt
assertTruet
wasSuccessfultassertEqualtlenterrorstfailuresttestsRunt
shouldStoptFalsetassertIsNonet_stdout_buffert_stderr_buffer(tselftresult((s1/usr/lib64/python2.7/unittest/test/test_result.pyt	test_initscCs-tj�}|j�|j|jt�dS(N(RRtstopRRtTrue(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyt	test_stop#s
cCs�dtjfd��Y}|d�}tj�}|j|�|j|j��|jt|j�d�|jt|j	�d�|j|j
d�|j|jt�|j
|�dS(NtFoocBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_1.s(t__name__t
__module__R(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR-sRii(RtTestCaseRt	startTestRRRRR	R
RRR
tstopTest(RRttestR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_startTest,s
cCs%dtjfd��Y}|d�}tj�}|j|�|j|j��|jt|j�d�|jt|j	�d�|j|j
d�|j|jt�|j
|�|j|j��|jt|j�d�|jt|j	�d�|j|j
d�|j|jt�dS(NRcBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRCs(RRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRBsRii(RRRRRRRRR	R
RRR
R(RRRR((s1/usr/lib64/python2.7/unittest/test/test_result.pyt
test_stopTestAs

cCs$tj�}|j�|j�dS(N(RRtstartTestRuntstopTestRun(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_startTestRun_stopTestRun\s
cCs�dtjfd��Y}|d�}tj�}|j|�|j|�|j|�|j|j��|jt	|j
�d�|jt	|j�d�|j|jd�|j|j
t�dS(NRcBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRvs(RRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRusRii(RRRRt
addSuccessRRRRRR	R
RRR
(RRRR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_addSuccessts


cCs'dtjfd��Y}|d�}y|jd�Wntj�}nXtj�}|j|�|j||�|j|�|j	|j
��|jt|j
�d�|jt|j�d�|j|jd�|j|jt�|jd\}}|j||k�|j|t�dS(NRcBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�s(RRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�sRtfooii(RRtfailtsystexc_infoRRt
addFailureRtassertFalseRRRR	R
RRR
RtassertIsInstancetstr(RRRtexc_info_tupleRt	test_caset
formatted_exc((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_addFailure�s$

cCs#dtjfd��Y}|d�}y
t��Wntj�}nXtj�}|j|�|j||�|j|�|j	|j
��|jt|j
�d�|jt|j�d�|j|jd�|j|jt�|j
d\}}|j||k�|j|t�dS(NRcBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�s(RRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�sRii(RRt	TypeErrorR(R)RRtaddErrorRR+RRRR	R
RRR
RR,R-(RRRR.RR/R0((s1/usr/lib64/python2.7/unittest/test/test_result.pyt
test_addError�s$


cCs:tjdtd�}|j|j|�dtd�dS(Nis$testGetDescriptionWithoutDocstring (s.Test_TestResult)(RtTextTestResulttNoneRRtgetDescriptionR(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyt"testGetDescriptionWithoutDocstring�s
is)Docstrings are omitted with -O2 and abovecCs:tjdtd�}|j|j|�dtd�dS(s5Tests getDescription() for a method with a docstring.is(testGetDescriptionWithOneLineDocstring (sG.Test_TestResult)
Tests getDescription() for a method with a docstring.N(RR5R6RRR7R(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyt&testGetDescriptionWithOneLineDocstring�scCs:tjdtd�}|j|j|�dtd�dS(soTests getDescription() for a method with a longer docstring.
        The second line of the docstring.
        is*testGetDescriptionWithMultiLineDocstring (sN.Test_TestResult)
Tests getDescription() for a method with a longer docstring.N(RR5R6RRR7R(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyt(testGetDescriptionWithMultiLineDocstring�scCsbdtfd��Y}tj�}|j|j|��t|jjd<|j|j|��dS(NtFramecBseZdefd��YZRS(ttb_framecBseZiZRS((RRt	f_globals(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR<s(RRtobjectR<(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR;st
__unittest(	R>RRR+t_is_relevant_tb_levelRR<R=R(RR;R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestStackFrameTrimmings
cCs�tj�}d�|_t|_|jdd�|j|j�tj�}d�|_t|_|j	dd�|j|j�tj�}d�|_t|_|j
d�|j|j�dS(NcWsdS(Nt((t_((s1/usr/lib64/python2.7/unittest/test/test_result.pyt<lambda>scWsdS(NRB((RC((s1/usr/lib64/python2.7/unittest/test/test_result.pyRDscWsdS(NRB((RC((s1/usr/lib64/python2.7/unittest/test/test_result.pyRDs(RRt_exc_info_to_stringRtfailfastR3R6RRR*taddUnexpectedSuccess(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestFailFasts			
cs;tjdt�dt�}�fd�}|j|�dS(NtstreamRFcs�j|j�dS(N(RRF(R(R(s1/usr/lib64/python2.7/unittest/test/test_result.pyR%s(RtTextTestRunnerRRtrun(RtrunnerR((Rs1/usr/lib64/python2.7/unittest/test/test_result.pyttestFailFastSetByRunner#s(RRRRRR R#R%R1R4R8RtskipIfR(tflagstoptimizeR9R:RARHRM(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR
s 
							'	0		

	
	taddSkiptaddExpectedFailureRGt__init__cCs1g|_g|_d|_t|_t|_dS(Ni(R
R	RR
Rtbuffer(RRItdescriptionst	verbosity((s1/usr/lib64/python2.7/unittest/test/test_result.pyRS/s
				t	OldResulttTest_OldTestResultcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsOtjdtf��4t�}|j|�|jt|j�|�WdQXdS(NsTestResult has no add.+ method,(Rtcheck_warningstRuntimeWarningRWRKRRR
(RRR
R((s1/usr/lib64/python2.7/unittest/test/test_result.pytassertOldResultWarning;s
	
	
cCsrdtjfd��Y}xRdtfdtfdtffD]/\}}||�}|j|t|��q;WdS(NtTestcBs5eZd�Zejd��Zejd��ZRS(cSs|jd�dS(Ntfoobar(tskipTest(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestSkipDscSs
t�dS(N(R2(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestExpectedFailFscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestUnexpectedSuccessIs(RRR_RtexpectedFailureR`Ra(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR\Cs	R_R`Ra(RRRR
R[tint(RR\t	test_nametshould_passR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldTestResultBs
	cCs3dtjfd��Y}|j|d�d�dS(NR\cBseZd�Zd�ZRS(cSs|jd�dS(Ns	no reason(R^(R((s1/usr/lib64/python2.7/unittest/test/test_result.pytsetUpUscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestFooWs(RRRgRh(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR\Ts	Rhi(RRR[(RR\((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldTestTesultSetupSscCsBtjd�dtjfd��Y�}|j|d�d�dS(Ns	no reasonR\cBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRh^s(RRRh(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR\\sRhi(RtskipRR[(RR\((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldTestResultClass[scCsKdtjfd��Y}tjdtdt��}|j|d��dS(NR\cBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRhds(RRRh(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR\cstresultclassRIRh(RRRJRWRRK(RR\RL((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldResultWithRunnerbs(RRR[RfRiRkRm(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRX9s
				t
MockTracebackcBseZed��ZRS(cGsdgS(NsA traceback((RC((s1/usr/lib64/python2.7/unittest/test/test_result.pytformat_exceptionns(RRtstaticmethodRo(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRnmscCsttj_dS(N(t	tracebackRR(((s1/usr/lib64/python2.7/unittest/test/test_result.pytrestore_tracebackrstTestOutputBufferingcBsbeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
cCstj|_tj|_dS(N(R(tstdoutt	_real_outtstderrt	_real_err(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyRgxscCs|jt_|jt_dS(N(RuR(RtRwRv(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttearDown|scCs�|j}|j}tj�}|j|j�|j|tj�|j|tj	�|j
|�|j|tj�|j|tj	�dS(N(RuRwRRR+RTtassertIsR(RtRvR(Rtreal_outtreal_errR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferOutputOff�s		
cCs|j}|j}tj�}|j|j�t|_|j|tj	�|j|tj
�|j|�|j|tj	�|j|tj
�|j
tj	t�|j
tj
t�|jtj	tj
�tj	}tj
}t�|_t�|_dGHtj
dIJ|j|j�d�|j|j�d�|j|jj�d�|j|jj�d�|j|�|j|�|jtj	|j�|jtj
|j�|j|jj�d�|j|jj�d�|j|j�d�|j|j�d�dS(NR&tbarsfoo
sbar
RB(RuRwRRR+RTRRyR(RtRvRtassertIsNotR,Rt_original_stdoutt_original_stderrRtgetvalueR$R(RRzR{Rt
out_streamt
err_stream((s1/usr/lib64/python2.7/unittest/test/test_result.pyt#testBufferOutputStartTestAddSuccess�s>			
		


cCs&tj�}t|_|j|�|S(N(RRRRTR(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pytgetStartedResult�s	
cCs�ttj_|jt�x�ddtfddtfddtfddtfgD]U\}}}|j�}t	j
}t	j}t�|_
t�|_t	j
dIJ|r�t	jdIJnt||�}||d
�|j|�t||�}|jt|�d�|d\}	}
tjd	�}d
}|rCtjd�}nd||f}
|j|	|�|j|j
j�|�|j|jj�|�|j|
|
�qPWdS(NR	R3R
R*R&R}iis9
                Stdout:
                foo
            RBs9
                Stderr:
                bar
            sA traceback%s%s(NNN(RnRRRqt
addCleanupRrRR
R�R(RtRvRRR�tgetattrR6RRRttextwraptdedentRyR�tassertMultiLineEqual(Rtmessage_attrtadd_attrt
include_errorRtbuffered_outtbuffered_errtaddFunctiontresult_listRtmessagetexpectedOutMessagetexpectedErrMessagetexpectedFullMessage((s1/usr/lib64/python2.7/unittest/test/test_result.pyt!testBufferOutputAddErrorOrFailure�s@
		


	cCsmtj�}t|_dtjfd��Y}tj|d�g�}||�|jt|j�d�dS(NRcBs eZed��Zd�ZRS(cSsdddS(Nii((tcls((s1/usr/lib64/python2.7/unittest/test/test_result.pyt
setUpClass�scSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttest_foo�s(RRtclassmethodR�R�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�sR�i(	RRRRTRt	TestSuiteRRR	(RRRtsuite((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferSetupClass�s	
cCsmtj�}t|_dtjfd��Y}tj|d�g�}||�|jt|j�d�dS(NRcBs eZed��Zd�ZRS(cSsdddS(Nii((R�((s1/usr/lib64/python2.7/unittest/test/test_result.pyt
tearDownClassscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�	s(RRR�R�R�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRsR�i(	RRRRTRR�RRR	(RRRR�((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferTearDownClasss	
cCs�tj�}t|_dtjfd��Y}dtfd��Y}d|_|tjd<|j	tjj
d�tj|d�g�}||�|jt
|j�d�dS(NRcBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�s(RRR�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRstModulecBseZed��ZRS(cSsdddS(Nii((((s1/usr/lib64/python2.7/unittest/test/test_result.pytsetUpModules(RRRpR�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�sR�i(RRRRTRR>RR(tmodulesR�tpopR�RRR	(RRRR�R�((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferSetUpModules		

cCs�tj�}t|_dtjfd��Y}dtfd��Y}d|_|tjd<|j	tjj
d�tj|d�g�}||�|jt
|j�d�dS(NRcBseZd�ZRS(cSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�'s(RRR�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR&sR�cBseZed��ZRS(cSsdddS(Nii((((s1/usr/lib64/python2.7/unittest/test/test_result.pyttearDownModule*s(RRRpR�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�)sR�i(RRRRTRR>RR(R�R�R�R�RRR	(RRRR�R�((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferTearDownModule"s		

(RRRgRxR|R�R�R�R�R�R�R�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRsvs				0		.			t__main__(R(R�RRRRqRRRtdictRt__dict__t	classDicttmR6RSttypeR>RWRXRnRrRsRtmain(((s1/usr/lib64/python2.7/unittest/test/test_result.pyt<module>s(�!

4	�

Zerion Mini Shell 1.0