Ë
    oj]  ã                   óB   — d Z ddlmZmZ  G d„ dej                  «      Zy)z
Receivers for use in tests.
é    )ÚbaseÚipositioningc                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)Ú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                  «        t        j                  D ]  }| 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)r   s    r   r   zMockPositioningReceiver.clear   s   € ð
 ˆ�r   c                 ó.   ‡ ‡— ˆˆ fd„}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Únamer   s     €€r   Úcallbackz6MockPositioningReceiver._addCallback.<locals>.callback*   s   ø€ Ø $ˆD�K‰K˜Òr   N)Úsetattr)r   r   r   s   `` r   r
   z$MockPositioningReceiver._addCallback$   s   ù€ õ	%ô 	��d˜HÕ%r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r
   © r   r   r   r      s   „ ñ	ò*òó	&r   r   N)r   Útwisted.positioningr   r   ÚBasePositioningReceiverr   r   r   r   ú<module>r!      s!   ðñ÷
 3ô"&˜d×:Ñ:õ "&r   