+
    Dfj	                     P    R t ^ RIHt ^ RIHtHt  ! R R]P                  4      tR# )z)
Tests for L{twisted.words.im.basechat}.
)unittest)basechatbasesupportc                   l   a  ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 ltR
t	V t
R# )ChatUITestsz/
Tests for the L{basechat.ChatUI} chat client.
c                   < V ^8  d   QhRR/#    returnN )format__classdict__s   "B/usr/lib/python3/dist-packages/twisted/words/test/test_basechat.py__annotate__ChatUITests.__annotate__   s     F Ft F    c                    \         P                  ! 4       V n        \        P                  ! R RRRRR4      V n        \        P                  ! RV P
                  4      V n        R# )
fooAccountFfoopasswordhostportN)r   ChatUIuir   AbstractAccountaccountAbstractPersonpersonselfs   &r   setUpChatUITests.setUp   sI    //#"22%
FF
 "00Er   c                   < V ^8  d   QhRR/# r   r   )r   r   s   "r   r   r      s     < <d <r   c                   V P                  V P                  P                  R4       V P                  V P                  P                  V P                  4       V P                  P                  V P                  R4       V P                  V P                  P                  R4       V P                  V P                  P                  V P                  4       R# )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)assertEqualr   namer   r   contactChangedNickr   s   &r   test_contactChangedNickNoKey(ChatUITests.test_contactChangedNickNoKey   s     	))51,,dll;""4;;6))51,,dll;r   c                   < V ^8  d   QhRR/# r   r   )r   r   s   "r   r   r   %   s     < <t <r   c                D   V P                   V P                  P                  V P                   P                  V P                   P                  3&   V P                  V P                   P                  R4       V P                  V P                   P                  V P                  4       V P                  P                  V P                   R4       V P                  V P                   P                  R4       V P                  V P                   P                  V P                  4       R# )zg
L{basechat.ChatUI.contactChangedNick} changes the name for an
L{twisted.words.im.interfaces.IPerson}.
r   r$   N)r   r   personsr&   r   r%   r'   r   s   &r   %test_contactChangedNickNoConversation1ChatUITests.test_contactChangedNickNoConversation%   s    
 BF(($++*=*==>))51,,dll;""4;;6))51,,dll;r   c                   < V ^8  d   QhRR/# r   r   )r   r   s   "r   r   r   3   s     < < <r   c                   V P                   V P                  P                  V P                   P                  V P                   P                  3&   \
        P                  ! V P                   V P                  4      pWP                  P                  V P                   &   V P                  V P                   P                  R4       V P                  V P                   P                  V P                  4       V P                  P                  V P                   R4       V P                  V P                   P                  R4       V P                  V P                   P                  V P                  4       R# )z
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   r$   N)
r   r   r,   r&   r   r   Conversationconversationsr%   r'   )r   conversations   & r   &test_contactChangedNickHasConversation2ChatUITests.test_contactChangedNickHasConversation3   s     BF(($++*=*==>,,T[[$''B-9dkk*))51,,dll;""4;;6))51,,dll;r   )r   r   r   N)__name__
__module____qualname____firstlineno____doc__r    r(   r-   r4   __static_attributes____classdictcell__)r   s   @r   r   r      s4     F F< << << <r   r   N)r:   twisted.trialr   twisted.words.imr   r   TestCaser   r   r   r   <module>r@      s$    # 27<(## 7<r   