HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/test/__pycache__/test_finger.cpython-38.pyc
U


W[��@s>dZddlmZddlmZddlmZGdd�dej�ZdS)z(
Tests for L{twisted.protocols.finger}.
�)�unittest)�finger)�StringTransportc@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�	transportrZFinger�protocolZmakeConnection��self�r
�:/usr/lib/python3/dist-packages/twisted/test/test_finger.py�setUps
zFingerTests.setUpcCs"|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�rZdataReceivedZassertEqualr�valuerr
r
r�test_simples
�zFingerTests.test_simplecCs"|j�d�|�|j��d�dS)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
Nrrr
r
r�test_simpleW%s
�zFingerTests.test_simpleWcCs"|j�d�|�|j��d�dS)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
Nrrr
r
r�test_forwarding0s
�zFingerTests.test_forwardingcCs"|j�d�|�|j��d�dS)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
Nrrr
r
r�	test_list;s
�zFingerTests.test_listN)	�__name__�
__module__�__qualname__�__doc__rrrrrr
r
r
rr
s	rN)	rZ
twisted.trialrZtwisted.protocolsrZtwisted.test.proto_helpersrZTestCaserr
r
r
r�<module>s