Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/positioning/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/positioning/test/__pycache__/receiver.cpython-310.pyc
o

�b]�@s*dZddlmZmZGdd�dej�ZdS)z
Receivers for use in tests.
�)�base�ipositioningc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�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}
    cCs"|��tjD]}|�|�qdS)N)�clearr�IPositioningReceiver�_addCallback)�self�
methodName�r
�C/usr/lib/python3/dist-packages/twisted/positioning/test/receiver.py�__init__s
�z MockPositioningReceiver.__init__cCs
i|_dS)zt
        Forget all the methods that have been called on this receiver, by
        emptying C{self.called}.
        N��called)rr
r
rrs
zMockPositioningReceiver.clearcs��fdd�}t��|�dS)zq
        Adds a callback of the given name, setting C{self.called[name]} to
        C{True} when called.
        csd�j�<dS)NTr
)�a�kw��namerr
r�callback*sz6MockPositioningReceiver._addCallback.<locals>.callbackN)�setattr)rrrr
rrr$sz$MockPositioningReceiver._addCallbackN)�__name__�
__module__�__qualname__�__doc__rrrr
r
r
rrs
rN)r�twisted.positioningrr�BasePositioningReceiverrr
r
r
r�<module>s

Spamworldpro Mini