0x1949 Team - FAZEMRX - MANAGER
Edit File: test_loopback.cpython-310.pyc
o �b�7 � @ s� d Z ddlmZ ddlmZmZmZ ddlmZ ddl m Z mZmZ ddl mZ ddlmZmZ ddlmZ G d d � d ej�ZG dd� de�ZG d d� d�ZG dd� deej�ZG dd� deej�ZG dd� deej�ZG dd� dej�ZdS )z. Test case for L{twisted.protocols.loopback}. � )�implementer)�defer� interfaces�reactor)�Deferred)�IAddress� IPullProducer� IPushProducer)�Protocol)�basic�loopback)�unittestc @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) �SimpleProtocolc C s t �� | _g | _g | _d S �N)r r �conn�lines�connLost��self� r �</usr/lib/python3/dist-packages/twisted/test/test_loopback.py�__init__ s zSimpleProtocol.__init__c C s | j �d � d S r )r �callbackr r r r �connectionMade � zSimpleProtocol.connectionMadec C � | j �|� d S r )r �append�r �liner r r �lineReceived r zSimpleProtocol.lineReceivedc C r r )r r )r �reasonr r r �connectionLost r zSimpleProtocol.connectionLostN)�__name__� __module__�__qualname__r r r r! r r r r r s r c @ � e Zd ZdZdd� ZdS )�DoomProtocolr c C sV | j d7 _ | j dk r| �d| j f � t�| |� | jd dkr)| j�� d S d S )N� � s Hello %d���� Hello 3)�i�sendLiner r r � transport�loseConnectionr r r r r &