Your IP : 216.73.216.85
B
.��VQ � @ st G d d� de �ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZdS )c @ s e Zd ZdZedd� �ZdS )�LinezhBase type for TAP data.
TAP is a line based protocol. Thus, the most primitive type is a line.
c C s t �d S )N)�NotImplementedError)�self� r �9/opt/alt/python37/lib/python3.7/site-packages/tap/line.py�category s z
Line.categoryN)�__name__�
__module__�__qualname__�__doc__�propertyr r r r r r s r c @ sj e Zd ZdZddd�Zedd� �Zedd � �Zed
d� �Zedd
� �Z edd� �Z
edd� �Zdd� ZdS )�Resultz*Information about an individual test line.N� c C s2 || _ |rt|�| _nd | _|| _|| _|| _d S )N)�_ok�int�_number�_description� directive�diagnostics)r �ok�number�descriptionr r r r r �__init__ s zResult.__init__c C s dS )z:returns: ``test``�testr )r r r r r s zResult.categoryc C s | j S )z1Get the ok status.
:rtype: bool
)r )r r r r r # s z Result.okc C s | j S )z2Get the test number.
:rtype: int
)r )r r r r r + s z
Result.numberc C s | j S )zGet the description.)r )r r r r r 3 s zResult.descriptionc C s | j jS )z>Check if this test was skipped.
:rtype: bool
)r �skip)r r r r r 8 s zResult.skipc C s | j jS )z=Check if this test was a TODO.
:rtype: bool
)r �todo)r r r r r @ s zResult.todoc C s\ d}| j sd}d}| jd k r*d�| jj�}d}| jd k rFd| j�� }d�|| j| j||�S )Nr
znot z # {0}�
z{0}ok {1} - {2}{3}{4})r r �format�textr �rstripr r )r �is_notr r r r r �__str__H s
zResult.__str__)Nr
NN)
r r r r
r r r r r r r r r r r r r r s
r c @ s>