| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
�
oj� � � � 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"