+
    Dfj]                     D    R t ^ RIHtHt  ! R R]P                  4      tR# )z
Receivers for use in tests.
)baseipositioningc                   6   a  ] tR t^t o RtR tR tR tRtV t	R# )MockPositioningReceiverz
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                v    V P                  4        \        P                   F  pV P                  V4       K  	  R # )N)clearr   IPositioningReceiver_addCallback)self
methodNames   & C/usr/lib/python3/dist-packages/twisted/positioning/test/receiver.py__init__ MockPositioningReceiver.__init__   s)    

&;;Jj) <    c                    / V n         R# )z\
Forget all the methods that have been called on this receiver, by
emptying C{self.called}.
Ncalled)r
   s   &r   r   MockPositioningReceiver.clear   s    
 r   c                2   a a VV 3R lp\        S SV4       R# )zY
Adds a callback of the given name, setting C{self.called[name]} to
C{True} when called.
c                  &   < R SP                   S&   R# )TNr   )akwnamer
   s   *,r   callback6MockPositioningReceiver._addCallback.<locals>.callback*   s     $DKKr   N)setattr)r
   r   r   s   ff r   r	   $MockPositioningReceiver._addCallback$   s    	% 	dH%r   r   N)
__name__
__module____qualname____firstlineno____doc__r   r   r	   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     	*	& 	&r   r   N)r!   twisted.positioningr   r   BasePositioningReceiverr    r   r   <module>r(      s!   
 3"&d:: "&r   