o
    ¼>h±  ã                   @   s>   d Z ddlmZ ddlmZ ddlmZ G dd„ dejƒZdS )z8
Tests for L{twisted.words.protocols.jabber.jstrports}.
é    )Ú	TCPClient)Úunittest)Ú	jstrportsc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚJabberStrPortsPlaceHolderTestsz 
    Tests for L{jstrports}
    c                 C   s&   ddi f}t  dd¡}|  ||¡ dS )zŽ
        L{jstrports.parse} accepts an endpoint description string and returns a
        tuple and dict of parsed endpoint arguments.
        ÚTCP)ÚDOMAINiÿÿ  ÚFactoryútcp:DOMAIN:65535r   N)r   ÚparseÚassertEqual)ÚselfÚexpectedÚgot© r   ú‡/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/twisted/words/test/test_jabberjstrports.pyÚ
test_parse   s   
z)JabberStrPortsPlaceHolderTests.test_parsec                 C   s   t  dd¡}|  |t¡ dS )zE
        L{jstrports.client} returns a L{TCPClient} service.
        r	   r   N)r   ÚclientÚassertIsInstancer   )r   r   r   r   r   Útest_client   s   z*JabberStrPortsPlaceHolderTests.test_clientN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s    	r   N)	r   Útwisted.application.internetr   Útwisted.trialr   Útwisted.words.protocols.jabberr   ÚTestCaser   r   r   r   r   Ú<module>   s
   