+
    Dfj                        R t ^ RIHtHtHtHt  ! R R4      t ! R R]]4      t ! R R]]4      t ! R R	4      t	 ! R
 R]	]4      t
 ! R R]	]4      t ! R R4      t ! R R]]4      t ! R R]]4      t ! R R4      t ! R R]]4      t ! R R]]4      t ! R R4      t ! R R]]4      t ! R R]]4      t ! R  R!4      t ! R" R#]]4      t ! R$ R%]]4      t ! R& R'4      t ! R( R)]]4      t ! R* R+]]4      t ! R, R-4      t ! R. R/]]4      t ! R0 R1]]4      t ! R2 R34      t ! R4 R5]]4      t ! R6 R7]]4      t  ! R8 R94      t! ! R: R;]!]4      t" ! R< R=]!]4      t# ! R> R?]4      t$R@# )Aa$  
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                   N   a  ] tR t^t o R tR tR]n        R tR]n        RtV t	R# )SkippingMixinc                    \        R 4      hskip1r   selfs   &=/usr/lib/python3/dist-packages/twisted/trial/test/skipping.py
test_skip1SkippingMixin.test_skip1       w    c                    \        R 4      h)zI should not get raisedRuntimeErrorr   s   &r   
test_skip2SkippingMixin.test_skip2   s    455r   skip2c                (    V P                  R 4       R# )zI should not failNfailr   s   &r   
test_skip3SkippingMixin.test_skip3   s    		%&r   skip3 N)
__name__
__module____qualname____firstlineno__r   r   skipr   __static_attributes____classdictcell____classdict__s   @r   r   r      s(      6 JO' JOOr   r   c                       ] tR t^!tRtR# )SynchronousSkippingr   Nr    r!   r"   r#   r%   r   r   r   r*   r*   !       r   r*   c                       ] tR t^%tRtR# )AsynchronousSkippingr   Nr+   r   r   r   r.   r.   %   r,   r   r.   c                   2   a  ] tR t^)t o R tR tR tRtV tR# )SkippingSetUpMixinc                    \        R 4      h)	skipSetUpr   r   s   &r   setUpSkippingSetUpMixin.setUp*   s    {##r   c                    R # Nr   r   s   &r   test_1SkippingSetUpMixin.test_1-       r   c                    R # r6   r   r   s   &r   test_2SkippingSetUpMixin.test_20   r9   r   r   N)	r    r!   r"   r#   r3   r7   r;   r%   r&   r'   s   @r   r0   r0   )   s     $ r   r0   c                       ] tR t^4tRtR# )SynchronousSkippingSetUpr   Nr+   r   r   r   r>   r>   4   r,   r   r>   c                       ] tR t^8tRtR# )AsynchronousSkippingSetUpr   Nr+   r   r   r   r@   r@   8   r,   r   r@   c                   &   a  ] tR t^<t o R tRtV tR# )DeprecatedReasonlessSkipMixinc                    \        4       hr6   r   r   s   &r   r7   $DeprecatedReasonlessSkipMixin.test_1=   s
    jr   r   N)r    r!   r"   r#   r7   r%   r&   r'   s   @r   rB   rB   <   s      r   rB   c                       ] tR t^AtRtR# )#SynchronousDeprecatedReasonlessSkipr   Nr+   r   r   r   rF   rF   A   s     	r   rF   c                       ] tR t^GtRtR# )$AsynchronousDeprecatedReasonlessSkipr   Nr+   r   r   r   rH   rH   G   r,   r   rH   c                   P   a  ] tR t^Kt o RtR tR tR tR]n        R tR t	Rt
