ó
    Ï›‘hë  ã                   óÄ   • S r SSKrS r " S S\R                  5      r " S S\R                  5      rS r " S	 S
\R                  5      r " S S\R                  5      rg)z%zope.interface.exceptions unit tests
é    Nc                  ó(   • SSK Jn    " S SU 5      nU$ )Nr   )Ú	Interfacec                   ó   • \ rS rSrSrg)Ú_makeIface.<locals>.IDummyé   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚhC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\zope/interface/tests/test_exceptions.pyÚIDummyr      s   † Úr   r   )Úzope.interfacer   )r   r   s     r   Ú
_makeIfacer      s   € Ý(ô�ô ð €Mr   c                   ó,   • \ rS rSrS rS rS rS rSrg)ÚDoesNotImplementTestsé   c                 ó   • SSK Jn  U$ )Nr   )ÚDoesNotImplement)Úzope.interface.exceptionsr   )Úselfr   s     r   Ú_getTargetClassÚ%DoesNotImplementTests._getTargetClass   s   € Ý>ØÐr   c                 óD   • [        5       nU R                  5       " U/UQ76 $ )N©r   r   ©r   ÚargsÚifaces      r   Ú_makeOneÚDoesNotImplementTests._makeOne"   s"   € Ü“ˆØ×#Ñ#Ô% eÐ3¨dÒ3Ð3r   c                 óZ   • U R                  5       nU R                  [        U5      S5        g )NzˆAn object has failed to implement interface zope.interface.tests.test_exceptions.IDummy: Does not declaratively implement the interface.©r!   ÚassertEqualÚstr©r   Údnis     r   Útest___str__Ú"DoesNotImplementTests.test___str__&   s'   € Ø�m‰m‹oˆØ×ÑÜ�‹Hð>õ	
r   c                 ó\   • U R                  S5      nU R                  [        U5      S5        g )NÚ	candidatez•The object 'candidate' has failed to implement interface zope.interface.tests.test_exceptions.IDummy: Does not declaratively implement the interface.r$   r'   s     r   Útest___str__w_candidateÚ-DoesNotImplementTests.test___str__w_candidate/   s*   € Ø�m‰m˜KÓ(ˆØ×ÑÜ�‹Hð>õ	
r   r   N©	r	   r
   r   r   r   r!   r)   r-   r   r   r   r   r   r      s   † ò ò4ò
õ
r   r   c                   ó,   • \ rS rSrS rS rS rS rSrg)ÚBrokenImplementationTestsé9   c                 ó   • SSK Jn  U$ )Nr   )ÚBrokenImplementation)r   r4   )r   r4   s     r   r   Ú)BrokenImplementationTests._getTargetClass;   s   € ÝBØ#Ð#r   c                 óF   • [        5       nU R                  5       " US/UQ76 $ )NÚmissingr   r   s      r   r!   Ú"BrokenImplementationTests._makeOne?   s$   € Ü“ˆØ×#Ñ#Ô% e¨YÐ>¸Ò>Ð>r   c                 óZ   • U R                  5       nU R                  [        U5      S5        g )Nz‚An object has failed to implement interface zope.interface.tests.test_exceptions.IDummy: The 'missing' attribute was not provided.r$   r'   s     r   r)   Ú&BrokenImplementationTests.test___str__C   s'   € Ø�m‰m‹oˆØ×ÑÜ�‹Hð8õ	9r   c                 ó\   • U R                  S5      nU R                  [        U5      S5        g )Nr,   z�The object 'candidate' has failed to implement interface zope.interface.tests.test_exceptions.IDummy: The 'missing' attribute was not provided.r$   r'   s     r   r-   Ú1BrokenImplementationTests.test___str__w_candidateK   s*   € Ø�m‰m˜KÓ(ˆØ×ÑÜ�‹Hð8õ	9r   r   Nr/   r   r   r   r1   r1   9   s   † ò$ò?ò9õ9r   r1   c                  ó   • g)z‰
This is a global function with a simple argument list.

