%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_newtls.cpython-312.pyc |
� Ϫ�f� � � � d Z ddlmZ ddlmZmZ ddlmZ ddlm Z ddl mZmZm Z mZ ddlmZ ddlmZ dd lmZ eZddlmZ G d� d ej0 � Z G d� d� Z eej6 � G d� de� � Z G d� deee� Z e� j? ejA � � y # e$ r d ZY ��w xY w)z( Tests for L{twisted.internet._newtls}. � )� interfaces)�ConnectableProtocol�runProtocolsWithReactor)�ReactorBuilder)� TCPCreator)�ContextGeneratingMixin� SSLCreator�StartTLSClientCreator�TLSMixin)�unittest)�_newtls)�tlsN)�implementerc � � e Zd ZdZesdZd� Zy)�BypassTLSTestsz4 Tests for the L{_newtls._BypassTLS} class. z<Couldn't import _newtls, perhaps pyOpenSSL is old or missingc � ��� t � �g � G ��fd�d� }t j | |� � }|j � | j ��g� t � }|j |� | j ��|g� y)z� C{_BypassTLS.loseConnection} calls C{loseConnection} on the base class, while preserving any default argument in the base class' C{loseConnection} implementation. c � �� e Zd ZW � f�fd� Zy)�DBypassTLSTests.test_loseConnectionPassThrough.<locals>.FakeTransportc �( �� �j |� y �N)�append)�self� _connDone�results ��C/usr/lib/python3/dist-packages/twisted/internet/test/test_newtls.py�loseConnectionzSBypassTLSTests.test_loseConnectionPassThrough.<locals>.FakeTransport.loseConnection4 s �� �� � �i�(� N)�__name__� __module__�__qualname__r )�defaultr s ��r � FakeTransportr 3 s �� �/6� )r r"