V tR	# )
SkippedClassMixinclassc                (    R V P                   n        R# )TN)	__class__	_setUpRanr   s   &r   r3   SkippedClassMixin.setUpN   s    #' r   c                    \        R 4      hr	   r   r   s   &r   r   SkippedClassMixin.test_skip1Q   r   r   c                    \        R 4      h)zOught to skip mer   r   s   &r   r   SkippedClassMixin.test_skip2T       -..r   r   c                    R # r6   r   r   s   &r   r   SkippedClassMixin.test_skip3Y   r9   r   c                    \        R 4      h)zSkip me toor   r   s   &r   
test_skip4SkippedClassMixin.test_skip4\   s    =))r   r   N)r    r!   r"   r#   r$   r3   r   r   r   rX   r%   r&   r'   s   @r   rJ   rJ   K   s1     D( / JO* *r   rJ   c                       ] tR t^`tRtR# )SynchronousSkippedClassr   Nr+   r   r   r   r[   r[   `   r,   r   r[   c                       ] tR t^dtRtR# )AsynchronousSkippedClassr   Nr+   r   r   r   r]   r]   d   r,   r   r]   c                   \   a  ] tR t^ht o R tR]n        R tR]n        R tR]n        RtV t	R# )		TodoMixinc                (    V P                  R 4       R# zdeliberate failureNr   r   s   &r   
test_todo1TodoMixin.test_todo1i       		&'r   todo1c                    \        R 4      hzdeliberate errorr   r   s   &r   
test_todo2TodoMixin.test_todo2n   rT   r   todo2c                    R# )zunexpected successNr   r   s   &r   
test_todo3TodoMixin.test_todo3s   s    r   todo3r   N)
r    r!   r"   r#   rb   todorh   rl   r%   r&   r'   s   @r   r_   r_   h   s1     ( JO/ JO! JOOr   r_   c                       ] tR t^ytRtR# )SynchronousTodor   Nr+   r   r   r   rq   rq   y   r,   r   rq   c                       ] tR t^}tRtR# )AsynchronousTodor   Nr+   r   r   r   rs   rs   }   r,   r   rs   c                   :   a  ] tR t^t o R tR tR]n        RtV tR# )SetUpTodoMixinc                    \        R 4      hrg   r   r   s   &r   r3   SetUpTodoMixin.setUp   rT   r   c                    R # r6   r   r   s   &r   rb   SetUpTodoMixin.test_todo1   r9   r   zsetUp todo1r   N)	r    r!   r"   r#   r3   rb   ro   r%   r&   r'   s   @r   ru   ru      s     / $JOOr   ru   c                       ] tR t^tRtR# )SynchronousSetUpTodor   Nr+   r   r   r   r{   r{      r,   r   r{   c                       ] tR t^tRtR# )AsynchronousSetUpTodor   Nr+   r   r   r   r}   r}      r,   r   r}   c                   :   a  ] tR t^t o R tR tR]n        RtV tR# )TearDownTodoMixinc                    \        R 4      hrg   r   r   s   &r   tearDownTearDownTodoMixin.tearDown   rT   r   c                    R # r6   r   r   s   &r   rb   TearDownTodoMixin.test_todo1   r9   r   ztearDown todo1r   N)	r    r!   r"   r#   r   rb   ro   r%   r&   r'   s   @r   r   r      s     / 'JOOr   r   c                       ] tR t^tRtR# )SynchronousTearDownTodor   Nr+   r   r   r   r   r      r,   r   r   c                       ] tR t^tRtR# )AsynchronousTearDownTodor   Nr+   r   r   r   r   r      r,   r   r   c                   X   a  ] tR t^t o RtR tR]n        R tR tR]n        R tRt	V t
R# )	TodoClassMixinrK   c                    R # r6   r   r   s   &r   rb   TodoClassMixin.test_todo1   r9   r   methodc                    R # r6   r   r   s   &r   rh   TodoClassMixin.test_todo2   r9   r   c                (    V P                  R 4       R# zDeliberate FailureNr   r   s   &r   rl   TodoClassMixin.test_todo3   rd   r   c                (    V P                  R 4       R# r   r   r   s   &r   
test_todo4TodoClassMixin.test_todo4   rd   r   r   N)r    r!   r"   r#   ro   rb   rh   rl   r   r%   r&   r'   s   @r   r   r      s5     D JO( JO( (r   r   c                       ] tR t^tRtR# )SynchronousTodoClassr   Nr+   r   r   r   r   r      r,   r   r   c                       ] tR t^tRtR# )AsynchronousTodoClassr   Nr+   r   r   r   r   r      r,   r   r   c                      a  ] tR t^t o R t]R3]n        R t]]3R3]n        R t	]R3]	n        R t
]]3R3]
n        R	 t]R
3]n        R t]R3]n        R t]R3]n        RtV tR# )StrictTodoMixinc                    \        R 4      hzexpected failurer   r   s   &r   rb   StrictTodoMixin.test_todo1   rT   r   re   c                    \        R 4      hr   r   r   s   &r   rh   StrictTodoMixin.test_todo2   rT   r   rj   c                    \        R 4      hzwe had no idea!r   r   s   &r   rl   StrictTodoMixin.test_todo3       ,--r   rn   c                    \        R 4      hr   r   r   s   &r   r   StrictTodoMixin.test_todo4   r   r   todo4c                (    V P                  R 4       R# ra   r   r   s   &r   
test_todo5StrictTodoMixin.test_todo5   rd   r   todo5c                (    V P                  R 4       R# ra   r   r   s   &r   
test_todo6StrictTodoMixin.test_todo6   rd   r   todo6c                    R # r6   r   r   s   &r   
test_todo7StrictTodoMixin.test_todo7   r9   r   todo7r   N)r    r!   r"   r#   rb   r   ro   rh   OSErrorrl   r   SyntaxErrorr   r   r   r   r%   r&   r'   s   @r   r   r      s     / $W-JO/ %g.8JO. (JO.  -w7JO(  )JO( $W-JO $W-JOOr   r   c                       ] tR t^tRtR# )SynchronousStrictTodor   Nr+   r   r   r   r   r      r,   r   r   c                       ] tR t^tRtR# )AsynchronousStrictTodor   Nr+   r   r   r   r   r      r,   r   r   c                   D   a  ] tR t^t o R tR tR tR tR tR t	Rt
V tR# )	AddCleanupMixinc                    R .V n         R# )r3   Nlogr   s   &r   r3   AddCleanupMixin.setUp   s    9r   c                (    R .V n         \        R4      h)r3   zDeliberate failure)r   r   r   s   &r   brokenSetUpAddCleanupMixin.brokenSetUp   s    9/00r   c                (    R .V n         \        R4      h)r3   zDon't do this)r   r   r   s   &r   skippingSetUpAddCleanupMixin.skippingSetUp   s    9''r   c                <    V P                   P                  V4       R # r6   r   append)r   things   &&r   r   AddCleanupMixin.append   s    r   c                <    V P                   P                  R 4       R# )r   Nr   r   s   &r   r   AddCleanupMixin.tearDown   s    
#r   c                <    V P                   P                  R 4       R# )runTestNr   r   s   &r   r   AddCleanupMixin.runTest   s    	"r   r   N)r    r!   r"   r#   r3   r   r   r   r   r   r%   r&   r'   s   @r   r   r      s(     1($# #r   r   c                       ] tR tRtRtR# )SynchronousAddCleanupi  r   Nr+   r   r   r   r   r     r,   r   r   c                       ] tR tRtRtR# )AsynchronousAddCleanupi  r   Nr+   r   r   r   r   r     r,   r   r   c                   D   a  ] tR tRt o RtV 3R lR ltR]n        RtV tR# )ExpectedFailurei  zd
Hold a test that has an expected failure with an exception that has a
large string representation.
c                   < V ^8  d   QhRR/# )   returnNr   )formatr(   s   "r   __annotate__ExpectedFailure.__annotate__  s     . .D .r   c                &    \        RR,          4      h)z
Fail, but expectedly.
xi  r   r   s   &r   "test_expectedFailureGreaterThan64k2ExpectedFailure.test_expectedFailureGreaterThan64k  s     3),--r   zshort todo stringr   N)	r    r!   r"   r#   __doc__r   ro   r%   r&   r'   s   @r   r   r     s#     
. . /B&++r   r   N)%r   twisted.trial.unittestr   r   r   r   r   r*   r.   r0   r>   r@   rB   rF   rH   rJ   r[   r]   r_   rq   rs   ru   r{   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s  
 U T 	-)< 		=( 	 	13F 		 2H 	 
	!#6		+H( 	* **	/1D 		0( 	 "	i!4 		y( 	$ $	>+> 		NH 	' '	/1D 		0( 	( ((	>+> 		NH 	". ".J	O-@ 		_h 	# #,	O-@ 		_h 	B) Br   