Current Path : /usr/lib/python2.7/dist-packages/twisted/trial/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyc |
[XMc @ sX d d l m Z m Z d d l m Z m Z m Z d e f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e _ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d Z d S( i( t unittestt util( t reactort protocolt defert FoolishErrorc B s e Z RS( ( t __name__t __module__( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR s t TestFailureInSetUpc B s e Z d Z d Z RS( c C s t d d S( Ns I am a broken setUp method( R ( t self( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyt setUp s c C s d S( N( ( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyt test_noop s ( R R R R ( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR s t TestFailureInTearDownc B s e Z d Z d Z RS( c C s t d d S( Ns I am a broken tearDown method( R ( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyt tearDown s c C s d S( N( ( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR s ( R R R R ( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR s t TestRegularFailc B s# e Z d Z d Z d Z RS( c C s | j d d S( Ns I fail( t fail( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyt test_fail s c C s | j d S( N( t subroutine( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyt test_subfail! s c C s | j d d S( Ns I fail inside( R ( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR $ s ( R R R R R ( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR s t TestFailureInDeferredChainc B s e Z d Z d Z RS( c C s6 t j } | j | j t j d | j d | S( Ni ( R t Deferredt addCallbackt _laterR t callLatert callbackt None( R t d( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR ( s c C s | j d d S( Ns I fail later( R ( R t res( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR - s ( R R R R ( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR ' s t ErrorTestc B s e Z d Z e Z d Z RS( s A test case which has a L{test_foo} which will raise an error. @ivar ran: boolean indicating whether L{test_foo} has been run. c C s t | _ d d d S( sJ Set C{self.ran} to True and raise a C{ZeroDivisionError} i i N( t Truet ran( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyt test_foo: s ( R R t __doc__t FalseR R ( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR 2 s t TestSkipTestCasec B s e Z RS( ( R R ( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/trial/test/erroneous.pyR"