Your IP : 216.73.216.85


Current Path : /opt/alt/python310/lib64/python3.10/test/test_asyncio/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/test/test_asyncio/__pycache__/test_protocols.cpython-310.pyc

o

0�i��@sNddlZddlmZddlZdd�ZGdd�dej�Zedkr%e��dSdS)�N)�mockcCst�d�dS)N)�asyncioZset_event_loop_policy�rr�G/opt/alt/python310/lib64/python3.10/test/test_asyncio/test_protocols.py�tearDownModulesrc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�ProtocolsAbsTestscCs`t��}t��}|�|�|��|�|�|��|�|���|�|���|�	t
|d��dS�N�__dict__)r�MockrZBaseProtocol�assertIsNone�connection_made�connection_lost�
pause_writing�resume_writing�assertFalse�hasattr��self�f�prrr�test_base_protocolsz$ProtocolsAbsTests.test_base_protocolcCs~t��}t��}|�|�|��|�|�|��|�|�|��|�|���|�|�	��|�|�
��|�t|d��dSr)
rr
rZProtocolrrr
Z
data_receivedZeof_receivedrrrrrrrr�
test_protocolszProtocolsAbsTests.test_protocolcCs�t��}t��}|�|�|��|�|�|��|�|�d��|�|�d��|�|�	��|�|�
��|�t|d��dS)N�d�r	)
rr
rZBufferedProtocolrrr
Z
get_bufferZbuffer_updatedrrrrrrrr�test_buffered_protocol#sz(ProtocolsAbsTests.test_buffered_protocolcCsft��}t��}|�|�|��|�|�|��|�|�|��|�|�||��|�	t
|d��dSr)rr
rZDatagramProtocolrrr
Zerror_receivedZdatagram_receivedrr)rrZdprrr�test_datagram_protocol.sz(ProtocolsAbsTests.test_datagram_protocolcCsvt��}t��}|�|�|��|�|�|��|�|�d|��|�|�d|��|�|�	��|�
t|d��dS)N�r	)rr
rZSubprocessProtocolrrr
Zpipe_data_receivedZpipe_connection_lostZprocess_exitedrr)rrZsprrr�test_subprocess_protocol7sz*ProtocolsAbsTests.test_subprocess_protocolN)�__name__�
__module__�__qualname__rrrrrrrrrr
s		r�__main__)ZunittestrrrZTestCaserr�mainrrrr�<module>s5