0x1949 Team - FAZEMRX - MANAGER
Edit File: test_policies.cpython-310.pyc
o �b%� � @ s� d Z ddlZddlmZ ddlmZmZmZ ddlm Z m Z mZmZm Z ddlmZ ddlmZmZ ddlmZ G d d � d ej�ZG dd� dej�ZG d d� dej�ZG dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� dej �Z!G dd� dej"�Z"G dd� dej �Z#G dd� dej �Z$G dd� dej �Z%G dd � d ejej&�Z'G d!d"� d"ej �Z(G d#d$� d$ej �Z)G d%d&� d&e�Z*G d'd(� d(ej+�Z,G d)d*� d*ej �Z-dS )+z Test code for policies. � N)�StringIO)� Interface� implementedBy�implementer)�address�defer�protocol�reactor�task)�policies)�StringTransport� StringTransportWithDisconnection)�unittestc @ s8 e Zd Zd ZZdZdd� Zdd� Zdd� Zd d � Z dS )�SimpleProtocolr � c C s t �� | _t �� | _d S �N)r �Deferred� dConnected� dDisconnected��self� r �</usr/lib/python3/dist-packages/twisted/test/test_policies.py�__init__ s zSimpleProtocol.__init__c C � d| _ | j�d� d S �N� � )� connectedr �callbackr r r r �connectionMade � zSimpleProtocol.connectionMadec C r r )�disconnectedr r �r �reasonr r r �connectionLost! r! zSimpleProtocol.connectionLostc C s | j |7 _ d S r )�buffer�r �datar r r �dataReceived% � zSimpleProtocol.dataReceivedN) �__name__� __module__�__qualname__r r"