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/interface/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/interface/tests/__pycache__/test_exceptions.cpython-310.pyc
o

$
x`'�@shdZddlZdd�ZGdd�dej�ZGdd�dej�Zd	d
�ZGdd�dej�ZGd
d�dej�ZdS)z& zope.interface.exceptions unit tests
�NcCs ddlm}Gdd�d|�}|S)Nr)�	Interfacec@seZdZdS)z_makeIface.<locals>.IDummyN)�__name__�
__module__�__qualname__�rr�F/usr/lib/python3/dist-packages/zope/interface/tests/test_exceptions.py�IDummysr)�zope.interfacer)rrrrr�
_makeIfacesr
c@�,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�DoesNotImplementTestscC�ddlm}|S)Nr)�DoesNotImplement)�zope.interface.exceptionsr)�selfrrrr�_getTargetClass�z%DoesNotImplementTests._getTargetClasscGst�}|��|g|�R�S)N�r
r�r�args�ifacerrr�_makeOneszDoesNotImplementTests._makeOnecC�|��}|�t|�d�dS)Nz�An object has failed to implement interface zope.interface.tests.test_exceptions.IDummy: Does not declaratively implement the interface.�r�assertEqual�str�r�dnirrr�test___str__"�
�z"DoesNotImplementTests.test___str__cC�|�d�}|�t|�d�dS)N�	candidatez�The object 'candidate' has failed to implement interface zope.interface.tests.test_exceptions.IDummy: Does not declaratively implement the interface.rrrrr�test___str__w_candidate+�

�z-DoesNotImplementTests.test___str__w_candidateN�rrrrrrr"rrrrrs
	rc@r)
�BrokenImplementationTestscCr
)Nr)�BrokenImplementation)rr&)rr&rrrr7rz)BrokenImplementationTests._getTargetClasscGst�}|��|dg|�R�S)N�missingrrrrrr;sz"BrokenImplementationTests._makeOnecCr)Nz�An object has failed to implement interface zope.interface.tests.test_exceptions.IDummy: The 'missing' attribute was not provided.rrrrrr?rz&BrokenImplementationTests.test___str__cCr )Nr!z�The object 'candidate' has failed to implement interface zope.interface.tests.test_exceptions.IDummy: The 'missing' attribute was not provided.rrrrrr"Gr#z1BrokenImplementationTests.test___str__w_candidateNr$rrrrr%5s
r%cCsdS)z�
    This is a global function with a simple argument list.

    It exists to be able to report the same information when
    formatting signatures under Python 2 and Python 3.
    Nrrrrr�broken_functionPsr(c@sHeZdZdd�ZdZdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS)�BrokenMethodImplementationTestscCr
)Nr��BrokenMethodImplementation)rr+)rr+rrrr[rz/BrokenMethodImplementationTests._getTargetClass�	I said socGs|��d|jg|�R�S)N�aMethod)r�message)rrrrrrasz(BrokenMethodImplementationTests._makeOnecCr)NzoAn object has failed to implement interface <Unknown>: The contract of 'aMethod' is violated because I said so.rrrrrrdrz,BrokenMethodImplementationTests.test___str__cCs"|�ddd�}|�t|�d�dS)N�
some_function�<IFoo>r!zyThe object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because I said so.rrrrr�)test___str__w_candidate_no_implementationls
�zIBrokenMethodImplementationTests.test___str__w_candidate_no_implementationcCs(d|_|�tdd�}|�t|�d�dS)Nzimplementation is wonkyr0r!z�The object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because 'broken_function()' is wonky.)r.rr(rrrrrr�(test___str__w_candidate_w_implementationt��zHBrokenMethodImplementationTests.test___str__w_candidate_w_implementationcCs(d|_|�ddd�}|�t|�d�dS)Nzimplementation is not callable�*r0r!z�The object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because '42' is not callable.)r.rrrrrrr�5test___str__w_candidate_w_implementation_not_callable~r3zUBrokenMethodImplementationTests.test___str__w_candidate_w_implementation_not_callablecCs |�dd�}|�t|�d�dS)Nr!zEBrokenMethodImplementation('aMethod', 'I said so', None, 'candidate'))rr�reprrrrr�test___repr__w_candidate�s
�z8BrokenMethodImplementationTests.test___repr__w_candidateN)rrrrr.rrr1r2r5r7rrrrr)Ys

r)c@r)
�MultipleInvalidTestscCr
)Nr)�MultipleInvalid)rr9)rr9rrrr�rz$MultipleInvalidTests._getTargetClasscCst�}|��|d|�S)N�targetr)r�excsrrrrr�szMultipleInvalidTests._makeOnecCs<ddlm}|dd�td�g}|�|�}|�t|�d�dS)Nrr*r-r,zRegular exceptionz�The object 'target' has failed to implement interface zope.interface.tests.test_exceptions.IDummy:
    The contract of 'aMethod' is violated because I said so
    Regular exception)rr+�	Exceptionrrr�rr+r;rrrr�test__str__�s�
�z MultipleInvalidTests.test__str__cCs>ddlm}|dd�tdd�g}|�|�}|�t|�d�dS)Nrr*r-r,�Regular�	exceptionz�MultipleInvalid(<InterfaceClass zope.interface.tests.test_exceptions.IDummy>, 'target', (BrokenMethodImplementation('aMethod', 'I said so'), Exception('Regular', 'exception'))))rr+r<rrr6r=rrr�test__repr__�s�
�z!MultipleInvalidTests.test__repr__N)rrrrrr>rArrrrr8�s
r8)	�__doc__�unittestr
�TestCaserr%r(r)r8rrrr�<module>s
	7

Anon7 - 2022
AnonSec Team