/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/case.pyo (15095B)
Ñò š3ëSc @sðdZddkZddkZddkZddklZddklZddkl Z ddk l Z l Z l Z eieƒZdgZdeifd„ƒYZd eifd „ƒYZd efd „ƒYZd efd„ƒYZdS(sÞnose unittest.TestCase subclasses. It is not necessary to subclass these classes when writing tests; they are used internally by nose.loader.TestLoader to create test cases from test functions and methods in test classes. iÿÿÿÿN(t isfunction(tConfig(tFailure(t resolve_namet test_addressttry_runtTestcBs¤eZdZeZddd„Zd„Zd„Zd„Z d„Z d„Z d„Z d„Z d „Zd „Zeeddd ƒZd „Zd „Zd„ZRS(såThe universal test case wrapper. When a plugin sees a test, it will always see an instance of this class. To access the actual test case that will be run, access the test property of the nose.case.Test instance. cCs‘t|ƒptd|ƒ‚n||_|djo tƒ}n||_d|_d|_||_|i |_ d|_ t i i |ƒdS(NsTnose.case.Test called with argument %r that is not callable. A callable is required.(tcallablet TypeErrorttesttNoneRtconfigttbinfotcapturedOutputt resultProxytpluginstpassedtunittesttTestCaset__init__(tselfR R R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRs          cOs|i||ŽS(N(trun(Rtargtkwarg((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyt__call__,scCs1|ii|ƒ}|dj o|St|iƒS(N(RttestNameR tstrR (Rtname((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyt__str__/s cCs d|iS(NsTest(%r)(R (R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyt__repr__5scCs4y |i}Wntj onX||iƒdS(s>Called after test is complete (after result.stopTest) N(t afterTesttAttributeErrorR (RtresultR((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR8s  cCs4y |i}Wntj onX||iƒdS(s<Called before test is run (before result.startTest) N(t beforeTestRR (RR R!((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR!Bs  cCs"tiƒ\}}}|||fS(s Extract exception info. (tsystexc_info(Rtexctexvttb((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR#LscCs |iiƒS(s0Get a short(er) description of the test (R tid(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR'RscCs2t|idƒo|iiƒSt|iƒSdS(sÈReturn a round-trip name for this test, a name that can be fed back as input to loadTestByName and (assuming the same plugin configuration) result in the loading of this test. taddressN(thasattrR R(R(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR(Wsc Csvy|iiSWntj onXy|iiSWntj onXyt|iiƒSWntj onXdS(N(R tcontextRt __class__Rt __module__R (R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyt_contextbss-Get the context object of this test (if any).c Cs’|io|i||ƒ}nz]y|i|ƒ|i|ƒWn8tj o ‚n$tiƒ}|i||ƒnXWd|i|ƒXdS(sModified run for the test wrapper. From here we don't call result.startTest or stopTest or addSuccess. The wrapper calls addError/addFailure only if its own setup or teardown fails, or running the wrapped test fails (eg, if the wrapped "test" is not callable). Two additional methods are called, beforeTest and afterTest. These give plugins a chance to modify the wrapped test before it is called and do cleanup after it is called. They are called unconditionally. N(RR!trunTesttKeyboardInterruptR"R#taddErrorR(RR terr((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRss   cCsC|i}|iii|ƒ}|dj o |}n||ƒdS(sºRun the test. Plugins may alter the test by returning a value from prepareTestCase. The value must be callable and must accept one argument, the result instance. N(R R RtprepareTestCaseR (RR R t plug_test((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR.Žs    c Csç|ii|ƒ}|dj o|S|i}y|iiƒ|_Wn?tj o3y|iiƒ|_Wq…tj oq…XnXy|iiƒ}Wnt j onXy|t |iƒjodSWnt j onX|S(N( Rt describeTestR R t_testMethodDoctstripRt_TestCase__testMethodDoctshortDescriptiont ExceptionR(RtdescR ((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR8™s*    N(t__name__R,t__doc__tFalset__test__R RRRRRR!R#R'R(R-tpropertyR*RR.R8(((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRs"          tTestBasecBs/eZdZeZd„Zd„Zd„ZRS(sBCommon functionality for FunctionTestCase and MethodTestCase. cCs t|ƒS(N(R(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR'ÁscCs|i|iŒdS(N(R R(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR.ÄscCsvt|idƒo |iiS|iƒ\}}t|ddƒ}|pt|ƒ}n|iƒidƒdiƒS(Nt descriptionR<s i( R)R RAt _descriptorstgetattrR RR6tsplit(RtfuncRtdoc((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR8Çs (R;R,R<R=R>R'R.R8(((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR@¼s   tFunctionTestCasecBs}eZdZeZd d eƒd d„Zd„Zd„Z e e d d dƒZ d„Z d„Z d„ZeZd„ZRS( s˜TestCase wrapper for test functions. Don't use this class directly; it is used internally in nose to create test cases for test functions. cCs>||_||_||_||_||_ti|ƒdS(sInitialize the MethodTestCase. Required argument: * test -- the test function to call. Optional arguments: * setUp -- function to run at setup. * tearDown -- function to run at teardown. * arg -- arguments to pass to the test function. This is to support generator functions that yield arguments. * descriptor -- the function, other than the test, that should be used to construct the test name. This is to support generator functions. N(R t setUpFunct tearDownFuncRt descriptorR@R(RR tsetUpttearDownRRJ((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRÙs      cCs/|idj ot|iƒSt|iƒSdS(sÈReturn a round-trip name for this test, a name that can be fed back as input to loadTestByName and (assuming the same plugin configuration) result in the loading of this test. N(RJR RR (R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR(õscCst|iiƒS(N(RR R,(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR-ÿss!Get context (module) of this testcCs2|io|iƒnd}t|i|ƒdS(s=Run any setup function attached to the test function tsetupRKRHN(RMssetUps setUpFunc(RHRR (Rtnames((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRKs cCs2|io|iƒnd}t|i|ƒdS(s@Run any teardown function attached to the test function tteardownRLRIN(ROstearDowns tearDownFunc(RIRR (RRN((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRL s cCsj|iƒ\}}t|dƒo |i}n |i}d|i|f}|od||f}n|S(Ntcompat_func_names%s.%ss%s%s(RBR)RPR;R,(RRERR((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRs  cCs/|io|i|ifS|i|ifSdS(sfGet the descriptors of the test function: the function and arguments that will be used to construct the test name. In most cases, this is the function itself and no arguments. For tests generated by generator functions, the original (generator) function and args passed to the generated function are returned. N(RJRR (R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRB%s N(R;R,R<R=R>R ttupleRR(R-R?R*RKRLRRRB(((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRGÑs      tMethodTestCasecBszeZdZeZd eƒd d„Zd„ZeZ d„Z d„Z e e d d dƒZ d„Zd„Zd„ZRS( s•Test case wrapper for test methods. Don't use this class directly; it is used internally in nose to create test cases for test methods. cCs¢||_||_||_||_t|ƒotdƒ‚n|i|_|iƒ|_|idjo%|ii }t |i|ƒ|_nt i |ƒdS(s¤Initialize the MethodTestCase. Required argument: * method -- the method to call, may be bound or unbound. In either case, a new instance of the method's class will be instantiated to make the call. Note: In Python 3.x, if using an unbound method, you must wrap it using pyversion.unbound_method. Optional arguments: * test -- the test function to call. If this is passed, it will be called instead of getting a new bound method of the same name as the desired method from the test instance. This is to support generator methods that yield inline functions. * arg -- arguments to pass to the test function. This is to support generator methods that yield arguments. * descriptor -- the function, other than the test, that should be used to construct the test name. This is to support generator methods. s_Unbound methods must be wrapped using pyversion.unbound_method before passing to MethodTestCaseN(tmethodR RRJRt ValueErrortim_classtclstinstR R;RCR@R(RRSR RRJt method_name((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR;s       cCsv|iƒ\}}t|dƒo |i}n |i}d|ii|ii|f}|od||f}n|S(NRPs%s.%s.%ss%s%s(RBR)RPR;RVR,(RRERR((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR_s     cCs/|idj ot|iƒSt|iƒSdS(sÈReturn a round-trip name for this test, a name that can be fed back as input to loadTestByName and (assuming the same plugin configuration) result in the loading of this test. N(RJR RRS(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR(mscCs|iS(N(RV(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyR-wss Get context (class) of this testcCst|idƒdS(NRMRK(ssetupssetUp(RRW(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRK|scCst|idƒdS(NRORL(steardownstearDown(RRW(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRLscCs/|io|i|ifS|i|ifSdS(sgGet the descriptors of the test method: the method and arguments that will be used to construct the test name. In most cases, this is the method itself and no arguments. For tests generated by generator methods, the original (generator) method and args passed to the generated method or function are returned. N(RJRRS(R((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRB‚s N(R;R,R<R=R>R RQRRRR(R-R?R*RKRLRB(((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyRR3s$      (R<tloggingR"RtinspectRt nose.configRt nose.failureRt nose.utilRRRt getLoggerR;tlogt__all__RRR@RGRR(((s:/opt/alt/python27/lib/python2.7/site-packages/nose/case.pyts    ©b