+
    -½i_  ã                   ó  € R t ^ RIt^ RIt ! R R]P                  P
                  4      tR t ! R R]P                  4      t	 ! R R]P                  4      t
R	 t ! R
 R]P                  4      t ! R R]P                  4      tR# )z%zope.interface.exceptions unit tests
Nc                   ó   € ] tR t^tRtR# )ÚIDummy© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚF/usr/lib/python3/dist-packages/zope/interface/tests/test_exceptions.pyr   r      s   † Ûr
   r   c                  ó   € ^ RI Hp  V # )é    ©r   )Ú$zope.interface.tests.test_exceptionsr   r   s    r   Ú
_makeIfacer      s
   € Ý;à€Mr
   c                   ó8   a € ] tR t^t o R tR tR tR tRtV t	R# )ÚDoesNotImplementTestsc                ó   € ^ RI Hp V# )r   )ÚDoesNotImplement)Úzope.interface.exceptionsr   )Úselfr   s   & r   Ú_getTargetClassÚ%DoesNotImplementTests._getTargetClass!   s   € Ý>ØÐr
   c                óF   € \        4       pV P                  4       ! V.VO5!  # )N©r   r   ©r   ÚargsÚifaces   &* r   Ú_makeOneÚDoesNotImplementTests._makeOne%   s"   € Ü“ˆØ×#Ñ#Ô% eÐ3¨dÓ3Ð3r
   c                ó\   € V P                  4       pV P                  \        V4      R 4       R# )zˆAn object has failed to implement interface zope.interface.tests.test_exceptions.IDummy: Does not declaratively implement the interface.N©r   ÚassertEqualÚstr©r   Údnis   & r   Útest___str__Ú"DoesNotImplementTests.test___str__)   s'   € Ø�m‰m‹oˆØ×ÑÜ�‹Hð>ö	
r
   c                ó^   € V P                  R 4      pV P                  \        V4      R4       R# )Ú	candidatez•The object 'candidate' has failed to implement interface zope.interface.tests.test_exceptions.IDummy: Does not declaratively implement the interface.Nr!   r$   s   & r   Útest___str__w_candidateÚ-DoesNotImplementTests.test___str__w_candidate2   s*   € Ø�m‰m˜KÓ(ˆØ×ÑÜ�‹Hð>ö	
r
   r   N©
