%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_loopback.cpython-312.pyc |
� Ϫ�f�7 � �r � d Z ddlmZ ddlmZmZmZ ddlmZ ddl m Z mZmZ ddl mZ ddlmZmZ ddlmZ G d � d ej( � Z G d� de� Z G d � d� Z G d� deej0 � Z G d� deej0 � Z G d� deej0 � Z G d� dej0 � Zy)z. Test case for L{twisted.protocols.loopback}. � )�implementer)�defer� interfaces�reactor)�Deferred)�IAddress� IPullProducer� IPushProducer)�Protocol)�basic�loopback)�unittestc �$ � e Zd Zd� Zd� Zd� Zd� Zy)�SimpleProtocolc �R � t j � | _ g | _ g | _ y �N)r r �conn�lines�connLost��selfs �</usr/lib/python3/dist-packages/twisted/test/test_loopback.py�__init__zSimpleProtocol.__init__ s � ��N�N�$�� ��� ��� � c �: � | j j d � y r )r �callbackr s r �connectionMadezSimpleProtocol.connectionMade s � �� � ���4� r c �: � | j j |� y r )r �append�r �lines r �lineReceivedzSimpleProtocol.lineReceived s � �� � ���$�r c �: � | j j |� y r )r r )r �reasons r �connectionLostzSimpleProtocol.connectionLost s � �� � ���V�$r N)�__name__� __module__�__qualname__r r r"