%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_strports.cpython-312.pyc

�

Ϫ�f���R�dZddlmZmZddlmZddlmZddlm	Z	Gd�de	�Z
y)	z,
Tests for L{twisted.application.strports}.
�)�internet�strports)�TCP4ServerEndpoint)�Factory)�TestCasec��eZdZdZd�Zd�Zy)�ServiceTestsz(
    Tests for L{strports.service}.
    c��t�}t�}d}tjdt	|�z||��}|j|tj�|j|j�|j|jt�|j|jj|�|j|j|�|j|jj |�y)z�
        L{strports.service} returns a L{StreamServerEndpointService}
        constructed with an endpoint produced from
        L{endpoint.serverFromString}, using the same syntax.
        i9ztcp:��reactorN)�objectrr�service�str�assertIsInstancer�StreamServerEndpointService�
assertTrue�_raiseSynchronously�endpointr�assertEqual�_port�assertIs�factory�_reactor)�selfr�aFactory�	aGoodPort�svcs     �</usr/lib/python3/dist-packages/twisted/test/test_strports.py�test_servicezServiceTests.test_services����(���9���	����v��I��6��'�R�����c�8�#G�#G�H�	
����/�/�0����c�l�l�,>�?�������+�+�Y�7��
�
�c�k�k�8�,��
�
�c�l�l�+�+�W�5�c��ddlm}tjdd�}|j	|j
j|�y)zp
        L{strports.service} will use the default reactor when none is provided
        as an argument.
        rrztcp:80N)�twisted.internetrrrrrr)r�
globalReactor�aServices   r�test_serviceDefaultReactorz'ServiceTests.test_serviceDefaultReactor)s3��
	>��#�#�H�d�3���
�
�h�'�'�0�0�-�@r N)�__name__�
__module__�__qualname__�__doc__rr%�r rr	r	s���6�*Ar r	N)r)�twisted.applicationrr�twisted.internet.endpointsr�twisted.internet.protocolr�twisted.trial.unittestrr	r*r r�<module>r/s&���
3�9�-�+�"A�8�"Ar 

Zerion Mini Shell 1.0