
    IdH
                     Z    d Z ddlZddlZdZdZdZdZd	dZ G d dej                        Z	y)
zSubunit test protocol.    N         c                 &    t         t        |       d fS N)	Exception)descriptions    8/usr/lib/python3/dist-packages/samba/subunit/__init__.pyRemoteErrorr      s    y-t44    c                   T    e Zd ZdZd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 ZddZd Zy)RemotedTestCasea  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                 T    	 | j                   |j                   k(  S # t        $ r Y yw xY w)NF)_RemotedTestCase__descriptionAttributeError)selfothers     r
   __eq__zRemotedTestCase.__eq__,   s0    	%%)<)<<< 		s    	''c                     || _         y)z7Create a pseudo test case with description description.Nr   )r   r	   s     r
   __init__zRemotedTestCase.__init__2   s
    (r   c                     t        d|z        )Nz(%s on RemotedTestCases is not permitted.)NotImplementedError)r   labels     r
   errorzRemotedTestCase.error6   s    !"L"'#( ) 	)r   c                 &    | j                  d       y )NsetUpr   r   s    r
   r   zRemotedTestCase.setUp:   s    

7r   c                 &    | j                  d       y )NtearDownr   r   s    r
   r!   zRemotedTestCase.tearDown=   s    

:r   c                     | j                   S r   r   r   s    r
   shortDescriptionz RemotedTestCase.shortDescription@   s    !!!r   c                     | j                   S r   r   r   s    r
   idzRemotedTestCase.idC   s    ))+r   c                 B    | j                   d| j                         dS )Nz ())r   	_strclassr   s    r
   __str__zRemotedTestCase.__str__F   s     ..0@AAr   c                 D    d| j                         d| j                  dS )N<z description='z'>)r(   r   r   s    r
   __repr__zRemotedTestCase.__repr__I   s     $"4"46 	6r   Nc                     || j                         }|j                  |        |j                  | t        d             |j	                  |        y )NzCannot run RemotedTestCases.
)defaultTestResult	startTestaddErrorr   stopTest)r   results     r
   runzRemotedTestCase.runM   sC    >++-Fk*JKLr   c                 P    | j                   }|j                  d|j                  S )N.)	__class__
__module____name__)r   clss     r
   r(   zRemotedTestCase._strclassT   s    nn..#,,77r   r   )r8   r7   __qualname____doc__r   r   r   r   r!   r#   r%   r)   r,   r3   r(    r   r
   r   r   "   s?    ))",B68r   r   ) )
r;   sambaunittestPROGRESS_SETPROGRESS_CURPROGRESS_PUSHPROGRESS_POPr   TestCaser   r<   r   r
   <module>rE      s=   $    548h'' 48r   