ok

Mini Shell

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

�
|fc@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||�|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
tassertIstassertIsInstancetstr(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||�|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
R,R-R.(RRRR/RR0R1((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(RR6R7RRR8R(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(RR6R7RRR8R(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>RCcWsdS(NRC((RD((s1/usr/lib64/python2.7/unittest/test/test_result.pyRERCcWsdS(NRC((RD((s1/usr/lib64/python2.7/unittest/test/test_result.pyRERC(RRt_exc_info_to_stringRtfailfastR4R7RRR*taddUnexpectedSuccess(RR((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestFailFasts			
cs;tjdt�dt�}�fd�}|j|�dS(NtstreamRGcs�j|j�dS(N(RRG(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%R2R5R9RtskipIfR(tflagstoptimizeR:R;RBRIRN(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR
s 
							'	0		

	
	taddSkiptaddExpectedFailureRHt__init__cCs1g|_g|_d|_t|_t|_dS(Ni(R
R	RR
Rtbuffer(RRJtdescriptionst	verbosity((s1/usr/lib64/python2.7/unittest/test/test_result.pyRT/s
				t	OldResulttTest_OldTestResultcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsOtjdtf��4t�}|j|�|jt|j�|�WdQXdS(NsTestResult has no add.+ method,(Rtcheck_warningstRuntimeWarningRXRLRRR
(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(R3(R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestExpectedFailFscSsdS(N((R((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestUnexpectedSuccessIs(RRR`RtexpectedFailureRaRb(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]Cs	R`RaRb(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(RRRhRi(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]Ts	Rii(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.pyRi^s(RRRi(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]\sRii(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.pyRids(RRRi(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR]cstresultclassRJRi(RRRKRXRRL(RR]RM((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestOldResultWithRunnerbs(RRR\RgRjRlRn(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRY9s
				t
MockTracebackcBseZed��ZRS(cGsdgS(NsA traceback((RD((s1/usr/lib64/python2.7/unittest/test/test_result.pytformat_exceptionns(RRtstaticmethodRp(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRomscCsttj_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.pyRhxscCs|jt_|jt_dS(N(RvR(RuRxRw(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(RvRxRRR+RUR,R(RuRwR(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
RC(RvRxRRR+RURR,R(RuRwRtassertIsNotR-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(RRRRUR(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	R4R
R*R&R}iis9
                Stdout:
                foo
            RCs9
                Stderr:
                bar
            sA traceback%s%s(NNN(RoRRRrt
addCleanupRsRR
R�R(RuRwRRR�tgetattrR7RRRttextwraptdedentR,R�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(	RRRRURt	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(	RRRRURR�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(RRRqR�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�sR�i(RRRRURR?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(RRRqR�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyR�)sR�i(RRRRURR?RR(R�R�R�R�RRR	(RRRR�R�((s1/usr/lib64/python2.7/unittest/test/test_result.pyttestBufferTearDownModule"s		

(RRRhRyR|R�R�R�R�R�R�R�(((s1/usr/lib64/python2.7/unittest/test/test_result.pyRtvs				0		.			t__main__(R(R�RRRRrRRRtdictRt__dict__t	classDicttmR7RTttypeR?RXRYRoRsRtRtmain(((s1/usr/lib64/python2.7/unittest/test/test_result.pyt<module>s(�!

4	�

Zerion Mini Shell 1.0