Ë
    ojö  ã                   óÞ  — d Z ddlmZmZmZmZ  G d„ d«      Z G d„ dee«      Z G d„ dee«      Z G d	„ d
«      Z	 G d„ de	e«      Z
 G d„ de	e«      Z G d„ d«      Z G d„ dee«      Z G d„ dee«      Z G d„ d«      Z G d„ dee«      Z G d„ dee«      Z G d„ d«      Z G d„ dee«      Z G d„ d ee«      Z G d!„ d"«      Z G d#„ d$ee«      Z G d%„ d&ee«      Z G d'„ d(«      Z G d)„ d*ee«      Z G d+„ d,ee«      Z G d-„ d.«      Z G d/„ d0ee«      Z G d1„ d2ee«      Z G d3„ d4«      Z G d5„ d6ee«      Z G d7„ d8ee«      Z  G d9„ d:«      Z! G d;„ d<e!e«      Z" G d=„ d>e!e«      Z# G d?„ d@e«      Z$yA)Ba$  
Definitions of test cases with various interesting behaviors, to be used by
L{twisted.trial.test.test_tests} and other test modules to exercise different
features of trial's test runner.

See the L{twisted.trial.test.test_tests} module docstring for details about how
this code is arranged.
é    )ÚFailTestÚSkipTestÚSynchronousTestCaseÚTestCasec                   ó:   — e Zd Zd„ Zd„ Zde_        d„ Zde_        y)ÚSkippingMixinc                 ó   — t        d«      ‚©NÚskip1©r   ©Úselfs    ú=/usr/lib/python3/dist-packages/twisted/trial/test/skipping.pyÚ
test_skip1zSkippingMixin.test_skip1   ó   € Ü�wÓÐó    c                 ó   — t        d«      ‚)NzI should not get raised©ÚRuntimeErrorr   s    r   Ú
test_skip2zSkippingMixin.test_skip2   s   € ÜÐ4Ó5Ð5r   Úskip2c                 ó&   — | j                  d«       y )NzI should not fail©Úfailr   s    r   Ú
test_skip3zSkippingMixin.test_skip3   s   € Ø�	‰	Ð%Õ&r   Úskip3N)Ú__name__Ú
__module__Ú__qualname__r   r   Úskipr   © r   r   r   r      s#   „ ò ò6ð €J„Oò'ð €J…Or   r   c                   ó   — e Zd Zy)ÚSynchronousSkippingN©r   r   r   r!   r   r   r#   r#   !   ó   „ Ør   r#   c                   ó   — e Zd Zy)ÚAsynchronousSkippingNr$   r!   r   r   r'   r'   %   r%   r   r'   c                   ó   — e Zd Zd„ Zd„ Zd„ Zy)ÚSkippingSetUpMixinc                 ó   — t        d«      ‚)NÚ	skipSetUpr   r   s    r   ÚsetUpzSkippingSetUpMixin.setUp*   s   € Ü�{Ó#Ð#r   c                  ó   — y ©Nr!   r   s    r   Útest_1zSkippingSetUpMixin.test_1-   ó   € Ør   c                  ó   — y r.   r!   r   s    r   Útest_2zSkippingSetUpMixin.test_20   r0   r   N)r   r   r   r,   r/   r2   r!   r   r   r)   r)   )   s   „ ò$òór   r)   c                   ó   — e Zd Zy)ÚSynchronousSkippingSetUpNr$   r!   r   r   r4   r4   4   r%   r   r4   c                   ó   — e Zd Zy)ÚAsynchronousSkippingSetUpNr$   r!   r   r   r6   r6   8   r%   r   r6   c                   ó   — e Zd Zd„ Zy)ÚDeprecatedReasonlessSkipMixinc                 ó   — t        «       ‚r.   r   r   s    r   r/   z$DeprecatedReasonlessSkipMixin.test_1=   s
   € Ü‹jÐr   N)r   r   r   r/   r!   r   r   r8   r8   <   s   „ ór   r8   c                   ó   — e Zd Zy)Ú#SynchronousDeprecatedReasonlessSkipNr$   r!   r   r   r;   r;   A   s   „ ð 	r   r;   c                   ó   — e Zd Zy)Ú$AsynchronousDeprecatedReasonlessSkipNr$   r!   r   r   r=   r=   G   r%   r   r=   c                   ó<   — e Zd ZdZd„ Zd„ Zd„ Zde_        d„ Zd„ Zy)	ÚSkippedClassMixinÚclassc                 ó&   — d| j                   _        y )NT)Ú	__class__Ú	_setUpRanr   s    r   r,   zSkippedClassMixin.setUpN   s   € Ø#'ˆ�‰Õ r   c                 ó   — t        d«      ‚r
   r   r   s    r   r   zSkippedClassMixin.test_skip1Q   r   r   c                 ó   — t        d«      ‚)NzOught to skip mer   r   s    r   r   zSkippedClassMixin.test_skip2T   ó   € ÜÐ-Ó.Ð.r   r   c                  ó   — y r.   r!   r   s    r   r   zSkippedClassMixin.test_skip3Y   r0   r   c                 ó   — t        d«      ‚)NzSkip me toor   r   s    r   Ú
