HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_basechat.cpython-38.pyc
U


W[�	�@s6dZddlmZddlmZmZGdd�dej�ZdS)z)
Tests for L{twisted.words.im.basechat}.
�)�unittest)�basechat�basesupportc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�ChatUITestsz7
    Tests for the L{basechat.ChatUI} chat client.
    cCs4t��|_t�dddddd�|_t�d|j�|_dS)NZ
fooAccountF�fooZpasswordZhostZport)rZChatUI�uirZAbstractAccount�accountZAbstractPerson�person��self�r�B/usr/lib/python3/dist-packages/twisted/words/test/test_basechat.py�setUps

�zChatUITests.setUpcCsX|�|jjd�|�|jj|j�|j�|jd�|�|jjd�|�|jj|j�dS)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	�namerr�contactChangedNickr
rrr
�test_contactChangedNickNoKeys
z(ChatUITests.test_contactChangedNickNoKeycCsr|j|jj|jj|jjf<|�|jjd�|�|jj|j�|j�|jd�|�|jjd�|�|jj|j�dS)z
        L{basechat.ChatUI.contactChangedNick} changes the name for an
        L{twisted.words.im.interfaces.IPerson}.
        rrN)r	r�personsrrrrr
rrr
�%test_contactChangedNickNoConversation%sz1ChatUITests.test_contactChangedNickNoConversationcCs�|j|jj|jj|jjf<t�|j|j�}||jj|j<|�|jjd�|�|jj|j�|j�	|jd�|�|jjd�|�|jj|j�dS)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}.
        rrN)
r	rrrrrZConversationZ
conversationsrr)rZconversationrrr
�&test_contactChangedNickHasConversation4sz2ChatUITests.test_contactChangedNickHasConversationN)�__name__�
__module__�__qualname__�__doc__rrrrrrrr
rs
rN)rZ
twisted.trialrZtwisted.words.imrrZTestCaserrrrr
�<module>s