HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/words/test/__pycache__/test_jabberjstrports.cpython-310.pyc
o

�b��@s>dZddlmZddlmZddlmZGdd�dej�ZdS)z8
Tests for L{twisted.words.protocols.jabber.jstrports}.
�)�	TCPClient)�unittest)�	jstrportsc@s eZdZdZdd�Zdd�ZdS)�JabberStrPortsPlaceHolderTestsz 
    Tests for L{jstrports}
    cCs&ddif}t�dd�}|�||�dS)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�got�r�I/usr/lib/python3/dist-packages/twisted/words/test/test_jabberjstrports.py�
test_parses
z)JabberStrPortsPlaceHolderTests.test_parsecCst�dd�}|�|t�dS)zE
        L{jstrports.client} returns a L{TCPClient} service.
        r	rN)r�client�assertIsInstancer)rrrrr�test_clientsz*JabberStrPortsPlaceHolderTests.test_clientN)�__name__�
__module__�__qualname__�__doc__rrrrrrrs	rN)	r�twisted.application.internetr�
twisted.trialr�twisted.words.protocols.jabberr�TestCaserrrrr�<module>s