/opt/alt/python27/lib/python2.7/site-packages/nose
NameSizeModeActions
ext/-0755rm
plugins/-0755rm
sphinx/-0755rm
tools/-0755rm
case.py131710644editdlrm
case.pyc150950644editdlrm
case.pyo150950644editdlrm
commands.py63100644editdlrm
commands.pyc61500644editdlrm
commands.pyo61500644editdlrm
config.py252360644editdlrm
config.pyc242570644editdlrm
config.pyo242570644editdlrm
core.py130930644editdlrm
core.pyc134690644editdlrm
core.pyo134690644editdlrm
exc.py3760644editdlrm
exc.pyc5890644editdlrm
exc.pyo5890644editdlrm
failure.py12490644editdlrm
failure.pyc20000644editdlrm
failure.pyo20000644editdlrm
importer.py59780644editdlrm
importer.pyc57620644editdlrm
importer.pyo57620644editdlrm
inspector.py69860644editdlrm
inspector.pyc60920644editdlrm
inspector.pyo60920644editdlrm
loader.py254910644editdlrm
loader.pyc189420644editdlrm
loader.pyo188950644editdlrm
proxy.py68790644editdlrm
proxy.pyc83950644editdlrm
proxy.pyo81910644editdlrm
pyversion.py74240644editdlrm
pyversion.pyc95370644editdlrm
pyversion.pyo95370644editdlrm
result.py67110644editdlrm
result.pyc70750644editdlrm
result.pyo70750644editdlrm
selector.py90900644editdlrm
selector.pyc92670644editdlrm
selector.pyo92670644editdlrm
suite.py223410644editdlrm
suite.pyc224620644editdlrm
suite.pyo224620644editdlrm
twistedtools.py55250644editdlrm
twistedtools.pyc63190644editdlrm
twistedtools.pyo63190644editdlrm
usage.txt44250644editdlrm
util.py201370644editdlrm
util.pyc216160644editdlrm
util.pyo216160644editdlrm
__init__.py4040644editdlrm
__init__.pyc7020644editdlrm
__init__.pyo7020644editdlrm
__main__.py1440644editdlrm
__main__.pyc3620644editdlrm
__main__.pyo3620644editdlrm
Edit: /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyc (22462B)
Ñò 41{Sc@sÌdZddklZddkZddkZddkZddklZddkl Z ddk l Z ddk l Z lZlZeidjoaeid d d fjo-ddkZeid ƒdd klZnd efd„ƒYZneieƒZeƒZd„Zdefd„ƒYZdeifd„ƒYZdefd„ƒYZ defd„ƒYZ!defd„ƒYZ"deifd„ƒYZ#dfd„ƒYZ$dfd„ƒYZ%dS( sâ Test Suites ----------- Provides a LazySuite, which is a suite whose test list is a generator function, and ContextSuite,which can run fixtures (setup/teardown functions or methods) for the context that contains its tests. iÿÿÿÿ(t generatorsN(tTest(tConfig(tResultProxyFactory(tisclasst resolve_namettry_runtcliiit IronPython(tStringExceptionR cBseZRS((t__name__t __module__(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR scCsd|i|ifS(Ns%s.%s(R R (tcls((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt _strclass$stMixedContextErrorcBseZdZRS(sQError raised when a context suite sees tests from more than one context. (R R t__doc__(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR'st LazySuitecBs}eZdZd d„Zd„Zd„Zd„ZeZd„Zd„Z d„Z d„Z d „Z e e e d d ƒZRS( s:A suite that may use a generator as its list of tests cCs$tt|ƒiƒ|i|ƒdS(sFInitialize the suite. tests may be an iterable or a generator N(tsuperRt__init__t _set_tests(tselfttests((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR1scCs t|iƒS(N(titert_tests(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt__iter__7scCsdt|iƒt|ƒfS(Ns<%s tests=generator (%s)>(R t __class__tid(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt__repr__:scCs ti|ƒS(N(tobjectt__hash__(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR>scCs|ii|ƒdS(N(t _precachetappend(Rttest((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pytaddTestCscCs1x*|iD]}|ioPn||ƒq W|S(N(Rt shouldStop(RtresultR ((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pytrunGs   cCs‰tidt|ƒƒ|iotS|idjotSy5|iiƒ}|dj o|ii |ƒtSWnt j onXtS(Ns tests in %s?( tlogtdebugRRtTruettest_generatortNonetFalsetnextRt StopIteration(RR ((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt __nonzero__Ns   ccs^tid|iƒx|iD] }|VqW|idjodSx|iD] }|VqKWdS(Nsprecache is %s(R%R&RR(R)(RR ((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt _get_tests]s   cCs~g|_t|tiƒ}t|ƒo| o|ƒ|_n;|o|i|gƒd|_n|i|ƒd|_dS(N(Rt isinstancetunittestt TestSuitetcallableR(taddTestsR)(RRtis_suite((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRfs   sbAccess the tests in this suite. Access is through a generator, so iteration may not be repeatable.(N(R R RRRRRt__str__R!R$R-R.RtpropertyR)R(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR.s         t ContextSuitecBs eZdZeiiZeZeZd.Z d/Z d0Z d1Z d2Z d3Zd4d5d5d5d5ed„Zd„ZeZd„Zd „Zd!„Zd"„Zd#„Zd$„Zd5d%„Zd&„Zd'„Zd(„Zd)„Zd*„Zd+„Z d,„Z!e"e!e#i$d5d-ƒZ%RS(6s4A suite with context. A ContextSuite executes fixtures (setup and teardown functions or methods) for the context containing its tests. The context may be explicitly passed. If it is not, a context (or nested set of contexts) will be constructed by examining the tests in the suite. t setup_classt setup_allt setupClasstsetupAllt setUpClasstsetUpAlltteardown_classt teardown_allt teardownClasst teardownAllt tearDownClasst tearDownAllt setup_modulet setupModulet setUpModuletsetuptsetUptteardown_moduletteardownModulettearDownModuletteardownttearDownt setup_packaget setupPackaget setUpPackagetteardown_packagetteardownPackagettearDownPackagecCstid||t|ƒƒ||_||_|djo tƒ}n||_||_t |_ ||_ d|_ t t|ƒi|ƒdS(NsContext suite for %s (%s) (%s)(R%R&RtcontexttfactoryR)Rtconfigt resultProxyR*thas_runt can_splitt error_contextRR7R(RRRTRURVRWRY((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR’s         cCs)dt|iƒt|id|iƒfS(Ns<%s context=%s>R (R RtgetattrRT(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR s cCs0|iodt|ƒ|ifSt|ƒSdS(Ns%s:%s(RZtrepr(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR¦s cCs ti|ƒS(N(RR(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR¬scOs|i||ŽS(N(R$(Rtargtkw((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt__call__°scCs tiƒS(s.Hook for replacing error tuple output (tsystexc_info(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRa³scCs]|iƒ}tidjo=t|dtƒo%t|dƒ|d|df}qYn|S(s:Bottleneck to fix up IronPython string exceptions Riii(RaR`tplatformR/R tstr(Rte((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt _exc_info¸s  )cCs;tidt|ƒ||iƒ|io|i||ƒ|}}n||}}y|iƒWn<tj o ‚n(d|_|i||i ƒƒdSXz>x7|iD],}|i otidƒPn||ƒq­WWdt |_ y|i ƒWn;tj o ‚n'd|_|i||i ƒƒnXXdS(s5Run tests in suite inside of suite fixtures. s#suite %s (%s) run called, tests: %sRGNtstoppingRL(R%R&RRRWRHtKeyboardInterruptRZtaddErrorReR"R'RXRM(RR#torigR ((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR$Ås6        cCs|i}|djotS|i|d|ƒotS|i}|oE|ii|gƒ}x-|D]!}|i|d|ƒotSqbWntS(Nt ctx_callback(RTR)R*timplementsAnyFixtureR'RUtget(RRjRTRUt ancestorstancestor((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt hasFixturesës    cCsªt|ƒo|i|i}n9|i|i}t|dƒo||i|i7}nt}x)|D]!}t||ƒo t }PqfqfW|djo|S|||ƒS(Nt__path__( Rt classSetupt classTeardownt moduleSetuptmoduleTeardownthasattrt packageSetuptpackageTeardownR*R'R)(RRTRjtnamestfixttm((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRkûs   cCsOtidt|ƒ|iƒ|ptidt|ƒƒdS|iotidt|ƒƒdS|i}|djodS|i}|oš|ii|gƒ}x\|oT|i ƒ}tid|ƒ||ijoq§ntid|ƒ|i |ƒq§W||ijo|i |ƒq5n|i |ƒt |_tidƒdS(Ns suite %s setUp called, tests: %sssuite %s has no testsssuite %s already set upsancestor %s may need setupsancestor %s does need setupscompleted suite setup( R%R&RRt was_setupRTR)RURltpopt setupContextR'(RRTRURmRn((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRH s4       cCs±|iii|ƒtid||ƒ|io,||iijodS||ii|R?R@RARBRC(RDRERFssetupssetUp(RIRJRKsteardownstearDown(RNRORP(RQRRRS(N(&R R RR0tTestCasetfailureExceptionR*R{RRqRrRsRtRvRwR)R'RRR5RRR_RaReR$RoRkRHR}R€RMR‚R„R6RRR(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR7ysF         &     !  tContextSuiteFactorycBs\eZdZeZdded„Zd„Zd„Z d„Z d„Z d„Z d„Z RS( sCFactory for ContextSuites. Called with a collection of tests, the factory decides on a hierarchy of contexts by introspecting the collection or the tests themselves to find the objects containing the test objects. It always returns one suite, but that suite may consist of a hierarchy of nested suites. cCsŽ|djo tƒ}n||_|dj o ||_n|tjotd|ƒ}n||_h|_h|_h|_ h|_ dS(NRV( R)RRVt suiteClasst_defRRWtsuitesRTR{R(RRVRˆRW((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR‰s          cKs¶tid|ƒ|idt|ddƒƒ}tid||ƒ|djoU|i|ƒ}y|i|ƒ}Wq£tj o |i|i |ƒd|SXn|i|||S(sÄReturn ``ContextSuite`` for tests. ``tests`` may either be a callable (in which case the resulting ContextSuite will have no parent context and be evaluated lazily) or an iterable. In that case the tests will wrapped in nose.case.Test, be examined and the context of each found and a suite of suites returned, organized into a stack with the outermost suites belonging to the outermost contexts. sCreate suite for %sRTstests %s context %sN( R%R&R|R[R)t wrapTestst findContextRt makeSuitet mixedSuites(RRR^RT((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR_™s  "ccstid|ƒ|djodSt|dƒo |i}n!t|dƒo|ii}nt|dƒo|iidƒ}n;t|dƒo|i idƒd }nt d |ƒ‚x=|o5tid ||ƒt di |ƒƒV|i ƒqÂWdS( sØReturn the ancestry of the context (that is, all of the packages and modules containing the context), in order of descent with the outermost ancestor last. This method is a generator. sget ancestry %sNtim_classt__self__R t.R iÿÿÿÿs%s has no ancestors?s %s ancestors %s(R%R&R)RuRRRR tsplitR t TypeErrorRtjoinR|(RRTRm((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pytancestry­s"  cCs¤t|ƒpt|tiƒodSd}xr|D]j}t|ddƒ}|djoq2n|djo |}q2||jotd||fƒ‚q2q2W|S(NRTs5Tests with different contexts in same suite! %s != %s(R2R/R0R1R)R[R(RRRTR tctx((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRŒÈs     c Ksü|i|d|d|id|d|i|}|dj o»|ii|gƒi|ƒ|ii|gƒi|ƒti d|t |ddƒƒxa|i |ƒD]L}|ii|gƒi|ƒ|i|i|ƒti d||i ƒq¤Wn|S(NRTRVRURWssuite %s has context %sR ssuite %s has ancestor %s( RˆRVRWR)RŠt setdefaultRRTR%R&R[R•R (RRRTR^tsuiteRn((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRÙs  c Cs¤|pgS|idƒ}|p|gS|}|}t|ddƒ}|dj oC|gg}|i|ƒD] }||qp~}x|D]} |g} g} x¿|D]·} t} t| ddƒ}|djo| i| ƒqªn|| jo| i| ƒqªnx<|i|ƒD]+}|| jo| i| ƒt} PqqW| p| i| ƒqªqªW| o|i| | ƒ}n|i| ƒ}qŽWn|g|S(scThe complex case where there are tests that don't all share the same context. Groups tests into suites with common ancestors, according to the following (essentially tail-recursive) procedure: Starting with the context of the first test, if it is not None, look for tests in the remaining tests that share that ancestor. If any are found, group into a suite with that ancestor as the context, and replace the current suite with that suite. Continue this process for each ancestor of the first test, until all ancestors have been processed. At this point if any tests remain, recurse with those tests as the input, returning a list of the common suite (which may be the suite or test we started with, if no common tests were found) plus the results of recursion. iRTN( R|R[R)R•R*RR'RRŽ(RRtheadR˜ttailRTt_[1]taRmRntcommontremainR t found_commonttest_ctxt test_ancestor((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRŽèsH 1        cCsùtid|ƒt|ƒpt|tiƒotidƒ|Sg}xª|D]¢}tid|ƒt|tƒpt|tiƒo|i|ƒqOt|tƒo#|i|i |d|i ƒƒqO|it|d|i d|i ƒƒqOW|S(Nswrap %ss I won't wraps wrapping %sRTRVRW( R%R&R2R/R0R1RRt ContextListRRTRVRW(RRtwrappedR ((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR‹s  ###N(R R RR7RˆR)R‰RR_R•RŒRRŽR‹(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR‡s     2R¢cBs#eZdZdd„Zd„ZRS(sÄNot quite a suite -- a group of tests in a context. This is used to hint the ContextSuiteFactory about what context the tests belong to, in cases where it may be ambiguous or missing. cCs||_||_dS(N(RRT(RRRT((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR2s cCs t|iƒS(N(RR(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR6sN(R R RR)RR(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR¢-s tFinalizingSuiteWrappercBs2eZdZd„Zd„Zd„Zd„ZRS(sÐWraps suite and calls final function after suite has executed. Used to call final functions in cases (like running in the standard test runner) where test running is not under nose's control. cCs)tt|ƒiƒ||_||_dS(N(RR¤RR˜tfinalize(RR˜R¥((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR@s cOs|i||ŽS(N(R$(RR]R^((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR_EscCs t|iƒS(N(RR˜(R((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRIscOs,z|i||ŽSWd|i||ŽXdS(N(R˜R¥(RR]R^((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR$Ls(R R RRR_RR$(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR¤:s    tTestDircBseZd„ZRS(cOstdƒ‚dS(Ns…TestDir is not usable with nose 0.10. The class is present in nose.suite for backwards compatibility purposes but it may not be used.(tNotImplementedError(R]R^((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyRUs(R R R(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR¦Tst TestModulecBseZd„ZRS(cOstdƒ‚dS(NsˆTestModule is not usable with nose 0.10. The class is present in nose.suite for backwards compatibility purposes but it may not be used.(R§(R]R^((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR]s(R R R(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR¨\s(&Rt __future__RtloggingR`R0t nose.caseRt nose.configRt nose.proxyRt nose.utilRRRRbt version_infotclrt AddReferencetIronPython.Runtime.ExceptionsR t Exceptiont getLoggerR R%RR‰R RR1RR7R‡R¢R¤R¦R¨(((s;/opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt s4       Kÿ ¬