o
    ¼>hb	  ã                   @   s   G d d„ de ƒZdS )c                   @   s\   e Zd ZdZdZdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ ZdS )ÚFakeTransportó    Tc                 C   s
   g | _ d S ©N)Ú_abort_calls©Úself© r   úq/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/autobahn/testutil.pyÚ__init__    ó   
zFakeTransport.__init__c                 O   s   | j  ||f¡ d S r   )r   Úappend)r   ÚargsÚkwr   r   r   ÚabortConnection#   s   zFakeTransport.abortConnectionc                 C   s   | j stdƒ‚| j| | _d S )Nz"Can't write to a closed connection)Ú_openÚ	ExceptionÚ_written)r   Úmsgr   r   r   Úwrite&   s   zFakeTransport.writec                 C   s
   d| _ d S )NF)r   r   r   r   r   ÚloseConnection+   r
   zFakeTransport.loseConnectionc                 C   s   t ‚r   )ÚNotImplementedError)r   ÚproducerÚ	streamingr   r   r   ÚregisterProducer.   ó   zFakeTransport.registerProducerc                 C   s   d S r   r   r   r   r   r   ÚunregisterProducer2   r   z FakeTransport.unregisterProducerc                 C   ó   G dd„ dt ƒ}|ƒ S )Nc                   @   ó   e Zd ZdS )z(FakeTransport.getPeer.<locals>._FakePeerN©Ú__name__Ú
__module__Ú__qualname__r   r   r   r   Ú	_FakePeer8   ó    r!   ©Úobject)r   r!   r   r   r   ÚgetPeer6   ó   zFakeTransport.getPeerc                 C   r   )Nc                   @   r   )z(FakeTransport.getHost.<locals>._FakeHostNr   r   r   r   r   Ú	_FakeHost>   r"   r'   r#   )r   r'   r   r   r   ÚgetHost<   r&   zFakeTransport.getHostc                 C   s   t | jƒdkS )Né    )Úlenr   r   r   r   r   Úabort_calledB   s   zFakeTransport.abort_calledN)r   r   r    r   r   r	   r   r   r   r   r   r%   r(   r+   r   r   r   r   r      s    r   N)r$   r   r   r   r   r   Ú<module>   s   