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


W[\�@sldZddlmZmZddlmZmZddlmZddl	m
Z
eej�Gdd�de��Z
Gdd	�d	ej�Zd
S)z,
Tests for various parts of L{twisted.web}.
�)�implementer�verify)�defer�
interfaces)�unittest)�clientc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�
DummyEndPointz*An endpoint that does not connect anywherecCs
||_dS)N)�
someString)�selfr	�r�>/usr/lib/python3/dist-packages/twisted/web/test/test_client.py�__init__szDummyEndPoint.__init__cCsd�|j�S)NzDummyEndPoint({}))�formatr	)r
rrr�__repr__szDummyEndPoint.__repr__cCst�t|d��S)N)�factory)rZsucceed�dict)r
rrrr�connectszDummyEndPoint.connectN)�__name__�
__module__�__qualname__�__doc__r
rrrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�HTTPConnectionPoolTestsz:
    Unit tests for L{client.HTTPConnectionPoolTest}.
    cCstd�}t�tj|�dS)z@L{DummyEndPoint}s implements L{interfaces.IStreamClientEndpoint}Z	somethingN)rrZverifyObjectr�IStreamClientEndpoint)r
�eprrr�test_implements!sz'HTTPConnectionPoolTests.test_implementscCsFtjdd�}td�}|�d|�}|�|�}t|�}|�t|�|�dS)z2connection L{repr()} includes endpoint's L{repr()}N)ZreactorZthis_is_probably_uniqueZ	someplace)rZHTTPConnectionPoolrZ
getConnectionZsuccessResultOf�reprZassertIn)r
Zpoolr�d�resultZrepresentationrrr�	test_repr&s
z!HTTPConnectionPoolTests.test_reprN)rrrrrrrrrrrsrN)rZzope.interfacerrZtwisted.internetrrZ
twisted.trialrZtwisted.webrr�objectrZTestCaserrrrr�<module>s