%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/twisted/words/test/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_basechat.cpython-312.pyc

�

Ϫ�f�	��N�dZddlmZddlmZmZGd�dej�Zy)z)
Tests for L{twisted.words.im.basechat}.
�)�unittest)�basechat�basesupportc�0�eZdZdZdd�Zdd�Zdd�Zdd�Zy)�ChatUITestsz7
    Tests for the L{basechat.ChatUI} chat client.
    Nc��tj�|_tjdddddd�|_tjd|j
�|_y)N�
fooAccountF�foo�password�host�port)r�ChatUI�uir�AbstractAccount�account�AbstractPerson�person��selfs �B/usr/lib/python3/dist-packages/twisted/words/test/test_basechat.py�setUpzChatUITests.setUpsI���/�/�#���"�2�2��%��
�F�F�
���"�0�0�����E���c��|j|jjd�|j|jj|j�|jj|jd�|j|jjd�|j|jj|j�y)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�contactChangedNickrs r�test_contactChangedNickNoKeyz(ChatUITests.test_contactChangedNickNoKeys���	
������)�)�5�1�������,�,�d�l�l�;����"�"�4�;�;��6�������)�)�5�1�������,�,�d�l�l�;rc�B�|j|jj|jj|jjf<|j|jjd�|j|jj|j�|jj
|jd�|j|jjd�|j|jj|j�y)z
        L{basechat.ChatUI.contactChangedNick} changes the name for an
        L{twisted.words.im.interfaces.IPerson}.
        r
rN)rr�personsrrrrrs r�%test_contactChangedNickNoConversationz1ChatUITests.test_contactChangedNickNoConversation%s���
BF�����������(�(�$�+�+�*=�*=�=�>�������)�)�5�1�������,�,�d�l�l�;����"�"�4�;�;��6�������)�)�5�1�������,�,�d�l�l�;rc���|j|jj|jj|jjf<tj|j|j�}||jj|j<|j|jjd�|j|jj|j�|jj|jd�|j|jjd�|j|jj|j�y)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_contactChangedNickHasConversation3s���BF�����������(�(�$�+�+�*=�*=�=�>��,�,�T�[�[�$�'�'�B��-9������d�k�k�*�������)�)�5�1�������,�,�d�l�l�;����"�"�4�;�;��6�������)�)�5�1�������,�,�d�l�l�;r)�returnN)�__name__�
__module__�__qualname__�__doc__rrr!r&�rrrrs���F�<�<�<rrN)r+�
twisted.trialr�twisted.words.imrr�TestCaserr,rr�<module>r0s$���#�2�7<�(�#�#�7<r

Zerion Mini Shell 1.0