
    2hh                         S SK r S SK Jr  S SKrS r " S S\ R                  5      r\S:X  a  \ R                  " 5         gg)    N)mockc                  0    [         R                  " S 5        g )N)asyncioset_event_loop_policy     I/opt/python-3.13.8/usr/lib/python3.13/test/test_asyncio/test_protocols.pytearDownModuler
      s     !!$'r   c                   2    \ rS rSrS rS rS rS rS rSr	g)	ProtocolsAbsTests   c                    [         R                  " 5       n[        R                  " 5       nU R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  5       5        U R	                  UR                  5       5        U R                  [        US5      5        g N__dict__)r   Mockr   BaseProtocolassertIsNoneconnection_madeconnection_lostpause_writingresume_writingassertFalsehasattrselffps      r	   test_base_protocol$ProtocolsAbsTests.test_base_protocol   s    IIK  "!++A./!++A./!//+,!**,-J/0r   c                    [         R                  " 5       n[        R                  " 5       nU R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  5       5        U R	                  UR                  5       5        U R	                  UR                  5       5        U R                  [        US5      5        g r   )r   r   r   Protocolr   r   r   data_receivedeof_receivedr   r   r   r   r   s      r	   test_protocolProtocolsAbsTests.test_protocol   s    IIK!++A./!++A./!//!,-!..*+!//+,!**,-J/0r   c                 
   [         R                  " 5       n[        R                  " 5       nU R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  S5      5        U R	                  UR                  S5      5        U R	                  UR                  5       5        U R	                  UR                  5       5        U R                  [        US5      5        g )Nd      r   )r   r   r   BufferedProtocolr   r   r   
get_bufferbuffer_updatedr   r   r   r   r   s      r	   test_buffered_protocol(ProtocolsAbsTests.test_buffered_protocol#   s    IIK$$&!++A./!++A./!,,s+,!**3/0!//+,!**,-J/0r   c                    [         R                  " 5       n[        R                  " 5       nU R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  X5      5        U R                  [        US5      5        g r   )r   r   r   DatagramProtocolr   r   r   error_receiveddatagram_receivedr   r   )r   r   dps      r	   test_datagram_protocol(ProtocolsAbsTests.test_datagram_protocol.   s    IIK%%'",,Q/0",,Q/0"++A./"..q45Z01r   c                    [         R                  " 5       n[        R                  " 5       nU R	                  UR                  U5      5        U R	                  UR                  U5      5        U R	                  UR                  SU5      5        U R	                  UR                  SU5      5        U R	                  UR                  5       5        U R                  [        US5      5        g )N   r   )r   r   r   SubprocessProtocolr   r   r   pipe_data_receivedpipe_connection_lostprocess_exitedr   r   )r   r   sps      r	   test_subprocess_protocol*ProtocolsAbsTests.test_subprocess_protocol7   s    IIK'')",,Q/0",,Q/0"//156"11!Q78"++-.Z01r   r   N)
__name__
__module____qualname____firstlineno__r   r$   r,   r3   r<   __static_attributes__r   r   r	   r   r      s    1	1	122r   r   __main__)unittestr   r   r
   TestCaser   r>   mainr   r   r	   <module>rG      s>      (22)) 22j zMMO r   