ó
    ×›‘he  ã                   ó�   • S r SSKrSSKJr  SSKJr   " S S\R                  5      r " S S5      r " S	 S
\R                  5      r	g)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                   óV   • \ rS rSrS rS rS r\R                  " S5      S 5       r	Sr
g)	Ú
PyUnitTesté   c                 ó   • g)z
A passing test.
N© ©Úselfs    ÚbC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/trial/test/pyunitcases.pyÚ	test_passÚPyUnitTest.test_pass   ó   � ó    c                 ó   • [        S5      e)z5
A test which raises an exception to cause an error.
zpyunit error)Ú	Exceptionr
   s    r   Ú
test_errorÚPyUnitTest.test_error   s   € ô ˜Ó'Ð'r   c                 ó&   • U R                  S5        g)zA
A test which uses L{unittest.TestCase.fail} to cause a failure.
zpyunit failureN)Úfailr
   s    r   Ú	test_failÚPyUnitTest.test_fail   s   € ð 	�	‰	Ð"Õ#r   zpyunit skipc                 ó   • g)zC
A test which uses the L{unittest.skip} decorator to cause a skip.
Nr	   r
   s    r   Ú	test_skipÚPyUnitTest.test_skip"   r   r   r	   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   ÚunittestÚskipr   Ú__static_attributes__r	   r   r   r   r      s.   † òò
(ò$ð ‡]‚]�=Ó!ñó "ór   r   c                   ó&   • \ rS rSrSrS\4S jrSrg)Ú_NonStringIdé)   zÊ
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                 ó   • [        5       $ )N)Úobjectr
   s    r   ÚidÚ_NonStringId.id0   s	   € Ü‹xˆr   r	   N)r   r   r   r   Ú__doc__r(   r)   r"   r	   r   r   r$   r$   )   s   † ñð�F÷ r   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)ÚBrokenRunInfrastructureé4   zi
A test suite that is broken at the level of integration between
L{TestCase.run} and the results object.
c                 ó8   • [        X R                  5      " U5      $ )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   ÚrunÚBrokenRunInfrastructure.run:   s   € ô �t×1Ñ1Ô2°6Ó:Ð:r   c                 ó6   • UR                  [        5       5        g)z1
Violate the L{TestResult.addSuccess} interface.
N)Ú
addSuccessr$   r2   s     r   Útest_addSuccessÚ'BrokenRunInfrastructure.test_addSuccessB   s   € ð
 	×Ñœ,›.Õ)r   c                 ó„   •  [        S5      e! [         a    [        5       n Of = fUR                  [	        5       U5        g)z/
Violate the L{TestResult.addError} interface.
Útest_addErrorN)r   ÚBaseExceptionr   ÚaddErrorr$   ©r   r3   Úerrs      r   r;   Ú%BrokenRunInfrastructure.test_addErrorI   s:   € ð	Ü˜OÓ,Ð,øÜó 	Ü“*ŠCð	úð 	�‰œ›¨Õ,ó   ‚ �$£$c                 ó„   •  [        S5      e! [         a    [        5       n Of = fUR                  [	        5       U5        g)z1
Violate the L{TestResult.addFailure} interface.
Útest_addFailureN)r   r<   r   Ú
addFailurer$   r>   s      r   rC   Ú'BrokenRunInfrastructure.test_addFailureT   s=   € ð	ÜÐ-Ó.Ð.øÜó 	Ü“*ŠCð	úð 	×Ñœ,›.¨#Õ.rA   c                 ó8   • UR                  [        5       S5        g)z.
Violate the L{TestResult.addSkip} interface.
Útest_addSkipN)ÚaddSkipr$   r2   s     r   rG   Ú$BrokenRunInfrastructure.test_addSkip_   s   € ð 	�‰”|“~ ~Õ6r   c                 ó„   •  [        S5      e! [         a    [        5       n Of = fUR                  [	        5       U5        g)z9
Violate the L{TestResult.addExpectedFailure} interface.
Útest_addExpectedFailureN)r   r<   r   ÚaddExpectedFailurer$   r>   s      r   rK   Ú/BrokenRunInfrastructure.test_addExpectedFailuree   s;   € ð	ÜÐ5Ó6Ð6øÜó 	Ü“)ŠCð	úà×!Ñ!¤,£.°#Õ6rA   c                 ó6   • UR                  [        5       5        g)z;
Violate the L{TestResult.addUnexpectedSuccess} interface.
N)ÚaddUnexpectedSuccessr$   r2   s     r   Útest_addUnexpectedSuccessÚ1BrokenRunInfrastructure.test_addUnexpectedSuccesso   s   € ð 	×#Ñ#¤L£NÕ3r   r	   N)r   r   r   r   r+   r4   r8   r;   rC   rG   rK   rP   r"   r	   r   r   r-   r-   4   s*   † ñò
;ò*ò	-ò	/ò7ò7õ4r   r-   )
r+   r    Úsysr   Útwisted.python.failurer   ÚTestCaser   r$   r-   r	   r   r   Ú<module>rU      sC   ðñó Ý å *ô�×"Ñ"ô ÷2ñ ô?4˜h×/Ñ/õ ?4r   