← Back
Editing: testutils.cpython-38.pyc
U W[� � @ s� d Z ddlmZ ddlmZ ddlmZ G dd� d�Zdd� Z G d d � d e �ZG dd� de �ZG d d� de �Z G dd� de �ZdS )a� I{Private} test utilities for use throughout Twisted's test suite. Unlike C{proto_helpers}, this is no exception to the don't-use-it-outside-Twisted-we-won't-maintain-compatibility rule! @note: Maintainers be aware: things in this module should be gradually promoted to more full-featured test helpers and exposed as public API as your maintenance time permits. In order to be public API though, they need their own test cases. � )�BytesIO)�minidom)�FileWrapperc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �IOPumpz�Utility to pump data between clients and servers for protocol testing. Perhaps this is a utility worthy of being in protocol.py? c C s || _ || _|| _|| _d S )N)�client�server�clientIO�serverIO)�selfr r r r � r �8/usr/lib/python3/dist-packages/twisted/test/testutils.py�__init__ s zIOPump.__init__c C s | � � r q dS )z,Pump until there is no more input or output.N)�pump)r r r r �flush"