
    h                         S r SSKrSSKJr  SSKJr   " S S\R                  5      rS rS r	 " S	 S
\R                  5      r
 " S S\R                  5      r " S S5      r " S S\R                  5      rg)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                   (    \ rS rSrSS jrSS jrSrg)FooTest   Nc                     g N selfs    `/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/trial/test/sample.pytest_fooFooTest.test_foo           c                     g r
   r   r   s    r   test_barFooTest.test_bar   r   r   r   returnN__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   r   r          r   r   c                    ^  U 4S jnU$ )zx
Decorate a function without preserving the name of the original function.
Always return a function with the same name.
c                     > T" U 0 UD6$ r
   r   argskwargsfns     r   nameCollision#badDecorator.<locals>.nameCollision       4"6""r   r   r$   r%   s   ` r   badDecoratorr)      s    # r   c                 (   ^  U 4S jn[        T U5      $ )z5
Decorate a function and preserve the original name.
c                     > T" U 0 UD6$ r
   r   r!   s     r   r%   $goodDecorator.<locals>.nameCollision&   r'   r   r   r(   s   ` r   goodDecoratorr-   !   s    
# !]33r   c                   l    \ rS rSrSS jr\" \5      rSS jr\" \5      rSS jr\" \5      r	SS jr
Srg)	DecorationTest,   Nc                     g)zj
This test method is decorated in a way that gives it a confusing name
that collides with another method.
Nr   r   s    r   test_badDecorator DecorationTest.test_badDecorator-       r   c                     g)zA
This test method is decorated in a way that preserves its name.
Nr   r   s    r   test_goodDecorator!DecorationTest.test_goodDecorator5   r4   r   c                     g)zf
This is secretly a test method and will be decorated and then renamed so
test discovery can find it.
Nr   r   s    r   renamedDecoratorDecorationTest.renamedDecorator<   r4   r   c                     g)z:
This isn't a test, it's just here to collide with tests.
Nr   r   s    r   r%   DecorationTest.nameCollisionD   r4   r   r   r   )r   r   r   r   r2   r)   r6   r-   r9   test_renamedDecoratorr%   r   r   r   r   r/   r/   ,   s@     %%67
 ''9: **:;r   r/   c                   (    \ rS rSrSS jrSS jrSrg)
PyunitTestJ   Nc                     g r
   r   r   s    r   r   PyunitTest.test_fooK   r   r   c                     g r
   r   r   s    r   r   PyunitTest.test_barN   r   r   r   r   r   r   r   r   r?   r?   J   r   r   r?   c                       \ rS rSrSS jrSrg)NotATestR   Nc                     g r
   r   r   s    r   r   NotATest.test_fooS   r   r   r   r   )r   r   r   r   r   r   r   r   r   rF   rF   R   s    r   rF   c                   2    \ rS rSrSS jrSS jrSS jrSrg)AlphabetTestW   Nc                     g r
   r   r   s    r   test_aAlphabetTest.test_aX   r   r   c                     g r
   r   r   s    r   test_bAlphabetTest.test_b[   r   r   c                     g r
   r   r   s    r   test_cAlphabetTest.test_c^   r   r   r   r   )r   r   r   r   rN   rQ   rT   r   r   r   r   rK   rK   W   s    r   rK   )__doc__r   pyunittwisted.python.utilr   twisted.trialSynchronousTestCaser   r)   r-   r/   TestCaser?   rF   rK   r   r   r   <module>r\      so     5 "h** 	4X11 <  
8// r   