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 :  /lib/python3/dist-packages/zope/component/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /lib/python3/dist-packages/zope/component/tests/__pycache__/test_registry.cpython-310.pyc
o

,�W/�@spdZddlZGdd�dej�ZGdd�dej�ZGdd�dej�ZGd	d
�d
ej�ZGdd�de�Zd
d�Z	dS)zTests for z.c.registry
�Nc@�,eZdZddlmZmZdd�Zdd�ZdS)�%Test_dispatchUtilityRegistrationEventr��setUp�tearDowncO�ddlm}||i|��S)Nr)� dispatchUtilityRegistrationEvent)�zope.component.registryr)�self�args�kwr�r
�D/usr/lib/python3/dist-packages/zope/component/tests/test_registry.py�_callFUT�z.Test_dispatchUtilityRegistrationEvent._callFUTcs�ddlm}Gdd�dt�}t�}g��fdd�}t||d��|�|�|�Wd�n1s1wY|��|j|fg�dS)Nr��registryc@seZdZe�ZdS)zDTest_dispatchUtilityRegistrationEvent.test_it.<locals>._RegistrationN)�__name__�
__module__�__qualname__�object�	componentr
r
r
r�
_Registrations
rc���|�dS�N��append�r��_handledr
r�_handle!�z>Test_dispatchUtilityRegistrationEvent.test_it.<locals>._handle��handle)�zope.componentrr�_Monkeyr�assertEqualr)r
rr�_EVENTr r
rr�test_its�z-Test_dispatchUtilityRegistrationEvent.test_itN�rrr�zope.component.testingrrrr(r
r
r
rr�rc@r)�%Test_dispatchAdapterRegistrationEventrrcOr)Nr)� dispatchAdapterRegistrationEvent)r	r-)r
rrr-r
r
rr,rz.Test_dispatchAdapterRegistrationEvent._callFUTc�ddlm}Gdd�dt�}|�}t�}g��fdd�}t||d��|�||�Wd�n1s3wY|��|j|fg�dS)Nrrc@�eZdZdd�ZdS)zDTest_dispatchAdapterRegistrationEvent.test_it.<locals>._Registrationc_�dSrr
�r
rrr
r
r�factory3�zLTest_dispatchAdapterRegistrationEvent.test_it.<locals>._Registration.factoryN�rrrr2r
r
r
rr2�rcrrrrrr
rr 8r!z>Test_dispatchAdapterRegistrationEvent.test_it.<locals>._handler"�r$rrr%rr&r2�r
rr�
_registrationr'r r
rrr(0��z-Test_dispatchAdapterRegistrationEvent.test_itNr)r
r
r
rr,(r+r,c@r)�1Test_dispatchSubscriptionAdapterRegistrationEventrrcOr)Nr)�,dispatchSubscriptionAdapterRegistrationEvent)r	r;)r
rrr;r
r
rrCsz:Test_dispatchSubscriptionAdapterRegistrationEvent._callFUTcr.)Nrrc@r/)zPTest_dispatchSubscriptionAdapterRegistrationEvent.test_it.<locals>._Registrationc_r0rr
r1r
r
rr2Kr3zXTest_dispatchSubscriptionAdapterRegistrationEvent.test_it.<locals>._Registration.factoryNr4r
r
r
rrJr5rcrrrrrr
rr Pr!zJTest_dispatchSubscriptionAdapterRegistrationEvent.test_it.<locals>._handler"r6r7r
rrr(Hr9z9Test_dispatchSubscriptionAdapterRegistrationEvent.test_itNr)r
r
r
rr:?sr:c@r)�%Test_dispatchHandlerRegistrationEventrrcOr)Nr)� dispatchHandlerRegistrationEvent)r	r=)r
rrr=r
r
rr[rz.Test_dispatchHandlerRegistrationEvent._callFUTcr.)Nrrc@r/)zDTest_dispatchHandlerRegistrationEvent.test_it.<locals>._Registrationc_r0rr
r1r
r
r�handlerbr3zLTest_dispatchHandlerRegistrationEvent.test_it.<locals>._Registration.handlerN)rrrr>r
r
r
rrar5rcrrrrrr
rr gr!z>Test_dispatchHandlerRegistrationEvent.test_it.<locals>._handler")r$rrr%rr&r>r7r
rrr(_r9z-Test_dispatchHandlerRegistrationEvent.test_itNr)r
r
r
rr<Wr+r<c@s$eZdZdd�Zdd�Zdd�ZdS)r%cs@�|_t�fdd�|D��|_|��D]
\}}t�||�qdS)Ncsg|]	}|t�|�f�qSr
)�getattr)�.0�key��moduler
r�
<listcomp>rsz$_Monkey.__init__.<locals>.<listcomp>)rC�dict�
to_restore�items�setattr)r
rCrrA�valuer
rBr�__init__ps
�z_Monkey.__init__cCs|Srr
)r
r
r
r�	__enter__vr3z_Monkey.__enter__cCs&|j��D]\}}t|j||�qdSr)rFrGrHrC)r
�exc_type�exc_val�exc_tbrArIr
r
r�__exit__ys�z_Monkey.__exit__N)rrrrJrKrOr
r
r
rr%nsr%cCs*t�t�t�t�t�t�t�t�t�f�Sr)�unittest�	TestSuite�	makeSuiterr,r:r<r
r
r
r�
test_suite}s�rS)
�__doc__rP�TestCaserr,r:r<rr%rSr
r
r
r�<module>s


Anon7 - 2022
AnonSec Team