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/zope/hookable/tests/__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/zope/hookable/tests/__pycache__/test_hookable.cpython-310.pyc
o

|h�`�@s�dZddlZdd�Zdd�Zdd�ZGd	d
�d
e�ZGdd�de�ZGd
d�deej�Z	Gdd�deej�Z
Gdd�dee	�ZGdd�dee
�Zdd�Z
dS)z$Test the hookable support Extension
�NcC�dS�N�FOO�rrr�C/usr/lib/python3/dist-packages/zope/hookable/tests/test_hookable.py�
return_foo�rcCr�N�BARrrrrr�
return_barrrcCstd��)NzThis should not be called)�AssertionErrorrrrr�
not_calledsr
c@�eZdZdd�ZdS)�PyHookableMixincOsddlm}||i|��S)Nr)�_py_hookable)�
zope.hookabler)�self�args�kwrrrr�_callFUT!szPyHookableMixin._callFUTN��__name__�
__module__�__qualname__rrrrrr�rc@r)�
HookableMixincOs0ddlm}m}||urt�d��||i|��S)Nr)�hookablerz$Hookable and PyHookable are the same)rrr�unittest�SkipTest)rrrrrrrrr(s
zHookableMixin._callFUTNrrrrrr&rrc@sdeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�PyHookableTestscCs>ddlm}m}ddlm}m}|�||r|�dS|�dS)Nr)�_PURE_PYTHONr)r�_c_hookable)rr rrr!�assertIs)rr rrr!rrr�test_pure_python2sz PyHookableTests.test_pure_pythoncCs8|�t�}|�|jt�|�|jt�|�|�d�dSr�rrr"�original�implementation�assertEqual�r�hookedrrr�test_before_hook7s
z PyHookableTests.test_before_hookcCsN|�t�}|�t�}|�|t�|�|jt�|�|jt�|�|�d�dSr	)rr
�sethookrr"r%r&r'�rr)�oldrrr�test_after_hook=s

zPyHookableTests.test_after_hookcCsV|�t�}|�t�}|��|�|t�|�|jt�|�|jt�|�|�d�dSr)	rrr+r
�resetr"r%r&r'r,rrr�test_after_hook_and_resetEs

z)PyHookableTests.test_after_hook_and_resetcC�B|�t�}|�ttf��|`Wd�dS1swYdS�N)rr
�assertRaises�	TypeError�AttributeErrorr%r(rrr�test_original_cannot_be_deletedN�
"�z/PyHookableTests.test_original_cannot_be_deletedcCr1r2)rr
r3r4r5r&r(rrr�%test_implementation_cannot_be_deletedSr7z5PyHookableTests.test_implementation_cannot_be_deletedcCs8|�t��
|��Wd�dS1swYdSr2�r3r4r�rrrr�test_no_argsXs
"�zPyHookableTests.test_no_argscCs<|�t��|�tt�Wd�dS1swYdSr2)r3r4rr
r:rrr�test_too_many_args\�"�z"PyHookableTests.test_too_many_argscCs:|jtd�}|�|jt�|�|jt�|�|�d�dS)N)r&rr$r(rrr�test_w_implementation_kwarg`sz+PyHookableTests.test_w_implementation_kwargcCs<|�t��|jdd�Wd�dS1swYdS)N�*)�nonesuchr9r:rrr�test_w_unknown_kwargfr=z$PyHookableTests.test_w_unknown_kwargcCsDGdd�dt�}|�|�}|�|�|�|�t�|�|�d�dS)Nc@�eZdZdS)z%PyHookableTests.test_class.<locals>.CN�rrrrrrr�Ck�rDr
)�objectr�assertIsInstancer+rr'�rrDr)rrr�
test_classjs


zPyHookableTests.test_classN)rrrr#r*r.r0r6r8r;r<r>rArIrrrrr/s	rc@s\eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�ZdS)�TestIssue6PycCs,|�d|j�|�|�}|�|j|j�dS)N�I have some docs)r'�__doc__r)r�docsr)rrr�_check_preserves_doc}s
z!TestIssue6Py._check_preserves_doccCsdd�}|�|�dS)NcSr)rKNrrrrrrM�sz6TestIssue6Py.test_preserves_doc_function.<locals>.docs)rN)rrMrrr�test_preserves_doc_function�sz(TestIssue6Py.test_preserves_doc_functioncCsGdd�dt�}|�|�dS)Nc@seZdZdZdS)z3TestIssue6Py.test_preserves_doc_class.<locals>.DocsrKN)rrrrLrrrr�Docs�srP)rFrN)rrPrrr�test_preserves_doc_class�sz%TestIssue6Py.test_preserves_doc_classcCs|�t�}|�d|j�dS)Nr)rrr'�	__bases__r(rrr�test_empty_bases_function��
z&TestIssue6Py.test_empty_bases_functioncCs|�t�}|�i|j�dSr2)rrr'�__dict__r(rrr�test_empty_dict_function�rTz%TestIssue6Py.test_empty_dict_functioncCs>Gdd�dt�}|�|jtf�|�|�}|�|jtf�dS)Nc@rB)z(TestIssue6Py.test_bases_class.<locals>.CNrCrrrrrD�rErD)rFr'rRrrHrrr�test_bases_class�s
zTestIssue6Py.test_bases_classcCs.Gdd�dt�}|�|�}|�|j|j�dS)Nc@rB)z'TestIssue6Py.test_dict_class.<locals>.CNrCrrrrrD�rErD)rFrr'rUrHrrr�test_dict_class�s
zTestIssue6Py.test_dict_classcCsx|�t�}|�t��
t|d�Wd�n1swY|�t��|�d�Wd�dS1s5wYdS)Nr?)rrr3r4�getattr�__getattribute__r(rrr�test_non_string_attr_name�s
�"�z&TestIssue6Py.test_non_string_attr_namecCs$|�t�}|�d�}|�|d�dS)NrRr)rrrZr')rr)�resultrrr�test_unicode_attribute_name�s

z(TestIssue6Py.test_unicode_attribute_namecCsD|�t�}|�t��|�d�Wd�dS1swYdS)N�)rrr3r5rZr(rrr�test_short_name�s
"�zTestIssue6Py.test_short_nameN)
rrrrNrOrQrSrVrWrXr[r]r_rrrrrJus	rJc@rB)�
HookableTestsNrCrrrrr`�rEr`c@rB)�
TestIssue6NrCrrrrra�rEracCstj�t�Sr2)r�defaultTestLoader�loadTestsFromNamerrrrr�
test_suite�srd)rLrrrr
rFrr�TestCaserrJr`rardrrrr�<module>s 
	�F�E

Anon7 - 2022
AnonSec Team