%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/unittest/test/ |
Current File : //usr/local/lib/python2.7/unittest/test/test_runner.pyo |
ó Pêáac @ s d d l Z d d l m Z d d l Z d d l m Z m Z d e j f d „ ƒ YZ d e j f d „ ƒ YZ e d k r‰ e j ƒ n d S( iÿÿÿÿN( t StringIO( t LoggingResultt# ResultWithNoStartTestRunStopTestRunt TestCleanUpc B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c s d t j f d „ ƒ Y} | d ƒ } | j | j g ƒ g ‰ ‡ f d † } ‡ f d † } | j | d d d d d d d ƒ| j | ƒ | j | j | d t d d d d ƒ f | d i f g ƒ | j ƒ } | j | ƒ | j ˆ d d i f d d t d d d d ƒ f g ƒ d S( Nt TestableTestc B s e Z d „ Z RS( c S s d S( N( ( t self( ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyt testNothing s ( t __name__t __module__R ( ( ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyR s R c s ˆ j d | | f ƒ d S( Ni ( t append( t argst kwargs( t cleanups( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyt cleanup1 s c s ˆ j d | | f ƒ d S( Ni ( R ( R R ( R ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyt cleanup2 s i i i t fourt hellot fivet goodbye( i i i ( ( ( i i i ( t unittestt TestCaset assertEqualt _cleanupst addCleanupt dictt doCleanupst assertTrue( R R t testR R t result( ( R s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyt testCleanUp s " c s+ d t j f d „ ƒ Y} d t f d „ ƒ Y} | ƒ } | d ƒ } | | _ t d ƒ ‰ t d ƒ ‰ ‡ f d † } ‡ f d † } | j | ƒ | j | ƒ | j | j ƒ ƒ t | j ƒ \ \ } \ } } } \ } \ } } } | j | | | f | t ˆ f ƒ | j | | | f | t ˆ f ƒ d S( NR c B s e Z d „ Z RS( c S s d S( N( ( R ( ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyR + s ( R R R ( ( ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyR * s t MockResultc B s e Z g Z d „ Z RS( c S s | j j | | f ƒ d S( N( t errorsR ( R R t exc_info( ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyt addError0 s ( R R R R! ( ( ( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyR . s R t foot barc s ˆ ‚ d S( N( ( ( t exc1( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyR 9 s c s ˆ ‚ d S( N( ( ( t exc2( s5 /usr/local/lib/python2.7/unittest/test/test_runner.pyR <