ó
    ×›‘hŒ  ã                   óV   • S r SSKJr  SSKJr  SSKJr   " S S\R                  5      rg)z(
Tests for L{twisted.protocols.finger}.
é    )ÚStringTransport)Úfinger)Úunittestc                   óJ   • \ rS rSrSrS
S jrS
S jrS
S jrS
S jrS
S jr	S	r
g)ÚFingerTestsé   z
Tests for L{finger.Finger}.
Nc                 ó    • [        5       U l        [        R                  " 5       U l        U R                  R                  U R                  5        g)z1
Create and connect a L{finger.Finger} instance.
N)r   Ú	transportr   ÚFingerÚprotocolÚmakeConnection©Úselfs    Ú\C:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/test/test_finger.pyÚsetUpÚFingerTests.setUp   s1   € ô )Ó*ˆŒÜŸš›ˆŒØ�‰×$Ñ$ T§^¡^Õ4ó    c                 óŽ   • U R                   R                  S5        U R                  U R                  R	                  5       S5        g)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_simpleÚFingerTests.test_simple   s4   € ð
 	�‰×"Ñ" =Ô1Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1QÕRr   c                 óŽ   • U R                   R                  S5        U R                  U R                  R	                  5       S5        g)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_simpleWÚFingerTests.test_simpleW"   s5   € ð
 	�‰×"Ñ"Ð#3Ô4Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1QÕRr   c                 óŽ   • U R                   R                  S5        U R                  U R                  R	                  5       S5        g)zo
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_forwardingÚFingerTests.test_forwarding*   s5   € ð
 	�‰×"Ñ"Ð#<Ô=Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1VÕWr   c                 óŽ   • U R                   R                  S5        U R                  U R                  R	                  5       S5        g)zu
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_listÚFingerTests.test_list2   s4   € ð
 	�‰×"Ñ" 7Ô+Ø×Ñ˜Ÿ™×-Ñ-Ó/Ð1OÕPr   )r   r
   )ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r    r#   Ú__static_attributes__© 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>r1      s)   ðñõ 5Ý $Ý "ô+Q�(×#Ñ#õ +Qr   