| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
�
M��e� � �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"