HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/test/__pycache__/test_finger.cpython-310.pyc
o

�bf�@s>dZddlmZddlmZddlmZGdd�dej�ZdS)z(
Tests for L{twisted.protocols.finger}.
�)�finger)�StringTransport)�unittestc@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�FingerTestsz%
    Tests for L{finger.Finger}.
    cCs$t�|_t��|_|j�|j�dS)zA
        Create and connect a L{finger.Finger} instance.
        N)r�	transportr�Finger�protocol�makeConnection��self�r�:/usr/lib/python3/dist-packages/twisted/test/test_finger.py�setUps
zFingerTests.setUpcC�"|j�d�|�|j��d�dS)z�
        When L{finger.Finger} receives a CR LF terminated line, it responds
        with the default user status message - that no such user exists.
        smoshez
�Login: moshez
No such user
N�r�dataReceived�assertEqualr�valuer
rrr
�test_simple�zFingerTests.test_simplecCr)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
rNrr
rrr
�test_simpleW"rzFingerTests.test_simpleWcCr)z�
        When L{finger.Finger} receives a request for a remote user, it responds
        with a message rejecting the request.
        smoshez@example.com
s!Finger forwarding service denied
Nrr
rrr
�test_forwarding*rzFingerTests.test_forwardingcCr)z�
        When L{finger.Finger} receives a blank line, it responds with a message
        rejecting the request for all online users.
        s
sFinger online list denied
Nrr
rrr
�	test_list2rzFingerTests.test_listN)	�__name__�
__module__�__qualname__�__doc__rrrrrrrrr
r
srN)	r�twisted.protocolsr�twisted.test.proto_helpersr�
twisted.trialr�TestCaserrrrr
�<module>s