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

,�W��@s2dZddlZGdd�dej�Zdd�Zdd�ZdS)	zTests for z.c.factory
�Nc@sfeZdZdd�Zddd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�FactoryTestscCsddlm}|S)Nr)�Factory)�zope.component.factoryr)�selfr�r�C/usr/lib/python3/dist-packages/zope/component/tests/test_factory.py�_getTargetClassszFactoryTests._getTargetClassNcOs&|durt}|��|g|�Ri|��S�N)�_test_callabler)r�callable�args�kwrrr�_makeOneszFactoryTests._makeOnecC�*ddlm}ddlm}|||���dS)Nr)�verifyClass��IFactory)�zope.interface.verifyr�zope.component.interfacesrr)rrrrrr�test_class_conforms_to_IFactory�z,FactoryTests.test_class_conforms_to_IFactorycCr)Nr)�verifyObjectr)rrrrr)rrrrrr�"test_instance_conforms_to_IFactory#rz/FactoryTests.test_instance_conforms_to_IFactorycCsD|��}|�|jt�|�|jd�|�|jd�|�|jd�dS)N�)r�assertEqual�	_callabler
�title�description�_interfaces�r�factoryrrr�test_ctor_defaults(s
zFactoryTests.test_ctor_defaultscCs.|�tdd�}|�|jd�|�|jd�dS)N�TITLE�DESCRIPTION)rr
rrrrrrr�test_ctor_expclit/szFactoryTests.test_ctor_expclitcs6g��fdd�}|�|�}|�|��difg�dS)Nc���||f�dSr	��append�rr
��_calledrrr6�z5FactoryTests.test___call___no_args.<locals>._callabler�rr�rrr rr)r�test___call___no_args4s

z"FactoryTests.test___call___no_argscs:g��fdd�}|�|�}|dd�|��difg�dS)Ncr%r	r&r(r)rrr>r+z=FactoryTests.test___call___positional_args.<locals>._callable�one�two)r/r0r,r-rr)r�test___call___positional_args<s


z*FactoryTests.test___call___positional_argscs>g��fdd�}|�|�}|dd�|��dddifg�dS)Ncr%r	r&r(r)rrrFr+z:FactoryTests.test___call___keyword_args.<locals>._callable�bar)�foorr3r,r-rr)r�test___call___keyword_argsDs


z'FactoryTests.test___call___keyword_argsc	Cs�ddlm}ddlm}Gdd�d|�}Gdd�d|�}Gdd	�d	|�}||�d
d��}|j|||fd�}|��}|�|jd
�|�t|�||g�dS)Nr��	Interface��implementerc@�eZdZdS)z6FactoryTests.test_getInterfaces_explicit.<locals>.IFooN��__name__�
__module__�__qualname__rrrr�IFooO�r>c@r9)z6FactoryTests.test_getInterfaces_explicit.<locals>.IBarNr:rrrr�IBarQr?r@c@r9)z6FactoryTests.test_getInterfaces_explicit.<locals>.IBazNr:rrrr�IBazSr?rAcS�dSr	rrrrrrU�z;FactoryTests.test_getInterfaces_explicit.<locals>._callable)�
interfacesr)�zope.interfacer6r8r�
getInterfacesrr;�list)	rr6r8r>r@rArr �specrrr�test_getInterfaces_explicitLs
z(FactoryTests.test_getInterfaces_explicitcCs`ddlm}ddlm}Gdd�d|�}||�dd��}|�|�}|��}|�t|�|g�dS)Nrr5r7c@r9)z6FactoryTests.test_getInterfaces_implicit.<locals>.IBazNr:rrrrrA`r?rAcSrBr	rrrrrrbrCz;FactoryTests.test_getInterfaces_implicit.<locals>._callable)rEr6r8rrFrrG)rr6r8rArr rHrrr�test_getInterfaces_implicit]s

z(FactoryTests.test_getInterfaces_implicitr	)r;r<r=rrrrr!r$r.r1r4rIrJrrrrrs
rcOrBr	rr(rrrr
isr
cCst�t�t�f�Sr	)�unittest�	TestSuite�	makeSuiterrrrr�
test_suitels�rN)�__doc__rK�TestCaserr
rNrrrr�<module>s

V

Anon7 - 2022
AnonSec Team