Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/twisted/words/test/__pycache__/
Upload File :
Current File : //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