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_jabberjstrports.cpython-38.pyc
U


W[��@sNdZddlmZmZddlmZddlmZddlm	Z	Gdd�dej
�ZdS)	z8
Tests for L{twisted.words.protocols.jabber.jstrports}.
�)�absolute_import�division)�unittest)�	jstrports)�	TCPClientc@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.
        ZTCP)ZDOMAINi���Factory�tcp:DOMAIN:65535rN)r�parseZassertEqual)�selfZexpected�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)rZclientZassertIsInstancer)rrr
r
r�test_clientsz*JabberStrPortsPlaceHolderTests.test_clientN)�__name__�
__module__�__qualname__�__doc__rrr
r
r
rrs
rN)rZ
__future__rrZ
twisted.trialrZtwisted.words.protocols.jabberrZtwisted.application.internetrZTestCaserr
r
r
r�<module>s