Sindbad~EG File Manager
�
(Μg� � �~ � d dl Z d dl mZ d dlZd� Z G d� de j � Zedk( r e j � yy)� N)�mockc �. � t j d � y )N)�asyncio�set_event_loop_policy� � �=/usr/local/lib/python3.12/test/test_asyncio/test_protocols.py�tearDownModuler
s � � �!�!�$�'r c �* � e Zd Zd� Zd� Zd� Zd� Zd� Zy)�ProtocolsAbsTestsc � � t j � }t j � }| j |j |� � | j |j
|� � | j |j � � | j |j � � | j t |d� � y �N�__dict__)r �Mockr �BaseProtocol�assertIsNone�connection_made�connection_lost�
pause_writing�resume_writing�assertFalse�hasattr��self�f�ps r �test_base_protocolz$ProtocolsAbsTests.test_base_protocol s� � ��I�I�K��� � �"�����!�+�+�A�.�/����!�+�+�A�.�/����!�/�/�+�,����!�*�*�,�-������J�/�0r c � � t j � }t j � }| j |j |� � | j |j
|� � | j |j |� � | j |j � � | j |j � � | j |j � � | j t |d� � y r )
r r r �Protocolr r r �
data_received�eof_receivedr r r r r s r �
test_protocolzProtocolsAbsTests.test_protocol s� � ��I�I�K����������!�+�+�A�.�/����!�+�+�A�.�/����!�/�/�!�,�-����!�.�.�*�+����!�/�/�+�,����!�*�*�,�-������J�/�0r c � � t j � }t j � }| j |j |� � | j |j
|� � | j |j d� � | j |j d� � | j |j � � | j |j � � | j t |d� � y )N�d � r )
r r r �BufferedProtocolr r r �
get_buffer�buffer_updatedr r r r r s r �test_buffered_protocolz(ProtocolsAbsTests.test_buffered_protocol# s� � ��I�I�K���$�$�&�����!�+�+�A�.�/����!�+�+�A�.�/����!�,�,�s�+�,����!�*�*�3�/�0����!�/�/�+�,����!�*�*�,�-������J�/�0r c � � t j � }t j � }| j |j |� � | j |j
|� � | j |j |� � | j |j ||� � | j t |d� � y r )r r r �DatagramProtocolr r r �error_received�datagram_receivedr r )r r �dps r �test_datagram_protocolz(ProtocolsAbsTests.test_datagram_protocol. s� � ��I�I�K��
�
%�
%�
'�����"�,�,�Q�/�0����"�,�,�Q�/�0����"�+�+�A�.�/����"�.�.�q�!�4�5������Z�0�1r c �� � t j � }t j � }| j |j |� � | j |j
|� � | j |j d|� � | j |j d|� � | j |j � � | j t |d� � y )N� r )r r r �SubprocessProtocolr r r �pipe_data_received�pipe_connection_lost�process_exitedr r )r r �sps r �test_subprocess_protocolz*ProtocolsAbsTests.test_subprocess_protocol7 s� � ��I�I�K��
�
'�
'�
)�����"�,�,�Q�/�0����"�,�,�Q�/�0����"�/�/��1�5�6����"�1�1�!�Q�7�8����"�+�+�-�.������Z�0�1r N)�__name__�
__module__�__qualname__r r"