Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/adapter.cpython-37.pyc

B

.��V=�@sGdd�de�ZdS)c@s<eZdZdZeZdd�Zdd�Zdd�Zdd	�Z	d
d�Z
dS)
�Adapterz�The adapter processes a TAP test line and updates a unittest result.

    It is an alternative to TestCase to collect TAP results.
    cCs||_||_dS)N)�	_filename�_line)�self�filename�line�r�</opt/alt/python37/lib/python3.7/site-packages/tap/adapter.py�__init__szAdapter.__init__cCs|jjS)z/Get the short description for verbeose results.)r�description)rrrr�shortDescriptionszAdapter.shortDescriptioncCs�|�|�|jjrLy|�d|jjj�Wntk
rF|�|�YnXdS|jjr�|jj	r�y|�
|�Wq�tk
r�|�|�Yq�Xn8y|�|t
t
�df�Wntk
r�|�|�YnXdS|jj	r�|�|�n
|�|�dS)z�Update test result with the lines in the TAP file.

        Provide the interface that TestCase provides to a suite or runner.
        N)�	startTestr�skip�addSkip�	directive�reason�AttributeError�
addSuccess�todo�ok�addUnexpectedSuccess�
addFailure�addExpectedFailure�	Exception)r�resultrrr�__call__s,
zAdapter.__call__cCs4|�|tt�df�|jd\}}|df|jd<dS)zAdd a failure to the result.N����)rr�failures)rr�test�errrrrr7szAdapter.addFailurecCsdj|jd�S)Nz<file={filename}>)r)�formatr)rrrr�__repr__?szAdapter.__repr__N)�__name__�
__module__�__qualname__�__doc__�AssertionError�failureExceptionr	rrrr!rrrrrs$rN)�objectrrrrr�<module>