ϪfVdZddlmZddlmZddlmZGddejZy)z( Tests for L{twisted.protocols.finger}. )StringTransport)finger)unittestc8eZdZdZddZddZddZddZddZy) FingerTestsz% Tests for L{finger.Finger}. Nct|_tj|_|jj |jy)zA Create and connect a L{finger.Finger} instance. N)r transportrFingerprotocolmakeConnectionselfs :/usr/lib/python3/dist-packages/twisted/test/test_finger.pysetUpzFingerTests.setUps1)*   $$T^^4c|jjd|j|jj dy)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 Nr dataReceived assertEqualr valuer s r test_simplezFingerTests.test_simples4 ""=1 --/1QRrc|jjd|j|jj dy)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 ""#34 --/1QRrc|jjd|j|jj dy)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 rtest_forwardingzFingerTests.test_forwarding*s5 ""#<= --/1VWrc|jjd|j|jj dy)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+ --/1OPr)returnN) __name__ __module__ __qualname____doc__rrrrrrrrr s$5SSXQrrN) r#twisted.internet.testingrtwisted.protocolsr twisted.trialrTestCaserr$rrr)s)5$"+Q(##+Qr