File: //usr/lib/python3/dist-packages/samba/subunit/__pycache__/__init__.cpython-310.pyc
o
�/aH
� @ sD d Z ddlZddlZdZdZdZdZddd�ZG d d
� d
ej�Z dS )zSubunit test protocol.� N� � � � c C s t t | �d fS �N)� Exception)�description� r �8/usr/lib/python3/dist-packages/samba/subunit/__init__.py�RemoteError � r c @ sj e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zddd�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.
c C s$ z| j |j kW S ty Y dS w )NF)�_RemotedTestCase__description�AttributeError)�self�otherr r r
�__eq__, s
�zRemotedTestCase.__eq__c C s
|| _ dS )z7Create a psuedo test case with description description.N�r )r r r r r
�__init__2 s
zRemotedTestCase.__init__c C s t d| ��)Nz(%s on RemotedTestCases is not permitted.)�NotImplementedError)r �labelr r r
�error6 s �zRemotedTestCase.errorc C � | � d� d S )N�setUp�r �r r r r
r : r zRemotedTestCase.setUpc C r )N�tearDownr r r r r
r = r zRemotedTestCase.tearDownc C s | j S r r r r r r
�shortDescription@ s z RemotedTestCase.shortDescriptionc C s d| j f S )Nz%sr r r r r
�idC s zRemotedTestCase.idc C s d| j | �� f S )Nz%s (%s))r � _strclassr r r r
�__str__F s zRemotedTestCase.__str__c C s d| � � | jf S )Nz<%s description='%s'>)r r r r r r
�__repr__I s �zRemotedTestCase.__repr__Nc C s8 |d u r| � � }|�| � |�| td�� |�| � d S )NzCannot run RemotedTestCases.
)�defaultTestResult� startTest�addErrorr �stopTest)r �resultr r r
�runM s
zRemotedTestCase.runc C s | j }d|j|jf S )Nz%s.%s)� __class__�
__module__�__name__)r �clsr r r
r T s zRemotedTestCase._strclassr )r* r) �__qualname__�__doc__r r r r r r r r r! r'