%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_protocol.cpython-312.pyc |
� Ϫ�fVH � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z mZmZm Z ddlmZmZmZmZmZmZ ddlmZmZ dd lmZmZ dd lmZ ddlmZ G d� d e� Z G d� de� Z G d� de� Z! G d� de� Z" G d� de� Z#y)z) Tests for L{twisted.internet.protocol}. � )�BytesIO)�implementer)�verifyObject)�CancelledError)� IConsumer�ILoggingContext� IProtocol�IProtocolFactory)� ClientCreator�ConsumerToProtocolAdapter�Factory�FileWrapper�Protocol�ProtocolToConsumerAdapter)�MemoryReactorClock�StringTransport)�LogLevel�globalLogPublisher)�Failure)�TestCasec �p � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zy)�ClientCreatorTestsz? Tests for L{twisted.internet.protocol.ClientCreator}. c � � G d� dt � }t � }t ||� } |||� }|j d� }| j ||� y)a Helper for implementing a test to verify that one of the I{connect} methods of L{ClientCreator} passes the right arguments to the right reactor method. @param check: A function which will be invoked with a reactor and a L{ClientCreator} instance and which should call one of the L{ClientCreator}'s I{connect} methods and assert that all of its arguments except for the factory are passed on as expected to the reactor. The factory should be returned. c � � e Zd Zy)�:ClientCreatorTests._basicConnectTest.<locals>.SomeProtocolN��__name__� __module__�__qualname__� � �E/usr/lib/python3/dist-packages/twisted/internet/test/test_protocol.py�SomeProtocolr 5 � � �r! r# N)r r r � buildProtocol�assertIsInstance)�self�checkr# �reactor�cc�factory�protocols r"