r   r   r   r   r   r   r&   r*   r	   Ú__classdictcell__©Ú__classdict__s   @r   r   r      s   ø‡ € ò ò4ò
÷
ð 
r
   r   c                   ó8   a € ] tR t^<t o R tR tR tR tRtV t	R# )ÚBrokenImplementationTestsc                ó   € ^ RI Hp V# )r   )ÚBrokenImplementation)r   r3   )r   r3   s   & r   r   Ú)BrokenImplementationTests._getTargetClass>   s   € ÝBØ#Ð#r
   c                óH   € \        4       pV P                  4       ! VR .VO5!  # )Úmissingr   r   s   &* r   r   Ú"BrokenImplementationTests._makeOneB   s$   € Ü“ˆØ×#Ñ#Ô% e¨YÐ>¸Ó>Ð>r
   c                ó\   € V P                  4       pV P                  \        V4      R 4       R# )z‚An object has failed to implement interface zope.interface.tests.test_exceptions.IDummy: The 'missing' attribute was not provided.Nr!   r$   s   & r   r&   Ú&BrokenImplementationTests.test___str__F   s'   € Ø�m‰m‹oˆØ×ÑÜ�‹Hð8ö	9r
   c                ó^   € V P                  R 4      pV P                  \        V4      R4       R# )r)   z�The object 'candidate' has failed to implement interface zope.interface.tests.test_exceptions.IDummy: The 'missing' attribute was not provided.Nr!   r$   s   & r   r*   Ú1BrokenImplementationTests.test___str__w_candidateN   s*   € Ø�m‰m˜KÓ(ˆØ×ÑÜ�‹Hð8ö	9r
   r   Nr,   r.   s   @r   r1   r1   <   s   ø‡ € ò$ò?ò9÷9ð 9r
   r1   c                 ó   € R# )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=   W   s   ‚ r
   c                   óN   a € ] tR t^`t o R tRtR tR tR tR t	R t
R tR	tV tR
# )ÚBrokenMethodImplementationTestsc                ó   € ^ RI Hp V# )r   ©ÚBrokenMethodImplementation)r   rB   )r   rB   s   & r   r   Ú/BrokenMethodImplementationTests._getTargetClassb   s   € ÝHØ)Ð)r
   ú	I said soc                óH   € V P                  4       ! R V P                  .VO5!  # )ÚaMethod)r   Úmessage)r   r   s   &*r   r   Ú(BrokenMethodImplementationTests._makeOneh   s!   € Ø×#Ñ#Ô% i°·±ÐEÀÓEÐEr
   c                ó\   € V P                  4       pV P                  \        V4      R 4       R# )zoAn object has failed to implement interface <Unknown>: The contract of 'aMethod' is violated because I said so.Nr!   r$   s   & r   r&   Ú,BrokenMethodImplementationTests.test___str__k   s(   € Ø�m‰m‹oˆØ×ÑÜ�‹HðGö	
r
   c                ób   € V P                  R RR4      pV P                  \        V4      R4       R# )Úsome_functionú<IFoo>r)   zyThe object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because I said so.Nr!   r$   s   & r   Ú)test___str__w_candidate_no_implementationÚIBrokenMethodImplementationTests.test___str__w_candidate_no_implementations   s/   € Ø�m‰m˜O¨X°{ÓCˆØ×ÑÜ�‹HðGö	
r
   c                óx   € R V n         V P                  \        RR4      pV P                  \	        V4      R4       R# )zimplementation is wonkyrM   r)   zŒThe object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because 'broken_function()' is wonky.N)rG   r   r=   r"   r#   r$   s   & r   Ú(test___str__w_candidate_w_implementationÚHBrokenMethodImplementationTests.test___str__w_candidate_w_implementation{   s5   € Ø0ˆŒØ�m‰mœO¨X°{ÓCˆØ×ÑÜ�‹Hð,ö	
r
   c                óp   € R V n         V P                  ^*RR4      pV P                  \        V4      R4       R# )zimplementation is not callablerM   r)   z„The object 'candidate' has failed to implement interface <IFoo>: The contract of 'aMethod' is violated because '42' is not callable.N)rG   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                ó`   € V P                  R R4      pV P                  \        V4      R4       R # )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
   )rG   N)r   r   r   r   r   rG   r   r&   rN   rQ   rT   rX   r	   r-   r.   s   @r   r?   r?   `   s5   ø‡ € ò*ð €GòFò
ò
ò
ò
÷
ð 
r
   r?   c                   ó8   a € ] tR t^˜t o R tR tR tR tRtV t	R# )ÚMultipleInvalidTestsc                ó   € ^ RI Hp V# )r   )ÚMultipleInvalid)r   r]   )r   r]   s   & r   r   Ú$MultipleInvalidTests._getTargetClassš   s   € Ý=ØÐr
   c                óF   € \        4       pV P                  4       ! VR V4      # )Útargetr   )r   Úexcsr   s   && r   r   ÚMultipleInvalidTests._makeOnež   s!   € Ü“ˆØ×#Ñ#Ô% e¨X°tÓ<Ð<r
   c                ó’   € ^ RI Hp V! RR4      \        R4      .pV P                  V4      pV P	                  \        V4      R4       R# )r   rA   rF   rD   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 exceptionN)r   rB   Ú	Exceptionr   r"   r#   ©r   rB   ra   r%   s   &   r   Útest__str__Ú MultipleInvalidTests.test__str__¢   sI   € ÝHá& y°+Ó>ÜÐ)Ó*ð
ˆð �m‰m˜DÓ!ˆØ×ÑÜ�‹Hð$ö	
r
   c                ó”   € ^ RI Hp V! RR4      \        RR4      .pV P                  V4      pV P	                  \        V4      R4       R# )r   rA   rF   rD   ÚRegularÚ	exceptionz°MultipleInvalid(<InterfaceClass zope.interface.tests.test_exceptions.IDummy>, 'target', (BrokenMethodImplementation('aMethod', 'I said so'), Exception('Regular', 'exception')))N)r   rB   rd   r   r"   rW   re   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   rf   rk   r	   r-   r.   s   @r   r[   r[   ˜   s   ø‡ € òò=ò
÷
ð 
r
   r[   )Ú__doc__ÚunittestÚzope.interfaceÚzopeÚ	interfaceÚ	Interfacer   r   ÚTestCaser   r1   r=   r?   r[   r   r
   r   Ú<module>rt      sy   ðñã ã ô	ˆT�^‰^×%Ñ%ô 	òô
˜H×-Ñ-ô 
ô:9 × 1Ñ 1ô 9ò6ô5
 h×&7Ñ&7ô 5
ôp)
˜8×,Ñ,ö )
r
   