Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/web/test/__pycache__/ |
Upload File : |
o �bT � @ sj d Z ddlmZmZ ddlmZmZ ddlmZ ddl m Z eej�G dd� d��ZG dd � d ej �Zd S )z, Tests for various parts of L{twisted.web}. � )�implementer�verify)�defer� interfaces)�unittest)�clientc @ s. e Zd ZdZdd� Zdefdd�Zdd� Zd S ) � DummyEndPointz*An endpoint that does not connect anywherec C s || _ d S )N�� someString)�selfr � r �>/usr/lib/python3/dist-packages/twisted/web/test/test_client.py�__init__ s zDummyEndPoint.__init__�returnc C s d| j � d�S )NzDummyEndPoint(�)r )r r r r �__repr__ s zDummyEndPoint.__repr__c C s t �t|d��S )N)�factory)r �succeed�dict)r r r r r �connect s zDummyEndPoint.connectN)�__name__� __module__�__qualname__�__doc__r �strr r r r r r r s r c @ s e Zd ZdZdd� Zdd� ZdS )�HTTPConnectionPoolTestsz: Unit tests for L{client.HTTPConnectionPoolTest}. c C s t d�}t�tj|� dS )z@L{DummyEndPoint}s implements L{interfaces.IStreamClientEndpoint}� somethingN)r r �verifyObjectr �IStreamClientEndpoint)r �epr r r �test_implements"