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: //lib/python3/dist-packages/twisted/test/__pycache__/test_strports.cpython-38.pyc
U


W[�@sddZddlmZmZddlmZddlmZddlmZddl	m
Z
ddlmZGdd	�d	e�Z
d
S)z,
Tests for L{twisted.application.strports}.
�)�absolute_import�division)�TestCase)�strports)�internet)�Factory)�TCP4ServerEndpointc@s eZdZdZdd�Zdd�ZdS)�ServiceTestsz(
    Tests for L{strports.service}.
    cCs�t�}t�}d}tjdt|�||d�}|�|tj�|�|j	�|�|j
t�|�|j
j
|�|�|j|�|�|j
j|�dS)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�strZassertIsInstancerZStreamServerEndpointServiceZ
assertTrueZ_raiseSynchronously�endpointrZassertEqualZ_port�assertIs�factory�_reactor)�selfrZaFactoryZ	aGoodPortZsvc�r�</usr/lib/python3/dist-packages/twisted/test/test_strports.py�test_services
�zServiceTests.test_servicecCs,ddlm}t�dd�}|�|jj|�dS)zp
        L{strports.service} will use the default reactor when none is provided
        as an argument.
        rr
ztcp:80N)Ztwisted.internetrrr
rrr)rZ
globalReactorZaServicerrr�test_serviceDefaultReactor-sz'ServiceTests.test_serviceDefaultReactorN)�__name__�
__module__�__qualname__�__doc__rrrrrrr	sr	N)rZ
__future__rrZtwisted.trial.unittestrZtwisted.applicationrrZtwisted.internet.protocolrZtwisted.internet.endpointsrr	rrrr�<module>s