HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/words/test/__pycache__/test_jabberjstrports.cpython-312.pyc
�

Ϫ�f���V�dZddlmZddlmZddlmZGd�dej�Zy)z8
Tests for L{twisted.words.protocols.jabber.jstrports}.
�)�	TCPClient)�unittest)�	jstrportsc��eZdZdZd�Zd�Zy)�JabberStrPortsPlaceHolderTestsz 
    Tests for L{jstrports}
    c�^�ddif}tjdd�}|j||�y)z�
        L{jstrports.parse} accepts an endpoint description string and returns a
        tuple and dict of parsed endpoint arguments.
        �TCP)�DOMAINi���Factory�tcp:DOMAIN:65535rN)r�parse�assertEqual)�self�expected�gots   �I/usr/lib/python3/dist-packages/twisted/words/test/test_jabberjstrports.py�
test_parsez)JabberStrPortsPlaceHolderTests.test_parses2��
�7��<���o�o�0�)�<������3�'�c�\�tjdd�}|j|t�y)zE
        L{jstrports.client} returns a L{TCPClient} service.
        rrN)r�client�assertIsInstancer)rrs  r�test_clientz*JabberStrPortsPlaceHolderTests.test_clients'�����1�9�=�����c�9�-rN)�__name__�
__module__�__qualname__�__doc__rr�rrrrs���(�.rrN)	r�twisted.application.internetr�
twisted.trialr�twisted.words.protocols.jabberr�TestCaserrrr�<module>r"s'���
3�"�4�.�X�%6�%6�.r