§
    Ètºfe  ã                   ó�   — d Z ddlZddlmZ ddlmZ  G d„ dej        ¦  «        Z G d„ d¦  «        Z G d	„ d
ej        ¦  «        Z	dS )zÔ
Sample test cases defined using the standard library L{unittest.TestCase}
class which are used as data by test cases which are actually part of the
trial test suite to verify handling of handling of such cases.
é    N)Úexc_info)ÚFailurec                   óR   — e Zd Zd„ Zd„ Zd„ Z ej        d¦  «        d„ ¦   «         ZdS )Ú
PyUnitTestc                 ó   — dS )z!
        A passing test.
        N© ©Úselfs    ú]/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/trial/test/pyunitcases.pyÚ	test_passzPyUnitTest.test_pass   ó   € € € ó    c                 ó    — t          d¦  «        ‚)zE
        A test which raises an exception to cause an error.
        zpyunit error)Ú	Exceptionr	   s    r   Ú
test_errorzPyUnitTest.test_error   s   € õ ˜Ñ'Ô'Ð'r   c                 ó0   — |                       d¦  «         dS )zQ
        A test which uses L{unittest.TestCase.fail} to cause a failure.
        zpyunit failureN)Úfailr	   s    r   Ú	test_failzPyUnitTest.test_fail   s   € ð 	�	Š	Ð"Ñ#Ô#Ð#Ð#Ð#r   zpyunit skipc                 ó   — dS )zS
        A test which uses the L{unittest.skip} decorator to cause a skip.
        Nr   r	   s    r   Ú	test_skipzPyUnitTest.test_skip"   r   r   N)	Ú__name__Ú
__module__Ú__qualname__r   r   r   ÚunittestÚskipr   r   r   r   r   r      si   € € € € € ðð ð ð
(ð (ð (ð$ð $ð $ð €X„]�=Ñ!Ô!ðð ñ "Ô!ðð ð r   r   c                   ó   — e Zd ZdZdefd„ZdS )Ú_NonStringIdzÚ
    A class that looks a little like a TestCase, but not enough so to
    actually be used as one.  This helps L{BrokenRunInfrastructure} use some
    interfaces incorrectly to provoke certain failure conditions.
    Úreturnc                 ó   — t          ¦   «         S )N)Úobjectr	   s    r   Úidz_NonStringId.id0   s   € Ý‰xŒxˆr   N)r   r   r   Ú__doc__r    r!   r   r   r   r   r   )   s9   € € € € € ðð ð�Fð ð ð ð ð ð r   r   c                   ó<   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	S )
ÚBrokenRunInfrastructurezu
    A test suite that is broken at the level of integration between
    L{TestCase.run} and the results object.
    c                 ó>   —  t          | | j        ¦  «        |¦  «        S )zß
        Override the normal C{run} behavior to pass the result object
        along to the test method.  Each test method needs the result object so
        that it can implement its particular kind of brokenness.
        )ÚgetattrÚ_testMethodName©r
   Úresults     r   ÚrunzBrokenRunInfrastructure.run:   s!   € ð 3�w�t˜TÔ1Ñ2Ô2°6Ñ:Ô:Ð:r   c                 óH   — |                      t          ¦   «         ¦  «         dS )zA
        Violate the L{TestResult.addSuccess} interface.
        N)Ú
addSuccessr   r(   s     r   Útest_addSuccessz'BrokenRunInfrastructure.test_addSuccessB   s"   € ð
 	×Ò�,™.œ.Ñ)Ô)Ð)Ð)Ð)r   c                 ó¦   — 	 t          d¦  «        ‚# t          $ r t          ¦   «         }Y nw xY w|                     t	          ¦   «         |¦  «         dS )z?
        Violate the L{TestResult.addError} interface.
        Útest_addErrorN)r   ÚBaseExceptionr   ÚaddErrorr   ©r
   r)   Úerrs      r   r/   z%BrokenRunInfrastructure.test_addErrorI   s]   € ð	Ý˜OÑ,Ô,Ð,øÝð 	ð 	ð 	Ý‘*”*ˆCˆCˆCð	øøøð 	�Š�™œ¨Ñ,Ô,Ð,Ð,Ð,ó   ‚ ‘,«,c                 ó¦   — 	 t          d¦  «        ‚# t          $ r t          ¦   «         }Y nw xY w|                     t	          ¦   «         |¦  «         dS )zA
        Violate the L{TestResult.addFailure} interface.
        Útest_addFailureN)r   r0   r   Ú
addFailurer   r2   s      r   r6   z'BrokenRunInfrastructure.test_addFailureT   s`   € ð	ÝÐ-Ñ.Ô.Ð.øÝð 	ð 	ð 	Ý‘*”*ˆCˆCˆCð	øøøð 	×Ò�,™.œ.¨#Ñ.Ô.Ð.Ð.Ð.r4   c                 óJ   — |                      t          ¦   «         d¦  «         dS )z>
        Violate the L{TestResult.addSkip} interface.
        Útest_addSkipN)ÚaddSkipr   r(   s     r   r9   z$BrokenRunInfrastructure.test_addSkip_   s"   € ð 	�Š•|‘~”~ ~Ñ6Ô6Ð6Ð6Ð6r   c                 ó¦   — 	 t          d¦  «        ‚# t          $ r t          ¦   «         }Y nw xY w|                     t	          ¦   «         |¦  «         dS )zI
        Violate the L{TestResult.addExpectedFailure} interface.
        Útest_addExpectedFailureN)r   r0   r   ÚaddExpectedFailurer   r2   s      r   r<   z/BrokenRunInfrastructure.test_addExpectedFailuree   s^   € ð	ÝÐ5Ñ6Ô6Ð6øÝð 	ð 	ð 	Ý‘)”)ˆCˆCˆCð	øøøà×!Ò!¥,¡.¤.°#Ñ6Ô6Ð6Ð6Ð6r4   c                 óH   — |                      t          ¦   «         ¦  «         dS )zK
        Violate the L{TestResult.addUnexpectedSuccess} interface.
        N)ÚaddUnexpectedSuccessr   r(   s     r   Útest_addUnexpectedSuccessz1BrokenRunInfrastructure.test_addUnexpectedSuccesso   s"   € ð 	×#Ò#¥L¡N¤NÑ3Ô3Ð3Ð3Ð3r   N)r   r   r   r"   r*   r-   r/   r6   r9   r<   r@   r   r   r   r$   r$   4   s‡   € € € € € ðð ð
;ð ;ð ;ð*ð *ð *ð	-ð 	-ð 	-ð	/ð 	/ð 	/ð7ð 7ð 7ð7ð 7ð 7ð4ð 4ð 4ð 4ð 4r   r$   )
r"   r   Úsysr   Útwisted.python.failurer   ÚTestCaser   r   r$   r   r   r   ú<module>rD      sÊ   ððð ð €€€Ø Ð Ð Ð Ð Ð à *Ð *Ð *Ð *Ð *Ð *ðð ð ð ð �Ô"ñ ô ð ð2ð ð ð ð ñ ô ð ð?4ð ?4ð ?4ð ?4ð ?4˜hÔ/ñ ?4ô ?4ð ?4ð ?4ð ?4r   