%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/unittest/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/unittest/runner.pyc

ó
Pêáac@sdZddlZddlZddlmZddlmZeZde	fd„ƒYZ
dejfd	„ƒYZd
e	fd„ƒYZ
dS(s
Running testsiÿÿÿÿNi(tresult(tregisterResultt_WritelnDecoratorcBs,eZdZd„Zd„Zdd„ZRS(s@Used to decorate file-like objects with a handy 'writeln' methodcCs
||_dS(N(tstream(tselfR((s+/usr/local/lib/python2.7/unittest/runner.pyt__init__scCs+|dkrt|ƒ‚nt|j|ƒS(NRt__getstate__(RR(tAttributeErrortgetattrR(Rtattr((s+/usr/local/lib/python2.7/unittest/runner.pyt__getattr__scCs'|r|j|ƒn|jdƒdS(Ns
(twrite(Rtarg((s+/usr/local/lib/python2.7/unittest/runner.pytwritelnsN(t__name__t
__module__t__doc__RR
tNoneR
(((s+/usr/local/lib/python2.7/unittest/runner.pyRs		tTextTestResultcBs…eZdZddZddZd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„Zd„ZRS(shA test result class that can print formatted text results to a stream.

    Used by TextTestRunner.
    t=iFt-cCsPtt|ƒj|||ƒ||_|dk|_|dk|_||_dS(Ni(tsuperRRRtshowAlltdotstdescriptions(RRRt	verbosity((s+/usr/local/lib/python2.7/unittest/runner.pyR$s
	cCsB|jƒ}|jr4|r4djt|ƒ|fƒSt|ƒSdS(Ns
(tshortDescriptionRtjointstr(Rttesttdoc_first_line((s+/usr/local/lib/python2.7/unittest/runner.pytgetDescription+scCs\tt|ƒj|ƒ|jrX|jj|j|ƒƒ|jjdƒ|jjƒndS(Ns ... (RRt	startTestRRRRtflush(RR((s+/usr/local/lib/python2.7/unittest/runner.pyR 2s
	cCs_tt|ƒj|ƒ|jr2|jjdƒn)|jr[|jjdƒ|jjƒndS(Ntokt.(	RRt
addSuccessRRR
RRR!(RR((s+/usr/local/lib/python2.7/unittest/runner.pyR$9s		cCsbtt|ƒj||ƒ|jr5|jjdƒn)|jr^|jjdƒ|jjƒndS(NtERRORtE(	RRtaddErrorRRR
RRR!(RRterr((s+/usr/local/lib/python2.7/unittest/runner.pyR'As		cCsbtt|ƒj||ƒ|jr5|jjdƒn)|jr^|jjdƒ|jjƒndS(NtFAILtF(	RRt
addFailureRRR
RRR!(RRR(((s+/usr/local/lib/python2.7/unittest/runner.pyR+Is		cCsktt|ƒj||ƒ|jr>|jjdj|ƒƒn)|jrg|jjdƒ|jj	ƒndS(Ns
skipped {0!r}ts(
RRtaddSkipRRR
tformatRRR!(RRtreason((s+/usr/local/lib/python2.7/unittest/runner.pyR-Qs		cCsbtt|ƒj||ƒ|jr5|jjdƒn)|jr^|jjdƒ|jjƒndS(Nsexpected failuretx(	RRtaddExpectedFailureRRR
RRR!(RRR(((s+/usr/local/lib/python2.7/unittest/runner.pyR1Ys		cCs_tt|ƒj|ƒ|jr2|jjdƒn)|jr[|jjdƒ|jjƒndS(Nsunexpected successtu(	RRtaddUnexpectedSuccessRRR
RRR!(RR((s+/usr/local/lib/python2.7/unittest/runner.pyR3as		cCsL|js|jr"|jjƒn|jd|jƒ|jd|jƒdS(NR%R)(RRRR
tprintErrorListterrorstfailures(R((s+/usr/local/lib/python2.7/unittest/runner.pytprintErrorsiscCsxxq|D]i\}}|jj|jƒ|jjd||j|ƒfƒ|jj|jƒ|jjd|ƒqWdS(Ns%s: %ss%s(RR
t
separator1Rt
separator2(RtflavourR5RR(((s+/usr/local/lib/python2.7/unittest/runner.pyR4os
#(RRRR8R9RRR R$R'R+R-R1R3R7R4(((s+/usr/local/lib/python2.7/unittest/runner.pyRs

										tTextTestRunnercBsDeZdZeZejedeedd„Z
d„Zd„ZRS(sÉA test runner class that displays results in textual form.

    It prints out the names of tests as they are run, errors as they
    occur, and a summary of the results at the end of the test run.
    icCsOt|ƒ|_||_||_||_||_|dk	rK||_ndS(N(RRRRtfailfasttbufferRtresultclass(RRRRR<R=R>((s+/usr/local/lib/python2.7/unittest/runner.pyRs				cCs|j|j|j|jƒS(N(R>RRR(R((s+/usr/local/lib/python2.7/unittest/runner.pyt_makeResult‰scCs‘|jƒ}t|ƒ|j|_|j|_tjƒ}t|ddƒ}|dk	rb|ƒnz||ƒWdt|ddƒ}|dk	r›|ƒnXtjƒ}||}|jƒt|dƒrá|j	j
|jƒn|j}|j	j
d||dkrdpd|fƒ|j	j
ƒd	}	}
}y%t
t|j|j|jfƒ}Wntk
rlnX|\}	}
}g}
|jƒsö|j	jd
ƒt
t|j|jfƒ\}}|rÙ|
jd|ƒn|r|
jd|ƒqn|j	jd
ƒ|r |
jd|ƒn|	r:|
jd|	ƒn|
rT|
jd|
ƒn|
r}|j	j
ddj|
ƒfƒn|j	jdƒ|S(s&Run the given test case or test suite.tstartTestRunNtstopTestRunR9sRan %d test%s in %.3fsiR,titFAILEDsfailures=%ds	errors=%dtOKs
skipped=%dsexpected failures=%dsunexpected successes=%ds (%s)s, s
(R?RR<R=ttimeRRR7thasattrRR
R9ttestsRuntmaptlentexpectedFailurestunexpectedSuccessestskippedRt
wasSuccessfulRR6R5tappendR(RRRt	startTimeR@RAtstopTimet	timeTakentrunt
expectedFailsRKRLtresultstinfostfailedterrored((s+/usr/local/lib/python2.7/unittest/runner.pyRRŒsb



	#

!#N(
RRRRR>tsyststderrtTruetFalseRRR?RR(((s+/usr/local/lib/python2.7/unittest/runner.pyR;ws		(RRXRERBRtsignalsRRZt
__unittesttobjectRt
TestResultRR;(((s+/usr/local/lib/python2.7/unittest/runner.pyt<module>s[

Zerion Mini Shell 1.0