test_skip4zSkippedClassMixin.test_skip4\   s   € Ü˜=Ó)Ð)r   N)	r   r   r   r    r,   r   r   r   rI   r!   r   r   r?   r?   K   s)   „ Ø€Dò(ò ò/ð €J„Oòó*r   r?   c                   ó   — e Zd Zy)ÚSynchronousSkippedClassNr$   r!   r   r   rK   rK   `   r%   r   rK   c                   ó   — e Zd Zy)ÚAsynchronousSkippedClassNr$   r!   r   r   rM   rM   d   r%   r   rM   c                   óH   — e Zd Zd„ Zde_        d„ Zde_        d„ Zde_        y)Ú	TodoMixinc                 ó&   — | j                  d«       y ©Nzdeliberate failurer   r   s    r   Ú
test_todo1zTodoMixin.test_todo1i   ó   € Ø�	‰	Ð&Õ'r   Útodo1c                 ó   — t        d«      ‚©Nzdeliberate errorr   r   s    r   Ú
test_todo2zTodoMixin.test_todo2n   rF   r   Útodo2c                  ó   — y)zunexpected successNr!   r   s    r   Ú
test_todo3zTodoMixin.test_todo3s   s   � r   Útodo3N)r   r   r   rR   ÚtodorW   rZ   r!   r   r   rO   rO   h   s,   „ ò(ð €J„Oò/ð €J„Oò!ð €J…Or   rO   c                   ó   — e Zd Zy)ÚSynchronousTodoNr$   r!   r   r   r^   r^   y   r%   r   r^   c                   ó   — e Zd Zy)ÚAsynchronousTodoNr$   r!   r   r   r`   r`   }   r%   r   r`   c                   ó&   — e Zd Zd„ Zd„ Zde_        y)ÚSetUpTodoMixinc                 ó   — t        d«      ‚rV   r   r   s    r   r,   zSetUpTodoMixin.setUp‚   rF   r   c                  ó   — y r.   r!   r   s    r   rR   zSetUpTodoMixin.test_todo1…   r0   r   zsetUp todo1N)r   r   r   r,   rR   r\   r!   r   r   rb   rb   �   s   „ ò/òð $€J…Or   rb   c                   ó   — e Zd Zy)ÚSynchronousSetUpTodoNr$   r!   r   r   rf   rf   ‹   r%   r   rf   c                   ó   — e Zd Zy)ÚAsynchronousSetUpTodoNr$   r!   r   r   rh   rh   �   r%   r   rh   c                   ó&   — e Zd Zd„ Zd„ Zde_        y)ÚTearDownTodoMixinc                 ó   — t        d«      ‚rV   r   r   s    r   ÚtearDownzTearDownTodoMixin.tearDown”   rF   r   c                  ó   — y r.   r!   r   s    r   rR   zTearDownTodoMixin.test_todo1—   r0   r   ztearDown todo1N)r   r   r   rl   rR   r\   r!   r   r   rj   rj   “   s   „ ò/òð '€J…Or   rj   c                   ó   — e Zd Zy)ÚSynchronousTearDownTodoNr$   r!   r   r   ro   ro   �   r%   r   ro   c                   ó   — e Zd Zy)ÚAsynchronousTearDownTodoNr$   r!   r   r   rq   rq   ¡   r%   r   rq   c                   óD   — e Zd ZdZd„ Zde_        d„ Zd„ Zde_        d„ Zy)ÚTodoClassMixinr@   c                  ó   — y r.   r!   r   s    r   rR   zTodoClassMixin.test_todo1¨   r0   r   Úmethodc                  ó   — y r.   r!   r   s    r   rW   zTodoClassMixin.test_todo2­   r0   r   c                 ó&   — | j                  d«       y ©NzDeliberate Failurer   r   s    r   rZ   zTodoClassMixin.test_todo3°   rS   r   c                 ó&   — | j                  d«       y rx   r   r   s    r   Ú
test_todo4zTodoClassMixin.test_todo4µ   rS   r   N)r   r   r   r\   rR   rW   rZ   rz   r!   r   r   rs   rs   ¥   s-   „ Ø€Dòð €J„Oòò(ð €J„Oó(r   rs   c                   ó   — e Zd Zy)ÚSynchronousTodoClassNr$   r!   r   r   r|   r|   ¹   r%   r   r|   c                   ó   — e Zd Zy)ÚAsynchronousTodoClassNr$   r!   r   r   r~   r~   ½   r%   r   r~   c                   ó¼   — e Zd Zd„ Zedfe_        d„ Zeefdfe_        d„ Zedfe_        d„ Z	ee
fdfe	_        d	„ Zed
fe_        d„ Zedfe_        d„ Zedfe_        y)ÚStrictTodoMixinc                 ó   — t        d«      ‚©Nzexpected failurer   r   s    r   rR   zStrictTodoMixin.test_todo1Â   rF   r   rT   c                 ó   — t        d«      ‚r‚   r   r   s    r   rW   zStrictTodoMixin.test_todo2Ç   rF   r   rX   c                 ó   — t        d«      ‚©Nzwe had no idea!r   r   s    r   rZ   zStrictTodoMixin.test_todo3Ì   ó   € ÜÐ,Ó-Ð-r   r[   c                 ó   — t        d«      ‚r…   r   r   s    r   rz   zStrictTodoMixin.test_todo4Ñ   r†   r   Útodo4c                 ó&   — | j                  d«       y rQ   r   r   s    r   Ú
test_todo5zStrictTodoMixin.test_todo5Ö   rS   r   Útodo5c                 ó&   — | j                  d«       y rQ   r   r   s    r   Ú
test_todo6zStrictTodoMixin.test_todo6Û   rS   r   Útodo6c                  ó   — y r.   r!   r   s    r   Ú
test_todo7zStrictTodoMixin.test_todo7à   r0   r   Útodo7N)r   r   r   rR   r   r\   rW   ÚOSErrorrZ   rz   ÚSyntaxErrorrŠ   r   r�   r�   r!   r   r   r€   r€   Á   s‘   „ ò/ð $ WÐ-€J„Oò/ð % gÐ.°Ð8€J„Oò.ð  Ð(€J„Oò.ð   Ð-¨wÐ7€J„Oò(ð   Ð)€J„Oò(ð $ WÐ-€J„Oòð $ WÐ-€J…Or   r€   c                   ó   — e Zd Zy)ÚSynchronousStrictTodoNr$   r!   r   r   r•   r•   æ   r%   r   r•   c                   ó   — e Zd Zy)ÚAsynchronousStrictTodoNr$   r!   r   r   r—   r—   ê   r%   r   r—   c                   ó0   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)ÚAddCleanupMixinc                 ó   — dg| _         y )Nr,   )Úlogr   s    r   r,   zAddCleanupMixin.setUpï   s   € Ø�9ˆ�r   c                 ó(   — dg| _         t        d«      ‚)Nr,   zDeliberate failure)r›   r   r   s    r   ÚbrokenSetUpzAddCleanupMixin.brokenSetUpò   s   € Ø�9ˆŒÜÐ/Ó0Ð0r   c                 ó(   — dg| _         t        d«      ‚)Nr,   zDon't do this)r›   r   r   s    r   ÚskippingSetUpzAddCleanupMixin.skippingSetUpö   s   € Ø�9ˆŒÜ�Ó'Ð'r   c                 ó:   — | j                   j                  |«       y r.   ©r›   Úappend)r   Úthings     r   r¢   zAddCleanupMixin.appendú   s   € Ø�‰�‰˜Õr   c                 ó:   — | j                   j                  d«       y )Nrl   r¡   r   s    r   rl   zAddCleanupMixin.tearDowný   s   € Ø�‰�‰˜
Õ#r   c                 ó:   — | j                   j                  d«       y )NÚrunTestr¡   r   s    r   r¦   zAddCleanupMixin.runTest   s   € Ø�‰�‰˜	Õ"r   N)	r   r   r   r,   r�   rŸ   r¢   rl   r¦   r!   r   r   r™   r™   î   s    „ òò1ò(òò$ó#r   r™   c                   ó   — e Zd Zy)ÚSynchronousAddCleanupNr$   r!   r   r   r¨   r¨     r%   r   r¨   c                   ó   — e Zd Zy)ÚAsynchronousAddCleanupNr$   r!   r   r   rª   rª     r%   r   rª   c                   ó&   — e Zd ZdZdd„Zde_        y)ÚExpectedFailurezp
    Hold a test that has an expected failure with an exception that has a
    large string representation.
    Nc                 ó   — t        ddz  «      ‚)z'
        Fail, but expectedly.
        Úxi  r   r   s    r   Ú"test_expectedFailureGreaterThan64kz2ExpectedFailure.test_expectedFailureGreaterThan64k  s   € ô ˜3 )Ñ,Ó-Ð-r   zshort todo string)ÚreturnN)r   r   r   Ú__doc__r¯   r\   r!   r   r   r¬   r¬     s   „ ñó
