Ë
    ojŒ  ã                   óV   — d Z ddlmZ ddlmZ ddlmZ  G d„ dej                  «      Zy)z(
Tests for L{twisted.protocols.finger}.
é    )ÚStringTransport)Úfinger)Úunittestc                   ó8   — e Zd ZdZdd„Zdd„Zdd„Zdd„Zdd„Zy)	Ú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ÚsetUpzFingerTests.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_simplezFingerTests.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_simpleWzFingerTests.test_simpleW"   s5   € ð
 	�‰×"Ñ"Ð#3Ô4Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1QÕRr   c                 óŽ   — | j                   j                  d«       | j                  | j                  j	                  «       d«       y)z‡
        When L{finger.Finger} receives a request for a remote user, it responds
        with a message rejecting the request.
        s   moshez@example.com
s!   Finger forwarding service denied
Nr   r   s    r   Útest_forwardingzFingerTests.test_forwarding*   s5   € ð
 	�‰×"Ñ"Ð#<Ô=Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1VÕWr   c                 óŽ   — | j                   j                  d«       | j                  | j                  j	                  «       d«       y)z�
        When L{finger.Finger} receives a blank line, it responds with a message
        rejecting the request for all online users.
        s   
s   Finger online list denied
Nr   r   s    r   Ú	test_listzFingerTests.test_list2   s4   € ð
 	�‰×"Ñ" 7Ô+Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1OÕPr   )ÚreturnN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   © r   r   r   r      s$   „ ñó5óSóSóXôQr   r   N)	r#   Útwisted.internet.testingr   Útwisted.protocolsr   Útwisted.trialr   ÚTestCaser   r$   r   r   ú<module>r)      s)   ðñõ 5Ý $Ý "ô+Q�(×#Ñ#õ +Qr   