Current File : //lib/python3/dist-packages/twisted/words/test/__pycache__/test_jabberjstrports.cpython-312.pyc |
�
Ϫ�f� � �V � d Z ddlmZ ddlmZ ddlmZ G d� dej � Zy)z8
Tests for L{twisted.words.protocols.jabber.jstrports}.
� )� TCPClient)�unittest)� jstrportsc � � e Zd ZdZd� Zd� Zy)�JabberStrPortsPlaceHolderTestsz
Tests for L{jstrports}
c �^ � ddi f}t j dd� }| 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:65535r N)r �parse�assertEqual)�self�expected�gots �I/usr/lib/python3/dist-packages/twisted/words/test/test_jabberjstrports.py�
test_parsez)JabberStrPortsPlaceHolderTests.test_parse s2 � �
�7��<���o�o�0�)�<������3�'� c �\ � t j dd� }| j |t � y)zE
L{jstrports.client} returns a L{TCPClient} service.
r r N)r �client�assertIsInstancer )r r s r �test_clientz*JabberStrPortsPlaceHolderTests.test_client s'