HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/samba/subunit/__pycache__/__init__.cpython-310.pyc
o

�/aH
�@sDdZddlZddlZdZdZdZdZddd�ZGd	d
�d
ej�Z	dS)zSubunit test protocol.�N����cCstt|�dfS�N)�	Exception)�description�r	�8/usr/lib/python3/dist-packages/samba/subunit/__init__.py�RemoteError�rc@sjeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zddd�Z
dd�ZdS)�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.
    cCs$z|j|jkWStyYdSw)NF)�_RemotedTestCase__description�AttributeError)�self�otherr	r	r
�__eq__,s
�zRemotedTestCase.__eq__cCs
||_dS)z7Create a psuedo test case with description description.N�r)rrr	r	r
�__init__2s
zRemotedTestCase.__init__cCstd|��)Nz(%s on RemotedTestCases is not permitted.)�NotImplementedError)r�labelr	r	r
�error6s�zRemotedTestCase.errorcC�|�d�dS)N�setUp�r�rr	r	r
r:rzRemotedTestCase.setUpcCr)N�tearDownrrr	r	r
r=rzRemotedTestCase.tearDowncCs|jSrrrr	r	r
�shortDescription@sz RemotedTestCase.shortDescriptioncCsd|jfS)Nz%srrr	r	r
�idCszRemotedTestCase.idcCsd|j|��fS)Nz%s (%s))r�	_strclassrr	r	r
�__str__FszRemotedTestCase.__str__cCsd|��|jfS)Nz<%s description='%s'>)rrrr	r	r
�__repr__Is�zRemotedTestCase.__repr__NcCs8|dur|��}|�|�|�|td��|�|�dS)NzCannot run RemotedTestCases.
)�defaultTestResult�	startTest�addErrorr�stopTest)r�resultr	r	r
�runMs

zRemotedTestCase.runcCs|j}d|j|jfS)Nz%s.%s)�	__class__�
__module__�__name__)r�clsr	r	r
rTszRemotedTestCase._strclassr)r*r)�__qualname__�__doc__rrrrrrrr r!r'rr	r	r	r
r
"s	
r
)r)
r-�samba�unittest�PROGRESS_SET�PROGRESS_CUR�
PROGRESS_PUSH�PROGRESS_POPr�TestCaser
r	r	r	r
�<module>s