%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_amp.cpython-312.pyc |
� Ϫ�f)� � � � d Z ddlZddlZddlmZmZmZmZ ddlm Z ddl mZ ddlm Z mZ ddlmZmZmZmZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd l m!Z! ddlm"Z# e#jH sdZ"ne#Z" e"�dZ&ndZ&ejN jQ e� sdZ)ndZ)ejT jV Z, G d� dejZ � Z. G d� dej^ � Z0 G d� de1� Z2 G d� de1� Z3 G d� de1� Z4 G d� dejj � Z6 G d� dejn � Z8 G d� d e8� Z9 G d!� d"ejn � Z: G d#� d$ejn � Z; G d%� d&ejn � Z< G d'� d(ejn � Z= G d)� d*ejn � Z> G d+� d,ejn � Z? G d-� d.ejn � Z@ G d/� d0ejn � ZA G d1� d2ej� � ZC G d3� d4ej� � ZEd5ZF G d6� d7e1� ZG G d8� d9ej^ � ZH G d:� d;eH� ZI G d<� d=eI� ZJ G d>� d?eI� ZK G d@� dAeI� ZLe0e0fdB�ZM G dC� dDejZ � ZN G dE� dFej^ � ZO G dG� dHe!� ZP G dI� dJe!� ZQ G dK� dL� ZR G dM� dN� ZS G dO� dPe!� ZT G dQ� dRejn � ZU G dS� dTej� � ZW G dU� dVeW� ZX G dW� dXeX� ZY G dY� dZej^ � ZZ G d[� d\e!� Z[d]Z\d^Z] G d_� d`e!� Z^ G da� dbe!� Z_ G dc� dd� Z` G de� df� Za G dg� dhea� Zb G di� djea� Zc G dk� dlea� Zd G dm� dneH� Ze e e&do� e e)dp� G dq� dre!� � � Zf G ds� dte!� Zg G du� dve1� Zh G dw� dxe1� Zi G dy� dzejn � Zj G d{� d|ej� Zk G d}� d~ej� Zl G d� d�ej^ � Zm G d�� d�ej^ � Zn G d�� d�ej^ � Zo G d�� d�e!� Zpd�� Zq G d�� d�� Zrd�� Zsd�� Zte"� et� Zu e e&do� e e)dp� G d�� d�ere!� � � Zv G d�� d�eI� Zw e e&do� e e)dp� G d�� d�ere!� � � Zx e e&do� e e)dp� G d�� d�ere!� � � Zy G d�� d�ejj � Zz G d�� d�ejn � Z{ G d�� d�ejn � Z| G d�� d�ej^ � Z} ed�� Z~ ed�� Z G d�� d�ee~ef � Z� G d�� d�e{� Z� G d�� d�e!� Z� G d�� d�� Z� G d�� d�e!e�� Z� G d�� d�e!e�� Z� G d�� d�e!e�� Z� G d�� d�e!e�� Z� G d�� d�e!e�� Z� G d�� d�e!� Z� G d�� d�e!� Z� G d�� d�e!e�� Z� G d�� d�e!� Z� ee�j � G d�� d�� � Z� e e�j e�� e e�j e�� G d�� d�e!� Z� G d�� d�e!� Z� G d�� d�e!� Z� G d�� d�e!� Z�y# e%$ r dZ"Y ���w xY w)�z% Tests for L{twisted.protocols.amp}. � N)�ClassVar�Dict�Type�TypeVar)�skipIf)�implementer)�verifyClass�verifyObject)�address�defer�error� interfaces�protocol�reactor)�StringTransport)�amp)�filepath)�Failure)�iosim)�TestCase��sslTFc �8 � e Zd ZdZdZd� Zd� Zd� Zd� Zde fd�Z y ) � TestProtoz� A trivial protocol for use in testing where a L{Protocol} is expected. @ivar instanceId: the id of this instance @ivar onConnLost: deferred that will fired when the connection is lost @ivar dataToSend: data to send on the protocol r c �� � t |t � sJ t |� � �|| _ || _ t j | _ t j dz t _ y )N� )� isinstance�bytes�repr� onConnLost� dataToSendr � instanceCount� instanceId)�selfr r! s �7/usr/lib/python3/dist-packages/twisted/test/test_amp.py�__init__zTestProto.__init__= sJ � ��*�e�,�>�d�:�.>�>�,�$���$���#�1�1���"+�"9�"9�A�"=� �� c �\ � g | _ | j j | j � y �N)�data� transport�writer! �r$ s r% �connectionMadezTestProto.connectionMadeD s � ��� ������T�_�_�-r'