%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/trial/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/trial/test/__pycache__/sample.cpython-312.pyc

�

Ϫ�f�����dZddlZddlmZddlmZGd�dej�Zd�Zd�Z	Gd	�d
ej�Z
Gd�dej�ZGd
�d�Z
Gd�dej�Zy)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��eZdZdd�Zdd�Zy)�FooTestNc��y�N���selfs �;/usr/lib/python3/dist-packages/twisted/trial/test/sample.py�test_foozFooTest.test_foo����c��yr	r
rs r
�test_barzFooTest.test_barrr��returnN��__name__�
__module__�__qualname__rrr
rr
rr
���
�
rrc����fd�}|S)z�
    Decorate a function without preserving the name of the original function.
    Always return a function with the same name.
    c����|i|��Sr	r
��args�kwargs�fns  �r
�
nameCollisionz#badDecorator.<locals>.nameCollision�����4�"�6�"�"rr
�rr s` r
�badDecoratorr#s���#��rc�&���fd�}t�|�S)z=
    Decorate a function and preserve the original name.
    c����|i|��Sr	r
rs  �r
r z$goodDecorator.<locals>.nameCollision&r!rrr"s` r
�
goodDecoratorr&!s���
#�!��]�3�3rc�\�eZdZdd�Zee�Zdd�Zee�Zdd�Zee�Zdd�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
rs r
�test_badDecoratorz DecorationTest.test_badDecorator-��rc��y)zQ
        This test method is decorated in a way that preserves its name.
        Nr
rs r
�test_goodDecoratorz!DecorationTest.test_goodDecorator5r+rc��y)z~
        This is secretly a test method and will be decorated and then renamed so
        test discovery can find it.
        Nr
rs r
�renamedDecoratorzDecorationTest.renamedDecorator<r+rc��y)zJ
        This isn't a test, it's just here to collide with tests.
        Nr
rs r
r zDecorationTest.nameCollisionDr+rr)
rrrr*r#r-r&r/�test_renamedDecoratorr r
rr
r(r(,s@���%�%6�7���
'�'9�:���*�*:�;��rr(c��eZdZdd�Zdd�Zy)�
PyunitTestNc��yr	r
rs r
rzPyunitTest.test_fooKrrc��yr	r
rs r
rzPyunitTest.test_barNrrrrr
rr
r3r3Jrrr3c��eZdZdd�Zy)�NotATestNc��yr	r
rs r
rzNotATest.test_fooSrrr)rrrrr
rr
r7r7Rs��
rr7c�$�eZdZdd�Zdd�Zdd�Zy)�AlphabetTestNc��yr	r
rs r
�test_azAlphabetTest.test_aXrrc��yr	r
rs r
�test_bzAlphabetTest.test_b[rrc��yr	r
rs r
�test_czAlphabetTest.test_c^rrr)rrrr<r>r@r
rr
r:r:Ws��
�
�
rr:)�__doc__r�pyunit�twisted.python.utilr�
twisted.trial�SynchronousTestCaserr#r&r(�TestCaser3r7r:r
rr
�<module>rGso����5�"�
�h�*�*�
�	�4��X�1�1��<
����
�
�
�

�8�/�/�
r

Zerion Mini Shell 1.0