/opt/alt/python27/lib/python2.7/site-packages/nose
Edit: /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyc (22462B)
Ñò
41{Sc @ sÌ d Z d d k l Z d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k
l Z d d k l
Z
l Z l Z e i d j oa e i d d d
f j o- d d k Z e i d ƒ d d k l Z n d
e f d „ ƒ YZ n e i e ƒ Z e ƒ Z d „ Z d e f d „ ƒ YZ d e i f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ! d e f d „ ƒ YZ" d e i f d „ ƒ YZ# d f d „ ƒ YZ$ d f d „ ƒ YZ% d S( 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( t Test( t Config( t ResultProxyFactory( t isclasst resolve_namet try_runt clii i t
IronPython( t StringExceptionR c B s e Z RS( ( t __name__t
__module__( ( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR s c C s d | i | i f S( Ns %s.%s( R R
( t cls( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt _strclass$ s t MixedContextErrorc B s e Z d Z RS( sQ Error 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 ' s t LazySuitec B s} e Z d Z d d „ Z d „ Z d „ Z d „ Z e Z d „ Z d „ Z d „ Z
d „ Z d „ Z e
e e d d
ƒ Z RS(
s: A suite that may use a generator as its list of tests
c C s$ t t | ƒ i ƒ | i | ƒ d S( sF Initialize the suite. tests may be an iterable or a generator
N( t superR t __init__t
_set_tests( t selft tests( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR 1 s c C s
t | i ƒ S( N( t itert _tests( R ( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt __iter__7 s c C s d t | i ƒ t | ƒ f S( Ns <%s tests=generator (%s)>( R
t __class__t id( R ( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt __repr__: s c C s
t i | ƒ S( N( t objectt __hash__( R ( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyR > s c C s | i i | ƒ d S( N( t _precachet append( R t test( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt addTestC s c C s1 x* | i D] } | i o Pn | | ƒ q
W| S( N( R t
shouldStop( R t resultR ( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt runG s
c C s‰ t i d t | ƒ ƒ | i o t S| i d j o t Sy5 | i i ƒ } | d j o | i i | ƒ t SWn t
j
o n Xt S( Ns tests in %s?( t logt debugR R t Truet test_generatort Nonet Falset nextR t
StopIteration( R R ( ( s; /opt/alt/python27/lib/python2.7/site-packages/nose/suite.pyt __nonzero__N s
c c s^ t i d | i ƒ x | i D] } | Vq W| i d j o d Sx | i D] } | VqK Wd S( Ns precache is %s( R% R&