%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/positioning/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/positioning/test/__pycache__/receiver.cpython-312.pyc

�

Ϫ�f]��B�dZddlmZmZGd�dej�Zy)z
Receivers for use in tests.
�)�base�ipositioningc�"�eZdZdZd�Zd�Zd�Zy)�MockPositioningReceivera
    A mock positioning receiver.

    Mocks all the L{IPositioningReceiver} methods with stubs that don't do
    anything but register that they were called.

    @ivar called: A mapping of names of callbacks that have been called to
        C{True}.
    @type called: C{dict}
    c�p�|j�tjD]}|j|��y)N)�clearr�IPositioningReceiver�_addCallback)�self�
methodNames  �C/usr/lib/python3/dist-packages/twisted/positioning/test/receiver.py�__init__z MockPositioningReceiver.__init__s.���
�
��&�;�;�	*�J����j�)�	*�c��i|_y)zt
        Forget all the methods that have been called on this receiver, by
        emptying C{self.called}.
        N��called)rs r
rzMockPositioningReceiver.clears��
��rc�.�����fd�}t��|�y)zq
        Adds a callback of the given name, setting C{self.called[name]} to
        C{True} when called.
        c�$��d�j�<y)NTr)�a�kw�namers  ��r
�callbackz6MockPositioningReceiver._addCallback.<locals>.callback*s��� $�D�K�K��rN)�setattr)rrrs`` r
r
z$MockPositioningReceiver._addCallback$s���	%�	��d�H�%rN)�__name__�
__module__�__qualname__�__doc__rrr
�rr
rrs��	�*��	&rrN)r�twisted.positioningrr�BasePositioningReceiverrrrr
�<module>r!s!���
3�"&�d�:�:�"&r

Zerion Mini Shell 1.0