Ϫf NdZddlmZddlmZmZGddej Zy)z) Tests for L{twisted.words.im.basechat}. )unittest)basechat basesupportc0eZdZdZddZddZddZddZy) ChatUITestsz7 Tests for the L{basechat.ChatUI} chat client. Nctj|_tjdddddd|_tj d|j |_y)N fooAccountFfoopasswordhostport)rChatUIuirAbstractAccountaccountAbstractPersonpersonselfs B/usr/lib/python3/dist-packages/twisted/words/test/test_basechat.pysetUpzChatUITests.setUpsI//#"22 % FF  "00 E c|j|jjd|j|jj|j|jj |jd|j|jjd|j|jj|jy)z L{basechat.ChatUI.contactChangedNick} on an L{twisted.words.im.interfaces.IPerson} who doesn't have an account associated with the L{basechat.ChatUI} instance has no effect. r barN) assertEqualrnamerrcontactChangedNickrs rtest_contactChangedNickNoKeyz(ChatUITests.test_contactChangedNickNoKeys ))51 ,,dll; ""4;;6 ))51 ,,dll;rcB|j|jj|jj|jjf<|j |jjd|j |jj|j|jj |jd|j |jjd|j |jj|jy)z L{basechat.ChatUI.contactChangedNick} changes the name for an L{twisted.words.im.interfaces.IPerson}. r rN)rrpersonsrrrrrs r%test_contactChangedNickNoConversationz1ChatUITests.test_contactChangedNickNoConversation%s BF (($++*=*==> ))51 ,,dll; ""4;;6 ))51 ,,dll;rc|j|jj|jj|jjf<t j |j|j}||jj|j<|j|jjd|j|jj|j|jj|jd|j|jjd|j|jj|jy)a If an L{twisted.words.im.interfaces.IPerson} is in a L{basechat.Conversation}, L{basechat.ChatUI.contactChangedNick} causes a name change for that person in both the L{basechat.Conversation} and the L{basechat.ChatUI}. r rN) rrr rrr Conversation conversationsrr)r conversations r&test_contactChangedNickHasConversationz2ChatUITests.test_contactChangedNickHasConversation3sBF (($++*=*==>,,T[[$''B -9dkk* ))51 ,,dll; ""4;;6 ))51 ,,dll;r)returnN)__name__ __module__ __qualname____doc__rrr!r&rrrr sF < <r0s$#27<(##7