ok
Direktori : /lib64/python2.7/unittest/test/ |
Current File : //lib64/python2.7/unittest/test/test_runner.pyc |
� `цdc @ 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 StringIOi ( 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( ( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyt testNothing s ( t __name__t __module__R ( ( ( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyR s R c s � j d | | f � d S( Ni ( t append( t argst kwargs( t cleanups( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyt cleanup1 s c s � j d | | f � d S( Ni ( R ( R R ( R ( s1 /usr/lib64/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 s1 /usr/lib64/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 ( ( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyR * s ( R R R ( ( ( s1 /usr/lib64/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( ( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyt addError/ s ( R R R R! ( ( ( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyR - s R t foot barc s � � d S( N( ( ( t exc1( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyR 8 s c s � � d S( N( ( ( t exc2( s1 /usr/lib64/python2.7/unittest/test/test_runner.pyR ; s ( R R t objectt _resultForDoCleanupst ExceptionR t assertFalseR t reversedR R ( R R R R R R R t test1t Type1t instance1t _t test2t Type2t instance2( ( R$ R% s1 /usr/lib64/python2.7/unittest/test/test_runner.pyt testCleanUpWithErrors( s 3"c s t � g � d t j f � � f d � � Y} | d � � � f d � } � f d � } � j | � � j | � � � � f d � } t j � } | | _ � j | � � j � d d d d d d g � t � g � | d � � � j | � � j | � � j � d d g � d S( NR c s8 e Z � � f d � Z � f d � Z � f d � Z RS( c s&