
    g;
                     T    S r SSKrSrSrSrSrS	S jr " S S\R                  5      rg)
zSubunit test protocol.    N         c                 &    [         [        U 5      S 4$ N)	Exception)descriptions    8/usr/lib/python3/dist-packages/samba/subunit/__init__.pyRemoteErrorr      s    y-t44    c                   ^    \ rS rSrSrS rS rS rS rS r	S r
S	 rS
 rS rSS jrS rSrg)RemotedTestCase!   ah  A class to represent test cases run in child processes.

Instances of this class are used to provide the Python test API a TestCase
that can be printed to the screen, introspected for metadata and so on.
However, as they are a simply a memoisation of a test that was actually
run in the past by a separate process, they cannot perform any interactive
actions.
c                 V     U R                   UR                   :H  $ ! [         a     gf = f)NF)_RemotedTestCase__descriptionAttributeError)selfothers     r
   __eq__RemotedTestCase.__eq__+   s0    	%%)<)<<< 		s    
((c                     Xl         g)z7Create a pseudo test case with description description.Nr   )r   r	   s     r
   __init__RemotedTestCase.__init__1   s    (r   c                     [        SU-  5      e)Nz(%s on RemotedTestCases is not permitted.)NotImplementedError)r   labels     r
   errorRemotedTestCase.error5   s    !"L"'#( ) 	)r   c                 &    U R                  S5        g )NsetUpr   r   s    r
   r!   RemotedTestCase.setUp9   s    

7r   c                 &    U R                  S5        g )NtearDownr"   r#   s    r
   r&   RemotedTestCase.tearDown<   s    

:r   c                     U R                   $ r   r   r#   s    r
   shortDescription RemotedTestCase.shortDescription?   s    !!!r   c                     U R                   < $ r   r   r#   s    r
   idRemotedTestCase.idB   s    ))+r   c                 F    U R                   < SU R                  5       < S3$ )Nz ())r   	_strclassr#   s    r
   __str__RemotedTestCase.__str__E   s     ..0@AAr   c                 H    SU R                  5       < SU R                  < S3$ )N<z description='z'>)r0   r   r#   s    r
   __repr__RemotedTestCase.__repr__H   s     $"4"46 	6r   Nc                     Uc  U R                  5       nUR                  U 5        UR                  U [        S5      5        UR	                  U 5        g )NzCannot run RemotedTestCases.
)defaultTestResult	startTestaddErrorr   stopTest)r   results     r
   runRemotedTestCase.runL   sC    >++-Fk*JKLr   c                 T    U R                   nUR                  < SUR                  < 3$ )N.)	__class__
__module____name__)r   clss     r
   r0   RemotedTestCase._strclassS   s    nn..#,,77r   )__descriptionr   )rC   rB   __qualname____firstlineno____doc__r   r   r   r!   r&   r)   r,   r1   r5   r=   r0   __static_attributes__ r   r
   r   r   !   s?    ))",B68r   r   ) )	rI   unittestPROGRESS_SETPROGRESS_CURPROGRESS_PUSHPROGRESS_POPr   TestCaser   rK   r   r
   <module>rS      s:   $   548h'' 48r   