Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/test/__pycache__/test_context.cpython-39.pyc
Ðазад
a k�h� � @ s0 d Z ddlmZ ddlmZ G dd� de�ZdS )z& Tests for L{twisted.python.context}. � )�context)�SynchronousTestCasec @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )�ContextTestszH Tests for the module-scope APIs for L{twisted.python.context}. c C s | � 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 ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/test/test_context.py�test_notPresentIfNotSet s z$ContextTests.test_notPresentIfNotSetc C s | � 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 �callr r r r r �test_setByCall s zContextTests.test_setByCallc C s( 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. r r c S s d S )Nr r r r r �<lambda>% � z2ContextTests.test_unsetAfterCall.<locals>.<lambda>N)r r r r r r r r �test_unsetAfterCall s z ContextTests.test_unsetAfterCallc C s: 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 )�objectZ addCleanupr ZdefaultContextDict�popZ setDefaultr r )r �keyr r r �test_setDefault( s zContextTests.test_setDefaultN)�__name__� __module__�__qualname__�__doc__r r r r r r r r r s r N)r Ztwisted.pythonr Ztwisted.trial.unittestr r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка