
    \d$                         d Z ddlZddlmZ ddlmZ  G d dej                  Zd Zd Z	 G d	 d
ej                  Z
 G d dej                  Z G d d          Z G d dej                  ZdS )zThis 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 Zd ZdS )FooTestc                     d S N selfs    9lib/python3.11/site-packages/twisted/trial/test/sample.pytest_foozFooTest.test_foo           c                     d S r	   r
   r   s    r   test_barzFooTest.test_bar   r   r   N__name__
__module____qualname__r   r   r
   r   r   r   r      2              r   r   c                       f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fns     r   nameCollisionz#badDecorator.<locals>.nameCollision       r4"6"""r   r
   r   r   s   ` r   badDecoratorr!      s$    # # # # # r   c                 .      fd}t           |          S )z=
    Decorate a function and preserve the original name.
    c                       | i |S r	   r
   r   s     r   r   z$goodDecorator.<locals>.nameCollision&   r   r   r   r    s   ` r   goodDecoratorr$   !   s.    
# # # # # !]333r   c                   h    e Zd Zd Z ee          Zd Z ee          Zd Z ee          Zd Z	dS )DecorationTestc                     dS )z
        This test method is decorated in a way that gives it a confusing name
        that collides with another method.
        Nr
   r   s    r   test_badDecoratorz DecorationTest.test_badDecorator-         r   c                     dS )zQ
        This test method is decorated in a way that preserves its name.
        Nr
   r   s    r   test_goodDecoratorz!DecorationTest.test_goodDecorator5   r)   r   c                     dS )z~
        This is secretly a test method and will be decorated and then renamed so
        test discovery can find it.
        Nr
   r   s    r   renamedDecoratorzDecorationTest.renamedDecorator<   r)   r   c                     dS )zJ
        This isn't a test, it's just here to collide with tests.
        Nr
   r   s    r   r   zDecorationTest.nameCollisionD   r)   r   N)
r   r   r   r(   r!   r+   r$   r-   test_renamedDecoratorr   r
   r   r   r&   r&   ,   s           %%677  
 ''9::   *M*:;;    r   r&   c                       e Zd Zd Zd ZdS )
PyunitTestc                     d S r	   r
   r   s    r   r   zPyunitTest.test_fooK   r   r   c                     d S r	   r
   r   s    r   r   zPyunitTest.test_barN   r   r   Nr   r
   r   r   r1   r1   J   r   r   r1   c                       e Zd Zd ZdS )NotATestc                     d S r	   r
   r   s    r   r   zNotATest.test_fooS   r   r   N)r   r   r   r   r
   r   r   r5   r5   R   s#            r   r5   c                        e Zd Zd Zd Zd ZdS )AlphabetTestc                     d S r	   r
   r   s    r   test_azAlphabetTest.test_aX   r   r   c                     d S r	   r
   r   s    r   test_bzAlphabetTest.test_b[   r   r   c                     d S r	   r
   r   s    r   test_czAlphabetTest.test_c^   r   r   N)r   r   r   r:   r<   r>   r
   r   r   r8   r8   W   sA                r   r8   )__doc__r   pyunittwisted.python.utilr   twisted.trialSynchronousTestCaser   r!   r$   r&   TestCaser1   r5   r8   r
   r   r   <module>rE      sD        5 5 5 5 5 5 " " " " " "    h*   	 	 	4 4 4    X1   <              
    8/     r   