o
    ¼>h„  ã                   @   sŽ   d Z ddlZddlmZ ddlmZ G dd„ dejƒZdd„ Zd	d
„ Z	G dd„ dejƒZ
G dd„ dejƒZG dd„ dƒZG dd„ dejƒZdS )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                   @   ó    e Zd Zddd„Zddd„ZdS )ÚFooTestÚreturnNc                 C   ó   d S ©N© ©Úselfr
   r
   úy/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/twisted/trial/test/sample.pyÚtest_foo   ó   zFooTest.test_fooc                 C   r   r	   r
   r   r
   r
   r   Útest_bar   r   zFooTest.test_bar©r   N©Ú__name__Ú
__module__Ú__qualname__r   r   r
   r
   r
   r   r      ó    
r   c                    s   ‡ fdd„}|S )z„
    Decorate a function without preserving the name of the original function.
    Always return a function with the same name.
    c                     ó   ˆ | i |¤ŽS r	   r
   ©ÚargsÚkwargs©Úfnr
   r   ÚnameCollision   ó   z#badDecorator.<locals>.nameCollisionr
   ©r   r   r
   r   r   ÚbadDecorator   s   r    c                    s   ‡ fdd„}t ˆ |ƒS )z=
    Decorate a function and preserve the original name.
    c                     r   r	   r
   r   r   r
   r   r   &   r   z$goodDecorator.<locals>.nameCollisionr   r   r
   r   r   ÚgoodDecorator!   s   
r!   c                   @   sL   e Zd Zddd„ZeeƒZddd„ZeeƒZddd„ZeeƒZdd	d
„Z	dS )ÚDecorationTestr   Nc                 C   ó   dS )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_badDecoratorc                 C   r#   )zQ
        This test method is decorated in a way that preserves its name.
        Nr
   r   r
   r
   r   Útest_goodDecorator5   r%   z!DecorationTest.test_goodDecoratorc                 C   r#   )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%   zDecorationTest.renamedDecoratorc                 C   r#   )zJ
        This isn't a test, it's just here to collide with tests.
        Nr
   r   r
   r
   r   r   D   r%   zDecorationTest.nameCollisionr   )
r   r   r   r$   r    r&   r!   r'   Útest_renamedDecoratorr   r
   r
   r
   r   r"   ,   s    


r"   c                   @   r   )Ú
PyunitTestr   Nc                 C   r   r	   r
   r   r
   r
   r   r   K   r   zPyunitTest.test_fooc                 C   r   r	   r
   r   r
   r
   r   r   N   r   zPyunitTest.test_barr   r   r
   r
   r
   r   r)   J   r   r)   c                   @   s   e Zd Zddd„ZdS )ÚNotATestr   Nc                 C   r   r	   r
   r   r
   r
   r   r   S   r   zNotATest.test_foor   )r   r   r   r   r
   r
   r
   r   r*   R   s    r*   c                   @   s*   e Zd Zd	dd„Zd	dd„Zd	dd„ZdS )
ÚAlphabetTestr   Nc                 C   r   r	   r
   r   r
   r
   r   Útest_aX   r   zAlphabetTest.test_ac                 C   r   r	   r
   r   r
   r
   r   Útest_b[   r   zAlphabetTest.test_bc                 C   r   r	   r
   r   r
   r
   r   Útest_c^   r   zAlphabetTest.test_cr   )r   r   r   r,   r-   r.   r
   r
   r
   r   r+   W   s    

r+   )Ú__doc__r   ÚpyunitÚtwisted.python.utilr   Útwisted.trialÚSynchronousTestCaser   r    r!   r"   ÚTestCaser)   r*   r+   r
   r
   r
   r   Ú<module>   s    