
    bH
                     X    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	dS )zSubunit test protocol.    N          c                 0    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                   V    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dS )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                 F    	 | j         |j         k    S # t          $ r Y dS w xY w)NF)_RemotedTestCase__descriptionAttributeError)selfothers     r   __eq__zRemotedTestCase.__eq__,   s:    	%)<<< 	 	 	55	s    
  c                     || _         dS )z7Create a psuedo 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                 0    |                      d           d S )NsetUpr   r   s    r   r   zRemotedTestCase.setUp:   s    

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