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_hookable.cpython-310.pyc
o

,�W�@s*dZddlZGdd�dej�Zdd�ZdS)zPure-Python hookable tests
�Nc@sdeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�
HookableTestscCsddlm}|�t|�dS)Nr��hookable��zope.component.hookabler�assertRaises�	TypeError)�selfr�r
�D/usr/lib/python3/dist-packages/zope/component/tests/test_hookable.py�test_ctor_no_funcszHookableTests.test_ctor_no_funccCs@ddlm}dd�}||�}|�|j|u�|�|j|u�dS)NrrcS�dS�Nr
r
r
r
r�foo�z+HookableTests.test_ctor_simple.<locals>.foo)rr�
assertTrue�original�implementation�r	rr�hookedr
r
r�test_ctor_simples
zHookableTests.test_ctor_simplecCs(ddlm}dd�}|�t|||�dS)NrrcSr
rr
r
r
r
rr#rz.HookableTests.test_ctor_extra_arg.<locals>.foor�r	rrr
r
r�test_ctor_extra_arg!sz!HookableTests.test_ctor_extra_argcCs*ddlm}dd�}|jt|||d�dS)NrrcSr
rr
r
r
r
rr)rz3HookableTests.test_ctor_extra_arg_miss.<locals>.foo)�nonesuchrrr
r
r�test_ctor_extra_arg_miss'sz&HookableTests.test_ctor_extra_arg_misscCsRddlm}dd�}dd�}||�}|�|�|�|j|u�|�|j|u�dS)NrrcSr
rr
r
r
r
rr/rz'HookableTests.test_sethook.<locals>.foocSr
rr
r
r
r
r�bar1rz'HookableTests.test_sethook.<locals>.bar)rr�sethookrrr�r	rrrrr
r
r�test_sethook-s
zHookableTests.test_sethookcCsZddlm}dd�}dd�}||�}|�|�|��|�|j|u�|�|j|u�dS)NrrcSr
rr
r
r
r
rr:rz%HookableTests.test_reset.<locals>.foocSr
rr
r
r
r
rr<rz%HookableTests.test_reset.<locals>.bar)rrr�resetrrrrr
r
r�
test_reset8s
zHookableTests.test_resetcC�dddlm}dd�}dd�}||�}z||_Wnty!YdSty*YdSw|�d�dS)NrrcSr
rr
r
r
r
rrFrz4HookableTests.test_cant_assign_original.<locals>.foocSr
rr
r
r
r
rrHrz4HookableTests.test_cant_assign_original.<locals>.barzAssigned original�rrrr�AttributeError�failrr
r
r�test_cant_assign_originalD�
�z'HookableTests.test_cant_assign_originalcC�Zddlm}dd�}||�}z|`WntyYdSty%YdSw|�d�dS)NrrcSr
rr
r
r
r
rrVrz4HookableTests.test_cant_delete_original.<locals>.foozDeleted originalr"rr
r
r�test_cant_delete_originalT��z'HookableTests.test_cant_delete_originalcCr!)NrrcSr
rr
r
r
r
rrdrz:HookableTests.test_cant_assign_implementation.<locals>.foocSr
rr
r
r
r
rrfrz:HookableTests.test_cant_assign_implementation.<locals>.barzAssigned implementation�rrrrr#r$rr
r
r�test_cant_assign_implementationbr&z-HookableTests.test_cant_assign_implementationcCr')NrrcSr
rr
r
r
r
rrtrz:HookableTests.test_cant_delete_implementation.<locals>.foozDeleted implementationr*rr
r
r�test_cant_delete_implementationrr)z-HookableTests.test_cant_delete_implementationcsLddlm}g��fdd�}||�}|dddd�|��d	d
difg�dS)Nrrcs��||f�dSr)�append)�args�kw��_calledr
rr�sz-HookableTests.test_ctor___call__.<locals>.foo�one�two�baz)r)r2r3r)rr�assertEqualrr
r0r�test_ctor___call__�sz HookableTests.test_ctor___call__N)�__name__�
__module__�__qualname__rrrrrr r%r(r+r,r6r
r
r
rrsrcCst�t�t�f�Sr)�unittest�	TestSuite�	makeSuiterr
r
r
r�
test_suite�s�r=)�__doc__r:�TestCaserr=r
r
r
r�<module>s
w

Anon7 - 2022
AnonSec Team