o
    ¯b$  ã                   @   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„ Zdd„ ZdS )ÚFooTestc                 C   ó   d S ©N© ©Úselfr	   r	   ú;/usr/lib/python3/dist-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_barN©Ú__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                   @   sD   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 )
ÚDecorationTestc                 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.nameCollisionN)
r   r   r   r"   r   r$   r   r%   Útest_renamedDecoratorr   r	   r	   r	   r   r    ,   s    r    c                   @   r   )Ú
PyunitTestc                 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_barNr   r	   r	   r	   r   r'   J   r   r'   c                   @   s   e Zd Zdd„ ZdS )ÚNotATestc                 C   r   r   r	   r
   r	   r	   r   r   S   r   zNotATest.test_fooN)r   r   r   r   r	   r	   r	   r   r(   R   s    r(   c                   @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚAlphabetTestc                 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_cN)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    