+
    üÐj¸  ã                   ó8   € R t ^ RIHt ^ RIHt  ! R R]4      tR# )z&
Tests for L{twisted.python.context}.
)Úcontext)ÚSynchronousTestCasec                   ó<   a € ] tR t^t o RtR tR tR tR tRt	V t
R# )ÚContextTestsz@
Tests for the module-scope APIs for L{twisted.python.context}.
c                óP   € V P                  \        P                  ! R4      4       R# )z\
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_notPresentIfNotSetÚ$ContextTests.test_notPresentIfNotSet   s   € ð
 	×Ñœ'Ÿ+š+ cÓ*Ö+ó    c                óv   € V P                  \        P                  ! RR/\        P                  R4      R4       R# )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                ó„   € \         P                  ! RR/R 4       V P                  \         P                  ! R4      4       R# )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                  ó   € R # )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                óê   € \        4       pV P                  \        P                  P                  VR4       \        P
                  ! VR4       V P                  R\        P                  ! V4      4       R# )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__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s$   ø‡ € ñò,òJò,÷0ð 0r   r   N)r*   Útwisted.pythonr   Útwisted.trial.unittestr   r   r   r   r   Ú<module>r0      s   ðñõ
 #Ý 6ô#0Ð&ö #0r   