%PDF- %PDF-
Mini Shell

Mini Shell

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

�

Ϫ�f���6�dZddlmZddlmZGd�de�Zy)z&
Tests for L{twisted.python.context}.
�)�context)�SynchronousTestCasec�(�eZdZdZd�Zd�Zd�Zd�Zy)�ContextTestszH
    Tests for the module-scope APIs for L{twisted.python.context}.
    c�L�|jtjd��y)zt
        Arbitrary keys which have not been set in the context have an associated
        value of L{None}.
        �xN)�assertIsNoner�get��selfs �;/usr/lib/python3/dist-packages/twisted/test/test_context.py�test_notPresentIfNotSetz$ContextTests.test_notPresentIfNotSets��
	
���'�+�+�c�*�+�c�r�|jtjdditjd�d�y)z�
        Values may be associated with keys by passing them in a dictionary as
        the first argument to L{twisted.python.context.call}.
        r�yN)�assertEqualr�callr
rs r
�test_setByCallzContextTests.test_setByCalls)��
	
������s�C�j�'�+�+�s�C�S�Irc�~�tjddid��|jtjd��y)z�
        After a L{twisted.python.context.call} completes, keys specified in the
        call are no longer associated with the values from that call.
        rrc��y)N�rrr
�<lambda>z2ContextTests.test_unsetAfterCall.<locals>.<lambda>%s�rN)rrr	r
rs r
�test_unsetAfterCallz ContextTests.test_unsetAfterCall s-��
	���c�3�Z��.����'�+�+�c�*�+rc���t�}|jtjj|d�tj
|d�|j
dtj|��y)zy
        A default value may be set for a key in the context using
        L{twisted.python.context.setDefault}.
        Nr)�object�
addCleanupr�defaultContextDict�pop�
setDefaultrr
)r�keys  r
�test_setDefaultzContextTests.test_setDefault(sP��
�h������2�2�6�6��T�B����3��$�����g�k�k�#�.�/rN)�__name__�
__module__�__qualname__�__doc__rrrr!rrr
rr
s���,�J�,�0rrN)r%�twisted.pythonr�twisted.trial.unittestrrrrr
�<module>r(s���
#�6�#0�&�#0r

Zerion Mini Shell 1.0