
    tf                         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dZddZdS )FooTestreturnNc                     d S N selfs    X/var/www/surfInsights/venv3-11/lib/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   r   N__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       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                   p    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	dS )DecorationTestr   Nc                     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   r   )
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dZddZdS )
PyunitTestr   Nc                     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   r   r   r   r   r   r3   r3   J   r   r   r3   c                       e Zd ZddZdS )NotATestr   Nc                     d S 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dS )AlphabetTestr   Nc                     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   r   )r   r   r   r<   r>   r@   r   r   r   r:   r:   W   sP                   r   r:   )__doc__r   pyunittwisted.python.utilr   twisted.trialSynchronousTestCaser   r#   r&   r(   TestCaser3   r7   r:   r   r   r   <module>rG      sD        5 5 5 5 5 5 " " " " " "    h*   	 	 	4 4 4    X1   <              
    8/     r   