HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/test/__pycache__/test_roots.cpython-38.pyc
U


W[�@s>ddlmZmZddlmZddlmZGdd�dej�ZdS)�)�absolute_import�division)�unittest)�rootsc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
RootsTestscCsbt��}z|�d�Wntk
r*Yn
X|��z|��Wntk
rTYn
X|��dS)Nsblah)rZRequest�write�NotImplementedError�failZfinish)�selfZrequest�r�9/usr/lib/python3/dist-packages/twisted/test/test_roots.py�testExceptionsszRootsTests.testExceptionscCs�t��}|�dd�|�|�d�d�|�d�|�|�d�d�z|�dd�Wntk
rfYn
X|��z|�	dd�Wntk
r�Yn
X|��dS)N�x�test)
r�
Collection�	putEntity�assertEqual�getStaticEntityZ	delEntityZstoreEntityrr	ZremoveEntity)r
Z
collectionrrr�testCollections&�
�zRootsTests.testCollectioncCsBGdd�dtj�}|�}|�|�dd��|�tj|jdd�dS)Nc@seZdZdd�ZdS)z)RootsTests.testConstrained.<locals>.constcSs|dkS)Nrr)r
�namerrr�nameConstraint1sz8RootsTests.testConstrained.<locals>.const.nameConstraintN)�__name__�
__module__�__qualname__rrrrr�const0srrr�y)rZConstrainedZassertIsNoner�assertRaises�ConstraintViolation)r
r�crrr�testConstrained/s�zRootsTests.testConstrainedcCsDt��}t|_|�dd�|�|�d�d�|�tj|jdd�dS)N�a�rr)	rZ
Homogenous�intZ
entityTyperrrrr)r
�hrrr�testHomogenous9s�zRootsTests.testHomogenousN)rrrr
rrr$rrrrr	s
rN)	Z
__future__rrZ
twisted.trialrZtwisted.pythonrZTestCaserrrrr�<module>s