
    Vh                         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y)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dZddZy)FooTestNc                      y N selfs    I/home/dcms/DCMS/lib/python3.12/site-packages/twisted/trial/test/sample.pytest_foozFooTest.test_foo           c                      y r	   r
   r   s    r   test_barzFooTest.test_bar   r   r   returnN__name__
__module____qualname__r   r   r
   r   r   r   r          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       4"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3r   c                   \    e Zd ZddZ ee      ZddZ ee      ZddZ ee      ZddZ	y)DecorationTestNc                      y)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                      y)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                      y)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                      y)zJ
        This isn't a test, it's just here to collide with tests.
        Nr
   r   s    r   r    zDecorationTest.nameCollisionD   r+   r   r   )
r   r   r   r*   r#   r-   r&   r/   test_renamedDecoratorr    r
   r   r   r(   r(   ,   s@     %%67
 ''9: **:;r   r(   c                       e Zd ZddZddZy)
PyunitTestNc                      y r	   r
   r   s    r   r   zPyunitTest.test_fooK   r   r   c                      y r	   r
   r   s    r   r   zPyunitTest.test_barN   r   r   r   r   r
   r   r   r3   r3   J   r   r   r3   c                       e Zd ZddZy)NotATestNc                      y r	   r
   r   s    r   r   zNotATest.test_fooS   r   r   r   )r   r   r   r   r
   r   r   r7   r7   R   s    r   r7   c                   $    e Zd ZddZddZddZy)AlphabetTestNc                      y r	   r
   r   s    r   test_azAlphabetTest.test_aX   r   r   c                      y r	   r
   r   s    r   test_bzAlphabetTest.test_b[   r   r   c                      y r	   r
   r   s    r   test_czAlphabetTest.test_c^   r   r   r   )r   r   r   r<   r>   r@   r
   r   r   r:   r:   W   s    r   r:   )__doc__r   pyunittwisted.python.utilr   twisted.trialSynchronousTestCaser   r#   r&   r(   TestCaser3   r7   r:   r
   r   r   <module>rG      so     5 "h** 	4X11 <  
8// r   