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__/sample.cpython-310.pyc
o

�b$�@s�dZddlZddlmZddlmZGdd�dej�Zdd�Zd	d
�Z	Gdd�dej�Z
Gd
d�dej�ZGdd�d�Z
Gdd�dej�ZdS)z�This module is used by test_loader to test the Trial test loading
functionality. Do NOT change the number of tests in this module.  Do NOT change
the names the tests in this module.
�N��mergeFunctionMetadata)�unittestc@�eZdZdd�Zdd�ZdS)�FooTestcC�dS�N���selfr	r	�;/usr/lib/python3/dist-packages/twisted/trial/test/sample.py�test_foo�zFooTest.test_foocCrrr	r
r	r	r�test_barrzFooTest.test_barN��__name__�
__module__�__qualname__r
rr	r	r	rr
�rcs�fdd�}|S)z�
    Decorate a function without preserving the name of the original function.
    Always return a function with the same name.
    c��|i|��Srr	��args�kwargs��fnr	r�
nameCollision�z#badDecorator.<locals>.nameCollisionr	�rrr	rr�badDecoratorsrcs�fdd�}t�|�S)z=
    Decorate a function and preserve the original name.
    crrr	rrr	rr&rz$goodDecorator.<locals>.nameCollisionrrr	rr�
goodDecorator!s
rc@sDeZdZdd�Zee�Zdd�Zee�Zdd�Zee�Zdd�Z	d	S)
�DecorationTestcC�dS)z�
        This test method is decorated in a way that gives it a confusing name
        that collides with another method.
        Nr	r
r	r	r�test_badDecorator-�z DecorationTest.test_badDecoratorcCr!)zQ
        This test method is decorated in a way that preserves its name.
        Nr	r
r	r	r�test_goodDecorator5r#z!DecorationTest.test_goodDecoratorcCr!)z~
        This is secretly a test method and will be decorated and then renamed so
        test discovery can find it.
        Nr	r
r	r	r�renamedDecorator<r#zDecorationTest.renamedDecoratorcCr!)zJ
        This isn't a test, it's just here to collide with tests.
        Nr	r
r	r	rrDr#zDecorationTest.nameCollisionN)
rrrr"rr$rr%�test_renamedDecoratorrr	r	r	rr ,sr c@r)�
PyunitTestcCrrr	r
r	r	rr
KrzPyunitTest.test_foocCrrr	r
r	r	rrNrzPyunitTest.test_barNrr	r	r	rr'Jrr'c@seZdZdd�ZdS)�NotATestcCrrr	r
r	r	rr
SrzNotATest.test_fooN)rrrr
r	r	r	rr(Rsr(c@s$eZdZdd�Zdd�Zdd�ZdS)�AlphabetTestcCrrr	r
r	r	r�test_aXrzAlphabetTest.test_acCrrr	r
r	r	r�test_b[rzAlphabetTest.test_bcCrrr	r
r	r	r�test_c^rzAlphabetTest.test_cN)rrrr*r+r,r	r	r	rr)Wsr))�__doc__r�pyunit�twisted.python.utilr�
twisted.trial�SynchronousTestCaserrrr �TestCaser'r(r)r	r	r	r�<module>s