U
    QV‚g  ã                   @   s4   d dl mZ d dlmZ dd„ ZG dd„ deƒZdS )é    )Úmock)ÚApplicationCommunicatorc                   C   s   d S )N© r   r   r   ú@/tmp/pip-unpacked-wheel-lkk2pq7o/channels/testing/application.pyÚno_op   s    r   c                       s*   e Zd Z‡ fdd„Zd‡ fdd„	Z‡  ZS )r   c              
   ƒ   s6   t  dt¡�  tƒ  |¡I d H W  5 Q R £ S Q R X d S ©Nz!channels.db.close_old_connections)r   Úpatchr   ÚsuperÚ
send_input)ÚselfÚmessage©Ú	__class__r   r   r
      s    z"ApplicationCommunicator.send_inputé   c              
   ƒ   s6   t  dt¡�  tƒ  |¡I d H W  5 Q R £ S Q R X d S r   )r   r   r   r	   Úreceive_output)r   Útimeoutr   r   r   r      s    z&ApplicationCommunicator.receive_output)r   )Ú__name__Ú
__module__Ú__qualname__r
   r   Ú__classcell__r   r   r   r   r   
   s   r   N)Zunittestr   Zasgiref.testingr   ZBaseApplicationCommunicatorr   r   r   r   r   Ú<module>   s   