.ð /BÐ&Õ+r   r¬   N)%r±   Útwisted.trial.unittestr   r   r   r   r   r#   r'   r)   r4   r6   r8   r;   r=   r?   rK   rM   rO   r^   r`   rb   rf   rh   rj   ro   rq   rs   r|   r~   r€   r•   r—   r™   r¨   rª   r¬   r!   r   r   ú<module>r³      s±  ðñ
÷ UÓ T÷ñ ô	˜-Ð)<ô 	ô	˜=¨(ô 	÷ñ ô	Ð1Ð3Fô 	ô	Ð 2°Hô 	÷ñ ô
	Ø!Ð#6ô	ô	Ð+HÈ(ô 	÷*ñ *ô*	Ð/Ð1Dô 	ô	Ð0°(ô 	÷ñ ô"	�iÐ!4ô 	ô	�y (ô 	÷$ñ $ô	˜>Ð+>ô 	ô	˜N¨Hô 	÷'ñ 'ô	Ð/Ð1Dô 	ô	Ð0°(ô 	÷(ñ (ô(	˜>Ð+>ô 	ô	˜N¨Hô 	÷".ñ ".ôJ	˜OÐ-@ô 	ô	˜_¨hô 	÷#ñ #ô,	˜OÐ-@ô 	ô	˜_¨hô 	ôBÐ)õ Br   