HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/test_asyncio/__pycache__/test_protocols.cpython-38.pyc
U

/D�g��@s2ddlZddlmZddlZGdd�dej�ZdS)�N)�mockc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�ProtocolsAbsTestscCs`t��}t��}|�|�|��|�|�|��|�|���|�|���|�	t
|d��dS�N�__dict__)r�Mock�asyncioZBaseProtocol�assertIsNone�connection_made�connection_lost�
pause_writing�resume_writing�assertFalse�hasattr��self�f�p�r�?/opt/cppython/lib/python3.8/test/test_asyncio/test_protocols.py�test_base_protocol	sz$ProtocolsAbsTests.test_base_protocolcCs~t��}t��}|�|�|��|�|�|��|�|�|��|�|���|�|�	��|�|�
��|�t|d��dSr)
rrrZProtocolrr	r
Z
data_receivedZeof_receivedrrr
rrrrr�
test_protocolszProtocolsAbsTests.test_protocolcCs�t��}t��}|�|�|��|�|�|��|�|�d��|�|�d��|�|�	��|�|�
��|�t|d��dS)N�d�r)
rrrZBufferedProtocolrr	r
Z
get_bufferZbuffer_updatedrrr
rrrrr�test_buffered_protocolsz(ProtocolsAbsTests.test_buffered_protocolcCsft��}t��}|�|�|��|�|�|��|�|�|��|�|�||��|�	t
|d��dSr)rrrZDatagramProtocolrr	r
Zerror_receivedZdatagram_receivedr
r)rrZdprrr�test_datagram_protocol(sz(ProtocolsAbsTests.test_datagram_protocolcCsvt��}t��}|�|�|��|�|�|��|�|�d|��|�|�d|��|�|�	��|�
t|d��dS)N�r)rrrZSubprocessProtocolrr	r
Zpipe_data_receivedZpipe_connection_lostZprocess_exitedr
r)rr�sprrr�test_subprocess_protocol1sz*ProtocolsAbsTests.test_subprocess_protocolN)�__name__�
__module__�__qualname__rrrrrrrrrrs
		r)ZunittestrrZTestCaserrrrr�<module>s