Current File : //proc/self/root/usr/lib/python3/dist-packages/twisted/test/__pycache__/test_finger.cpython-312.pyc |
�
Ϫ�f� � �V � d Z ddlmZ ddlmZ ddlmZ G d� dej � Zy)z(
Tests for L{twisted.protocols.finger}.
� )�StringTransport)�finger)�unittestc �8 � e Zd ZdZdd�Zdd�Zdd�Zdd�Zdd�Zy) �FingerTestsz%
Tests for L{finger.Finger}.
Nc � � t � | _ t j � | _ | j j | j � y)zA
Create and connect a L{finger.Finger} instance.
N)r � transportr �Finger�protocol�makeConnection��selfs �:/usr/lib/python3/dist-packages/twisted/test/test_finger.py�setUpzFingerTests.setUp s1 � � )�*����
�
���
��
�
�$�$�T�^�^�4� c � � | j j d� | j | j j � d� y)z�
When L{finger.Finger} receives a CR LF terminated line, it responds
with the default user status message - that no such user exists.
s moshez
� Login: moshez
No such user
N�r �dataReceived�assertEqualr �valuer
s r �test_simplezFingerTests.test_simple s4 � �
�
�
�"�"�=�1�������-�-�/�1Q�Rr c � � | j j d� | j | j j � d� y)z�
The behavior for a query which begins with C{"/w"} is the same as the
behavior for one which does not. The user is reported as not existing.
s /w moshez
r Nr r
s r �test_simpleWzFingerTests.test_simpleW"