+
    -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3d33r
   c                \    V P                  4       pV P                  \        V4      R 4       R# )zAn 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'    mmoH>	
r
   c                ^    V P                  R 4      pV P                  \        V4      R4       R# )	candidatezThe 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*    mmK(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$    ##%eY>>>r
   c                \    V P                  4       pV P                  \        V4      R 4       R# )zAn 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'    mmoH8	9r
   c                ^    V P                  R 4      pV P                  \        V4      R4       R# )r)   zThe 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*    mmK(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(    mmo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_implementationIBrokenMethodImplementationTests.test___str__w_candidate_no_implementations   s/    mmOX{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)   zThe 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_implementationHBrokenMethodImplementationTests.test___str__w_candidate_w_implementation{   s5    0mmOX{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)   zThe 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_callableUBrokenMethodImplementationTests.test___str__w_candidate_w_implementation_not_callable   s5    7mmB+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_candidate8BrokenMethodImplementationTests.test___repr__w_candidate   s,    mmD+.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!    ##%eXt<<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 exceptionzThe 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+>)*
 mmD!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	exceptionzMultipleInvalid(<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-	
 mmD!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 965
h&7&7 5
p)
8,, )
r
   