ó
    ×›‘h¸  ã                   ó6   • S r SSKJr  SSKJr   " S S\5      rg)z&
Tests for L{twisted.python.context}.
é    )Úcontext)ÚSynchronousTestCasec                   ó0   • \ rS rSrSrS rS rS rS rSr	g)	ÚContextTestsé   z@
Tests for the module-scope APIs for L{twisted.python.context}.
c                 óN   • U R                  [        R                  " S5      5        g)z\
Arbitrary keys which have not been set in the context have an associated
value of L{None}.
ÚxN)ÚassertIsNoner   Úget©Úselfs    Ú]C:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/test/test_context.pyÚtest_notPresentIfNotSetÚ$ContextTests.test_notPresentIfNotSet   s   € ð
 	×Ñœ'Ÿ+š+ cÓ*Õ+ó    c                 ót   • U R                  [        R                  " SS0[        R                  S5      S5        g)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   r   s    r   Útest_setByCallÚContextTests.test_setByCall   s)   € ð
 	×ÑœŸš s¨C j´'·+±+¸sÓCÀSÕIr   c                 ó‚   • [         R                  " SS0S 5        U R                  [         R                  " S5      5        g)z‡
After a L{twisted.python.context.call} completes, keys specified in the
call are no longer associated with the values from that call.
r	   r   c                  ó   • g )N© r   r   r   Ú<lambda>Ú2ContextTests.test_unsetAfterCall.<locals>.<lambda>%   s   € ¨r   N)r   r   r
   r   r   s    r   Útest_unsetAfterCallÚ ContextTests.test_unsetAfterCall    s-   € ô
 	�Š�c˜3�Z¡Ô.Ø×Ñœ'Ÿ+š+ cÓ*Õ+r   c                 óè   • [        5       nU R                  [        R                  R                  US5        [        R
                  " US5        U R                  S[        R                  " U5      5        g)za
A default value may be set for a key in the context using
L{twisted.python.context.setDefault}.
Nr   )ÚobjectÚ
addCleanupr   ÚdefaultContextDictÚpopÚ
setDefaultr   r   )r   Úkeys     r   Útest_setDefaultÚContextTests.test_setDefault(   sP   € ô
 ‹hˆØ�‰œ×2Ñ2×6Ñ6¸¸TÔBÜ×Ò˜3 Ô$Ø×Ñ˜œgŸkšk¨#Ó.Õ/r   r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r&   Ú__static_attributes__r   r   r   r   r      s   † ñò,òJò,õ0r   r   N)r,   Útwisted.pythonr   Útwisted.trial.unittestr   r   r   r   r   Ú<module>r0      s   ðñõ
 #Ý 6ô#0Ð&õ #0r   