HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/trial/test/__pycache__/test_skip.cpython-310.pyc
o

�b[
�@s�dZddlmZddlmZedd�Gdd�de��Zedd�Gd	d
�d
e��ZGdd�de�ZGd
d�de�ZGdd�de�Z	dS)z!
Tests for L{twisted.trial.util}
�)�skipIf)�TestCaseTz.Skip all tests when @skipIf is used on a classc@� eZdZdZdd�Zdd�ZdS)�SkipDecoratorUsedOnClasszZ
    All tests should be skipped because @skipIf decorator is used on
    this class.
    cC�td���Nz%Test should skip and never reach here��	Exception��self�r�>/usr/lib/python3/dist-packages/twisted/trial/test/test_skip.py�test_shouldNeverRun_1�z.SkipDecoratorUsedOnClass.test_shouldNeverRun_1cCrrrr
rrr
�test_shouldNeverRun_2rz.SkipDecoratorUsedOnClass.test_shouldNeverRun_2N��__name__�
__module__�__qualname__�__doc__rrrrrr
r�r�c@r)�'SkipDecoratorUsedOnClassWithEmptyReasonz�
    All tests should be skipped because @skipIf decorator is used on
    this class, even if the reason is an empty string
    cCrrrr
rrr
r#rz=SkipDecoratorUsedOnClassWithEmptyReason.test_shouldNeverRun_1cCrrrr
rrr
r&rz=SkipDecoratorUsedOnClassWithEmptyReason.test_shouldNeverRun_2Nrrrrr
rrrc@s`eZdZdZedd�dd��Zedd�dd��Zd	d
�Zedd�d
d��Zedd�dd��Z	dS)�SkipDecoratorUsedOnMethods�I
    Only methods where @skipIf decorator is used should be skipped.
    Tz"skipIf decorator used so skip testcCrrrr
rrr
�test_shouldNeverRun/�z.SkipDecoratorUsedOnMethods.test_shouldNeverRunrcCrrrr
rrr
�"test_shouldNeverRunWithEmptyReason3rz=SkipDecoratorUsedOnMethods.test_shouldNeverRunWithEmptyReasoncC�|�dd�dS�NTz"Test should run and not be skipped��
assertTruer
rrr
�test_shouldShouldRun7�z/SkipDecoratorUsedOnMethods.test_shouldShouldRunFzshould not skipcCrrr r
rrr
�#test_shouldShouldRunWithSkipIfFalse:�z>SkipDecoratorUsedOnMethods.test_shouldShouldRunWithSkipIfFalsecCrrr r
rrr
�.test_shouldShouldRunWithSkipIfFalseEmptyReason>r%zISkipDecoratorUsedOnMethods.test_shouldShouldRunWithSkipIfFalseEmptyReasonN)
rrrrrrrr"r$r&rrrr
r*s


rc@s$eZdZdZdZdd�Zdd�ZdS)�SkipAttributeOnClasszV
    All tests should be skipped because skip attribute is set on
    this class.
    z5'skip' attribute set on this class, so skip all testscCrrrr
rrr
�test_oneKrzSkipAttributeOnClass.test_onecCrrrr
rrr
�test_twoNrzSkipAttributeOnClass.test_twoN)rrrr�skipr(r)rrrr
r'Cs
r'c@s&eZdZdZdd�Zde_dd�ZdS)�SkipAttributeOnMethodsrcCr)NzShould never reach hererr
rrr
r(WrzSkipAttributeOnMethods.test_onez'skip test, skip attribute set on methodcCrrr r
rrr
�test_shouldNotSkip\r#z)SkipAttributeOnMethods.test_shouldNotSkipN)rrrrr(r*r,rrrr
r+Rs
r+N)
r�unittestr�twisted.trial.unittestrrrrr'r+rrrr
�<module>s