%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/trial/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/trial/test/__pycache__/skipping.cpython-312.pyc

�

Ϫ�f�����dZddlmZmZmZmZGd�d�ZGd�dee�ZGd�dee�ZGd	�d
�Z	Gd�de	e�Z
Gd
�de	e�ZGd�d�ZGd�dee�Z
Gd�dee�ZGd�d�ZGd�dee�ZGd�dee�ZGd�d�ZGd�dee�ZGd�d ee�ZGd!�d"�ZGd#�d$ee�ZGd%�d&ee�ZGd'�d(�ZGd)�d*ee�ZGd+�d,ee�ZGd-�d.�ZGd/�d0ee�ZGd1�d2ee�ZGd3�d4�ZGd5�d6ee�ZGd7�d8ee�Z Gd9�d:�Z!Gd;�d<e!e�Z"Gd=�d>e!e�Z#Gd?�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�:�eZdZd�Zd�Zde_d�Zde_y)�
SkippingMixinc��td���N�skip1�r��selfs �=/usr/lib/python3/dist-packages/twisted/trial/test/skipping.py�
test_skip1zSkippingMixin.test_skip1�
���w���c��td��)NzI should not get raised��RuntimeErrorr
s r�
test_skip2zSkippingMixin.test_skip2s���4�5�5r�skip2c�&�|jd�y)NzI should not fail��failr
s r�
test_skip3zSkippingMixin.test_skip3s���	�	�%�&r�skip3N)�__name__�
__module__�__qualname__rr�skipr�rrrrs#�� �6��J�O�'��J�Orrc��eZdZy)�SynchronousSkippingN�rrrr!rrr#r#!���rr#c��eZdZy)�AsynchronousSkippingNr$r!rrr'r'%r%rr'c��eZdZd�Zd�Zd�Zy)�SkippingSetUpMixinc��td��)N�	skipSetUprr
s r�setUpzSkippingSetUpMixin.setUp*s
���{�#�#rc��y�Nr!r
s r�test_1zSkippingSetUpMixin.test_1-���rc��yr.r!r
s r�test_2zSkippingSetUpMixin.test_20r0rN)rrrr,r/r2r!rrr)r))s��$�
�
rr)c��eZdZy)�SynchronousSkippingSetUpNr$r!rrr4r44r%rr4c��eZdZy)�AsynchronousSkippingSetUpNr$r!rrr6r68r%rr6c��eZdZd�Zy)�DeprecatedReasonlessSkipMixinc��t��r.rr
s rr/z$DeprecatedReasonlessSkipMixin.test_1=s
���j�rN)rrrr/r!rrr8r8<s��rr8c��eZdZy)�#SynchronousDeprecatedReasonlessSkipNr$r!rrr;r;As��	rr;c��eZdZy)�$AsynchronousDeprecatedReasonlessSkipNr$r!rrr=r=Gr%rr=c�<�eZdZdZd�Zd�Zd�Zde_d�Zd�Zy)	�SkippedClassMixin�classc�&�d|j_y)NT)�	__class__�	_setUpRanr
s rr,zSkippedClassMixin.setUpNs��#'���� rc��td��r
rr
s rrzSkippedClassMixin.test_skip1Qrrc��td��)NzOught to skip merr
s rrzSkippedClassMixin.test_skip2T����-�.�.rrc��yr.r!r
s rrzSkippedClassMixin.test_skip3Yr0rc��td��)NzSkip me toorr
s r�
test_skip4zSkippedClassMixin.test_skip4\s
���=�)�)rN)	rrrr r,rrrrIr!rrr?r?Ks)���D�(� �/��J�O�
�*rr?c��eZdZy)�SynchronousSkippedClassNr$r!rrrKrK`r%rrKc��eZdZy)�AsynchronousSkippedClassNr$r!rrrMrMdr%rrMc�H�eZdZd�Zde_d�Zde_d�Zde_y)�	TodoMixinc�&�|jd�y�Nzdeliberate failurerr
s r�
test_todo1zTodoMixin.test_todo1i����	�	�&�'r�todo1c��td���Nzdeliberate errorrr
s r�
test_todo2zTodoMixin.test_todo2nrFr�todo2c��y)zunexpected successNr!r
s r�
test_todo3zTodoMixin.test_todo3ss�r�todo3N)rrrrR�todorWrZr!rrrOrOhs,��(��J�O�/��J�O�!��J�OrrOc��eZdZy)�SynchronousTodoNr$r!rrr^r^yr%rr^c��eZdZy)�AsynchronousTodoNr$r!rrr`r`}r%rr`c�&�eZdZd�Zd�Zde_y)�SetUpTodoMixinc��td��rVrr
s rr,zSetUpTodoMixin.setUp�rFrc��yr.r!r
s rrRzSetUpTodoMixin.test_todo1�r0rzsetUp todo1N)rrrr,rRr\r!rrrbrb�s��/�
�$�J�Orrbc��eZdZy)�SynchronousSetUpTodoNr$r!rrrfrf�r%rrfc��eZdZy)�AsynchronousSetUpTodoNr$r!rrrhrh�r%rrhc�&�eZdZd�Zd�Zde_y)�TearDownTodoMixinc��td��rVrr
s r�tearDownzTearDownTodoMixin.tearDown�rFrc��yr.r!r
s rrRzTearDownTodoMixin.test_todo1�r0rztearDown todo1N)rrrrlrRr\r!rrrjrj�s��/�
�'�J�Orrjc��eZdZy)�SynchronousTearDownTodoNr$r!rrroro�r%rroc��eZdZy)�AsynchronousTearDownTodoNr$r!rrrqrq�r%rrqc�D�eZdZdZd�Zde_d�Zd�Zde_d�Zy)�TodoClassMixinr@c��yr.r!r
s rrRzTodoClassMixin.test_todo1�r0r�methodc��yr.r!r
s rrWzTodoClassMixin.test_todo2�r0rc�&�|jd�y�NzDeliberate Failurerr
s rrZzTodoClassMixin.test_todo3�rSrc�&�|jd�yrxrr
s r�
test_todo4zTodoClassMixin.test_todo4�rSrN)rrrr\rRrWrZrzr!rrrsrs�s-���D�
��J�O�
�(��J�O�(rrsc��eZdZy)�SynchronousTodoClassNr$r!rrr|r|�r%rr|c��eZdZy)�AsynchronousTodoClassNr$r!rrr~r~�r%rr~c��eZdZd�Zedfe_d�Zeefdfe_d�Zedfe_d�Z	ee
fdfe	_d	�Zed
fe_d�Z
edfe
_d
�Zedfe_y)�StrictTodoMixinc��td���Nzexpected failurerr
s rrRzStrictTodoMixin.test_todo1�rFrrTc��td��r�rr
s rrWzStrictTodoMixin.test_todo2�rFrrXc��td���Nzwe had no idea!rr
s rrZzStrictTodoMixin.test_todo3�����,�-�-rr[c��td��r�rr
s rrzzStrictTodoMixin.test_todo4�r�r�todo4c�&�|jd�yrQrr
s r�
test_todo5zStrictTodoMixin.test_todo5�rSr�todo5c�&�|jd�yrQrr
s r�
test_todo6zStrictTodoMixin.test_todo6�rSr�todo6c��yr.r!r
s r�
test_todo7zStrictTodoMixin.test_todo7�r0r�todo7N)rrrrRrr\rW�OSErrorrZrz�SyntaxErrorr�rr�r�r!rrr�r��s���/�$�W�-�J�O�/�%�g�.��8�J�O�.���(�J�O�.� ��-�w�7�J�O�(� ��)�J�O�(�$�W�-�J�O�
�$�W�-�J�Orr�c��eZdZy)�SynchronousStrictTodoNr$r!rrr�r��r%rr�c��eZdZy)�AsynchronousStrictTodoNr$r!rrr�r��r%rr�c�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�AddCleanupMixinc��dg|_y)Nr,)�logr
s rr,zAddCleanupMixin.setUp�s���9��rc�(�dg|_td��)Nr,zDeliberate failure)r�rr
s r�brokenSetUpzAddCleanupMixin.brokenSetUp�s���9����/�0�0rc�(�dg|_td��)Nr,z
Don't do this)r�rr
s r�
skippingSetUpzAddCleanupMixin.skippingSetUp�s���9�����'�'rc�:�|jj|�yr.�r��append)r�things  rr�zAddCleanupMixin.append�s��������rc�:�|jjd�y)Nrlr�r
s rrlzAddCleanupMixin.tearDown�s�������
�#rc�:�|jjd�y)N�runTestr�r
s rr�zAddCleanupMixin.runTests�������	�"rN)	rrrr,r�r�r�rlr�r!rrr�r��s ���1�(��$�#rr�c��eZdZy)�SynchronousAddCleanupNr$r!rrr�r�r%rr�c��eZdZy)�AsynchronousAddCleanupNr$r!rrr�r�r%rr�c�&�eZdZdZdd�Zde_y)�ExpectedFailurezp
    Hold a test that has an expected failure with an exception that has a
    large string representation.
    Nc��tddz��)z'
        Fail, but expectedly.
        �xirr
s r�"test_expectedFailureGreaterThan64kz2ExpectedFailure.test_expectedFailureGreaterThan64ks���3�)�,�-�-rzshort todo string)�returnN)rrr�__doc__r�r\r!rrr�r�s���
.�/B�&�+rr�N)%r��twisted.trial.unittestrrrrrr#r'r)r4r6r8r;r=r?rKrMrOr^r`rbrfrhrjrorqrsr|r~r�r�r�r�r�r�r�r!rr�<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�)�Br

Zerion Mini Shell 1.0