HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/zope/interface/tests/__pycache__/test_exceptions.cpython-38.pyc
U

ؒ�]M
�@sNdZddlZdd�ZGdd�dej�ZGdd�dej�ZGd	d
�d
ej�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)Zzope.interfacer)rrrrr�
_makeIfacesr	c@s$eZdZdd�Zdd�Zdd�ZdS)�DoesNotImplementTestscCsddlm}|S)Nr)�DoesNotImplement)�zope.interface.exceptionsr)�selfrrrr�_getTargetClasssz%DoesNotImplementTests._getTargetClasscCst�}|��|�S�N�r	r)r
�ifacerrr�_makeOneszDoesNotImplementTests._makeOnecCs|��}|�t|�d�dS)NzmAn object does not implement interface <InterfaceClass zope.interface.tests.test_exceptions.IDummy>

        �rZassertEqual�str�r
Zdnirrr�test___str__"s
�z"DoesNotImplementTests.test___str__N�rrrrrrrrrrr
sr
c@s&eZdZdd�Zd	dd�Zdd�ZdS)
�BrokenImplementationTestscCsddlm}|S)Nr)�BrokenImplementation)rr)r
rrrrr+sz)BrokenImplementationTests._getTargetClass�missingcCst�}|��||�Srr)r
�namerrrrr/sz"BrokenImplementationTests._makeOnecCs|��}|�t|�d�dS)Nz�An object has failed to implement interface <InterfaceClass zope.interface.tests.test_exceptions.IDummy>

        The missing attribute was not provided.
        rrrrrr3s
�z&BrokenImplementationTests.test___str__N)rrrrrrr)s
rc@s&eZdZdd�Zd
dd�Zdd�Zd	S)�BrokenMethodImplementationTestscCsddlm}|S)Nr)�BrokenMethodImplementation)rr)r
rrrrr=sz/BrokenMethodImplementationTests._getTargetClass�aMethod�	I said socCs|��||�Sr)r)r
�methodZmessrrrrAsz(BrokenMethodImplementationTests._makeOnecCs|��}|�t|�d�dS)NzWThe implementation of aMethod violates its contract
        because I said so.
        rrrrrrDs
�z,BrokenMethodImplementationTests.test___str__N)rrrrrrrr;s
r)�__doc__Zunittestr	ZTestCaser
rrrrrr�<module>s