It exists to be able to report the same information when
formatting signatures.
Nr   r   r   r   Úbroken_functionr>   T   s   � r   c                   óB   • \ rS rSrS rSrS rS rS rS r	S r
S	 rS
rg)ÚBrokenMethodImplementationTestsé]   c                 ó   • SSK Jn  U$ )Nr   ©ÚBrokenMethodImplementation)r   rD   )r   rD   s     r   r   Ú/BrokenMethodImplementationTests._getTargetClass_   s   € ÝHØ)Ð)r   ú	I said soc                 óF   • U R                  5       " SU R                  /UQ76 $ )NÚaMethod)r   Úmessage)r   r   s     r   r!   Ú(BrokenMethodImplementationTests._makeOnee   s!   € Ø×#Ñ#Ô% i°·±ÐEÀÒEÐEr   c                 óZ   • U R                  5       nU R                  [        U5      S5        g )NzoAn object has failed to implement interface <Unknown>: The contract of 'aMethod' is violated because I said so.r$   r'   s     r   r)   Ú,BrokenMethodImplementationTests.test___str__h   s(   € Ø�m‰m‹oˆØ×ÑÜ�‹HðGõ	
r   c                 ó`   • U R                  SSS5      nU R                  [        U5      S5        g )NÚsome_functionú<IFoo>r,   zyThe object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because I said so.r$   r'   s     r   Ú)test___str__w_candidate_no_implementationÚIBrokenMethodImplementationTests.test___str__w_candidate_no_implementationp   s/   € Ø�m‰m˜O¨X°{ÓCˆØ×ÑÜ�‹HðGõ	
r   c                 óv   • SU l         U R                  [        SS5      nU R                  [	        U5      S5        g )Nzimplementation is wonkyrO   r,   zŒThe object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because 'broken_function()' is wonky.)rI   r!   r>   r%   r&   r'   s     r   Ú(test___str__w_candidate_w_implementationÚHBrokenMethodImplementationTests.test___str__w_candidate_w_implementationx   s5   € Ø0ˆŒØ�m‰mœO¨X°{ÓCˆØ×ÑÜ�‹Hð,õ	
r   c                 ón   • SU l         U R                  SSS5      nU R                  [        U5      S5        g )Nzimplementation is not callableé*   rO   r,   z„The object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because '42' is not callable.)rI   r!   r%   r&   r'   s     r   Ú5test___str__w_candidate_w_implementation_not_callableÚUBrokenMethodImplementationTests.test___str__w_candidate_w_implementation_not_callable‚   s5   € Ø7ˆŒØ�m‰m˜B ¨+Ó6ˆØ×ÑÜ�‹Hð$õ	
r   c                 ó^   • U R                  S S5      nU R                  [        U5      S5        g )Nr,   zEBrokenMethodImplementation('aMethod', 'I said so', None, 'candidate'))r!   r%   Úreprr'   s     r   Útest___repr__w_candidateÚ8BrokenMethodImplementationTests.test___repr__w_candidateŒ   s,   € Ø�m‰m˜D +Ó.ˆØ×ÑÜ�‹Ið9õ	
r   )rI   N)r	   r
   r   r   r   rI   r!   r)   rP   rS   rW   r[   r   r   r   r   r@   r@   ]   s-   † ò*ð €GòFò
ò
ò
ò
õ
r   r@   c                   ó,   • \ rS rSrS rS rS rS rSrg)ÚMultipleInvalidTestsé•   c                 ó   • SSK Jn  U$ )Nr   )ÚMultipleInvalid)r   ra   )r   ra   s     r   r   Ú$MultipleInvalidTests._getTargetClass—   s   € Ý=ØÐr   c                 óF   • [        5       nU R                  5       " USU5      $ )NÚtargetr   )r   Úexcsr    s      r   r!   ÚMultipleInvalidTests._makeOne›   s!   € Ü“ˆØ×#Ñ#Ô% e¨X°tÓ<Ð<r   c                 ó�   • SSK Jn  U" SS5      [        S5      /nU R                  U5      nU R	                  [        U5      S5        g )Nr   rC   rH   rF   zRegular 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)r   rD   Ú	Exceptionr!   r%   r&   ©r   rD   re   r(   s       r   Útest__str__Ú MultipleInvalidTests.test__str__Ÿ   sI   € ÝHá& y°+Ó>ÜÐ)Ó*ð
ˆð �m‰m˜DÓ!ˆØ×ÑÜ�‹Hð$õ	
r   c                 ó’   • SSK Jn  U" SS5      [        SS5      /nU R                  U5      nU R	                  [        U5      S5        g )Nr   rC   rH   rF   ÚRegularÚ	exceptionz°MultipleInvalid(<InterfaceClass zope.interface.tests.test_exceptions.IDummy>, 'target', (BrokenMethodImplementation('aMethod', 'I said so'), Exception('Regular', 'exception'))))r   rD   rh   r!   r%   rZ   ri   s       r   Útest__repr__Ú!MultipleInvalidTests.test__repr__®   sL   € ÝHá& y°+Ó>ô �i Ó-ð	
ˆð �m‰m˜DÓ!ˆØ×ÑÜ�‹Ið3õ	
r   r   N)	r	   r
   r   r   r   r!   rj   ro   r   r   r   r   r^   r^   •   s   † òò=ò
õ
r   r^   )	Ú__doc__Úunittestr   ÚTestCaser   r1   r>   r@   r^   r   r   r   Ú<module>rt      s`   ðñã òô
˜H×-Ñ-ô 
ô:9 × 1Ñ 1ô 9ò6ô5
 h×&7Ñ&7ô 5
ôp)
˜8×,Ñ,õ )
r   