%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/zope/interface/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/zope/interface/tests/__pycache__/test_document.cpython-312.pyc

�

��eB���dZddlZGd�dej�ZGd�dej�ZGd�dej�Zy)	zDocumentation tests.
�Nc�T�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zy
)�Test_asStructuredTextc��ddlm}||�S)Nr)�asStructuredText)�zope.interface.documentr)�self�ifacers   �D/usr/lib/python3/dist-packages/zope/interface/tests/test_document.py�_callFUTzTest_asStructuredText._callFUTs��<���&�&�c��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nr��	Interface�

)�INoDocstring� Attributes:�	 Methods:�c��eZdZy)�NTest_asStructuredText.test_asStructuredText_no_docstring.<locals>.INoDocstringN��__name__�
__module__�__qualname__�rr
rr!���rr��zope.interfacer�join�assertEqualr�rr�EXPECTEDrs    r
�"test_asStructuredText_no_docstringz8Test_asStructuredText.test_asStructuredText_no_docstring�=��,��;�;� 
���	�9�	�������|�4�h�?rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)�IEmpty� This is an empty interface.rrrc��eZdZdZy)�PTest_asStructuredText.test_asStructuredText_empty_with_docstring.<locals>.IEmpty�) This is an empty interface.
            N�rrr�__doc__rrr
r&r).���
rr&r�rrr"r&s    r
�*test_asStructuredText_empty_with_docstringz@Test_asStructuredText.test_asStructuredText_empty_with_docstring%�?��,��;�;� 
���	�Y�	�	
������v�.��9rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrr�
)r&rr'� �P             It can be used to annotate any class or object, because it promises�             nothing.rrrrrrc��eZdZdZy)�ZTest_asStructuredText.test_asStructuredText_empty_with_multiline_docstring.<locals>.IEmpty�� This is an empty interface.

            It can be used to annotate any class or object, because it promises
            nothing.
            Nr+rrr
r&r7D���
rr&rr.s    r
�4test_asStructuredText_empty_with_multiline_docstringzJTest_asStructuredText.test_asStructuredText_empty_with_multiline_docstring3�?��,��9�9�
���	�Y�	�	
������v�.��9rc���ddlm�ddlm}djgd��}G�fd�d|�}|j	|j|�|�y)Nr��	Attributerr)�
IHasAttribute�! This interface has an attribute.rz"  an_attribute -- no documentationrrc�$��eZdZdZW�d�Zy)�^Test_asStructuredText.test_asStructuredText_with_attribute_no_docstring.<locals>.IHasAttribute�. This interface has an attribute.
            �an_attributeN�rrrr,rDr=s�r
r?rBW����
�$�^�4�Lrr?�rr>rrr r�rrr"r?r>s    @r
�1test_asStructuredText_with_attribute_no_docstringzGTest_asStructuredText.test_asStructuredText_with_attribute_no_docstringL�C���,�,��;�;� 
���	5�I�	5�
	
������}�5�x�@rc���ddlm�ddlm}djgd��}G�fd�d|�}|j	|j|�|�y)Nrr=rr)r?r@rz/  an_attribute -- This attribute is documented.rrc�&��eZdZdZW�dd�Zy)�`Test_asStructuredText.test_asStructuredText_with_attribute_with_docstring.<locals>.IHasAttributerCrD�This attribute is documented.NrEr=s�r
r?rMi����
�$�^�%D�F�Lrr?rGrHs    @r
�3test_asStructuredText_with_attribute_with_docstringzITest_asStructuredText.test_asStructuredText_with_attribute_with_docstring^�E���,�,��;�;� 
���	F�I�	F�	
������}�5�x�@rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)�
IHasMethod� This interface has a method.rrz  aMethod() -- no documentationrc��eZdZdZd�Zy)�`Test_asStructuredText.test_asStructuredText_with_method_no_args_no_docstring.<locals>.IHasMethod�* This interface has a method.
            c��y�Nrrrr
�aMethodzhTest_asStructuredText.test_asStructuredText_with_method_no_args_no_docstring.<locals>.IHasMethod.aMethod~���rN�rrrr,rZrrr
rSrV{���
�
rrSr�rrr"rSs    r
�6test_asStructuredText_with_method_no_args_no_docstringzLTest_asStructuredText.test_asStructuredText_with_method_no_args_no_docstringq�?��,��;�;� 
���	��	�	
������z�2�H�=rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)rSrTrrz,  aMethod(first, second) -- no documentationrc��eZdZdZd�Zy)�hTest_asStructuredText.test_asStructuredText_with_method_positional_args_no_docstring.<locals>.IHasMethodrWc��yrYr��first�seconds  r
rZzpTest_asStructuredText.test_asStructuredText_with_method_positional_args_no_docstring.<locals>.IHasMethod.aMethod�r[rNr\rrr
rSrc�r]rrSrr^s    r
�>test_asStructuredText_with_method_positional_args_no_docstringzTTest_asStructuredText.test_asStructuredText_with_method_positional_args_no_docstring�r`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)rSrTrrz3  aMethod(first, second, *rest) -- no documentationrc��eZdZdZd�Zy)�aTest_asStructuredText.test_asStructuredText_with_method_starargs_no_docstring.<locals>.IHasMethodrWc��yrYr�rfrg�rests   r
rZziTest_asStructuredText.test_asStructuredText_with_method_starargs_no_docstring.<locals>.IHasMethod.aMethod�r[rNr\rrr
rSrk�r]rrSrr^s    r
�7test_asStructuredText_with_method_starargs_no_docstringzMTest_asStructuredText.test_asStructuredText_with_method_starargs_no_docstring�r`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)rSrTrrz2  aMethod(first, second, **kw) -- no documentationrc��eZdZdZd�Zy)�_Test_asStructuredText.test_asStructuredText_with_method_kwargs_no_docstring.<locals>.IHasMethodrWc��yrYr�rfrg�kws   r
rZzgTest_asStructuredText.test_asStructuredText_with_method_kwargs_no_docstring.<locals>.IHasMethod.aMethod�r[rNr\rrr
rSrr�r]rrSrr^s    r
�5test_asStructuredText_with_method_kwargs_no_docstringzKTest_asStructuredText.test_asStructuredText_with_method_kwargs_no_docstring�r`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)rSrTrrz)  aMethod() -- This method is documented.rc��eZdZdZd�Zy)�ZTest_asStructuredText.test_asStructuredText_with_method_with_docstring.<locals>.IHasMethodrWc��y�z+This method is documented.
                Nrrrr
rZzbTest_asStructuredText.test_asStructuredText_with_method_with_docstring.<locals>.IHasMethod.aMethod���rNr\rrr
rSry����
�
rrSrr^s    r
�0test_asStructuredText_with_method_with_docstringzFTest_asStructuredText.test_asStructuredText_with_method_with_docstring��?��,��;�;� 
���	��	�	
������z�2�H�=rc���ddlm�ddlm}djgd��}Gd�d|�}G�fd�d	|�}|j	|j|�|�y)
Nrr=rr)�IDerived�
 IDerived doc� This interface extends:z	  o IBaserz  attr1 -- no documentationz  attr2 -- attr2 docrz  method3() -- method3 docz  method4() -- no documentationz  method5() -- method5 docrc��eZdZd�Zd�Zy)�OTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IBasec��y��	docstringNrrrr
�method1zWTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IBase.method1�r|rc��yr�rrrr
�method2zWTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IBase.method2�r|rN�rrrr�r�rrr
�IBaser��s��
 �
 rr�c�J��eZdZdZW�d�ZW�dd�Zd�Zd�Zd�Zy)	�RTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IDerived�IDerived doc�attr1�attr2�	attr2 docc��y�zmethod3 docNrrrr
�method3zZTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IDerived.method3�r|rc��yrYrrrr
�method4zZTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IDerived.method4�r[rc��y�zmethod5 docNrrrr
�method5zZTest_asStructuredText.test_asStructuredText_derived_ignores_base.<locals>.IDerived.method5�r|rN�	rrrr,r�r�r�r�r�r=s�r
r�r���+�����g�&�E��g�{�3�E�
�
�
rr�rG�rrr"r�r�r>s     @r
�*test_asStructuredText_derived_ignores_basez@Test_asStructuredText.test_asStructuredText_derived_ignores_base�sO���,�,��;�;�
 
�
��	 �I�	 �
	�u�
	�	
������x�0�(�;rN)rrrrr#r/r:rIrPr_rhrorvr~r�rrr
rrsA��'�
@�:�:�2A�$A�&>�$>�$>�$>�$>�&$<rrc�T�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zy
)�Test_asReStructuredTextc��ddlm}||�S)Nr)�asReStructuredText)rr�)rr	r�s   r
rz Test_asReStructuredText._callFUT�s��>�!�%�(�(rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)z``INoDocstring``rrrc��eZdZy)�RTest_asReStructuredText.test_asReStructuredText_no_docstring.<locals>.INoDocstringNrrrr
rr�rrrrr!s    r
�$test_asReStructuredText_no_docstringz<Test_asReStructuredText.test_asReStructuredText_no_docstring�r$rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)�
``IEmpty``r'rrrc��eZdZdZy)�TTest_asReStructuredText.test_asReStructuredText_empty_with_docstring.<locals>.IEmptyr*Nr+rrr
r&r�r-rr&rr.s    r
�,test_asReStructuredText_empty_with_docstringzDTest_asReStructuredText.test_asReStructuredText_empty_with_docstringr0rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr2)r�rr'r3r4r5rrrrrrc��eZdZdZy)�^Test_asReStructuredText.test_asReStructuredText_empty_with_multiline_docstring.<locals>.IEmptyr8Nr+rrr
r&r�$r9rr&rr.s    r
�6test_asReStructuredText_empty_with_multiline_docstringzNTest_asReStructuredText.test_asReStructuredText_empty_with_multiline_docstringr;rc���ddlm�ddlm}djgd��}G�fd�d|�}|j	|j|�|�y)Nrr=rr)�``IHasAttribute``r@rz&  ``an_attribute`` -- no documentationrrc�$��eZdZdZW�d�Zy)�bTest_asReStructuredText.test_asReStructuredText_with_attribute_no_docstring.<locals>.IHasAttributerCrDNrEr=s�r
r?r�7rFrr?rGrHs    @r
�3test_asReStructuredText_with_attribute_no_docstringzKTest_asReStructuredText.test_asReStructuredText_with_attribute_no_docstring,rJrc���ddlm�ddlm}djgd��}G�fd�d|�}|j	|j|�|�y)Nrr=rr)r�r@rz3  ``an_attribute`` -- This attribute is documented.rrc�&��eZdZdZW�dd�Zy)�dTest_asReStructuredText.test_asReStructuredText_with_attribute_with_docstring.<locals>.IHasAttributerCrDrNNrEr=s�r
r?r�IrOrr?rGrHs    @r
�5test_asReStructuredText_with_attribute_with_docstringzMTest_asReStructuredText.test_asReStructuredText_with_attribute_with_docstring>rQrc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)�``IHasMethod``rTrrz#  ``aMethod()`` -- no documentationrc��eZdZdZd�Zy)�dTest_asReStructuredText.test_asReStructuredText_with_method_no_args_no_docstring.<locals>.IHasMethodrWc��yrYrrrr
rZzlTest_asReStructuredText.test_asReStructuredText_with_method_no_args_no_docstring.<locals>.IHasMethod.aMethod^r[rNr\rrr
rSr�[r]rrSrr^s    r
�8test_asReStructuredText_with_method_no_args_no_docstringzPTest_asReStructuredText.test_asReStructuredText_with_method_no_args_no_docstringQr`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)r�rTrrz0  ``aMethod(first, second)`` -- no documentationrc��eZdZdZd�Zy)�lTest_asReStructuredText.test_asReStructuredText_with_method_positional_args_no_docstring.<locals>.IHasMethodrWc��yrYrres  r
rZztTest_asReStructuredText.test_asReStructuredText_with_method_positional_args_no_docstring.<locals>.IHasMethod.aMethodpr[rNr\rrr
rSr�mr]rrSrr^s    r
�@test_asReStructuredText_with_method_positional_args_no_docstringzXTest_asReStructuredText.test_asReStructuredText_with_method_positional_args_no_docstringcr`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)r�rTrrz7  ``aMethod(first, second, *rest)`` -- no documentationrc��eZdZdZd�Zy)�eTest_asReStructuredText.test_asReStructuredText_with_method_starargs_no_docstring.<locals>.IHasMethodrWc��yrYrrms   r
rZzmTest_asReStructuredText.test_asReStructuredText_with_method_starargs_no_docstring.<locals>.IHasMethod.aMethod�r[rNr\rrr
rSr�r]rrSrr^s    r
�9test_asReStructuredText_with_method_starargs_no_docstringzQTest_asReStructuredText.test_asReStructuredText_with_method_starargs_no_docstringur`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)r�rTrrz6  ``aMethod(first, second, **kw)`` -- no documentationrc��eZdZdZd�Zy)�cTest_asReStructuredText.test_asReStructuredText_with_method_kwargs_no_docstring.<locals>.IHasMethodrWc��yrYrrts   r
rZzkTest_asReStructuredText.test_asReStructuredText_with_method_kwargs_no_docstring.<locals>.IHasMethod.aMethod�r[rNr\rrr
rSr��r]rrSrr^s    r
�7test_asReStructuredText_with_method_kwargs_no_docstringzOTest_asReStructuredText.test_asReStructuredText_with_method_kwargs_no_docstring�r`rc��ddlm}djgd��}Gd�d|�}|j|j	|�|�y)Nrrr)r�rTrrz-  ``aMethod()`` -- This method is documented.rc��eZdZdZd�Zy)�^Test_asReStructuredText.test_asReStructuredText_with_method_with_docstring.<locals>.IHasMethodrWc��yr{rrrr
rZzfTest_asReStructuredText.test_asReStructuredText_with_method_with_docstring.<locals>.IHasMethod.aMethod�r|rNr\rrr
rSr��r}rrSrr^s    r
�2test_asReStructuredText_with_method_with_docstringzJTest_asReStructuredText.test_asReStructuredText_with_method_with_docstring�rrc���ddlm�ddlm}djgd��}Gd�d|�}G�fd�d	|�}|j	|j|�|�y)
Nrr=rr)z``IDerived``r�r�z
  o ``IBase``rz  ``attr1`` -- no documentationz  ``attr2`` -- attr2 docrz  ``method3()`` -- method3 docz#  ``method4()`` -- no documentationz  ``method5()`` -- method5 docrc��eZdZd�Zd�Zy)�STest_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IBasec��yrYrrrr
r�z[Test_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IBase.method1�r[rc��yrYrrrr
r�z[Test_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IBase.method2�r[rNr�rrr
r�r��s��
�
rr�c�J��eZdZdZW�d�ZW�dd�Zd�Zd�Zd�Zy)	�VTest_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IDerivedr�r�r�r�c��yr�rrrr
r�z^Test_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IDerived.method3�r|rc��yrYrrrr
r�z^Test_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IDerived.method4�r[rc��yr�rrrr
r�z^Test_asReStructuredText.test_asReStructuredText_derived_ignores_base.<locals>.IDerived.method5�r|rNr�r=s�r
r�r��r�rr�rGr�s     @r
�,test_asReStructuredText_derived_ignores_basezDTest_asReStructuredText.test_asReStructuredText_derived_ignores_base�sO���,�,��;�;�
 
�
��	�I�	�
	�u�
	�	
������x�0�(�;rN)rrrrr�r�r�r�r�r�r�r�r�r�r�rrr
r�r��sA��)�
@�:�:�2A�$A�&>�$>�$>�$>�$>�&$<rr�c�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�Test__justify_and_indentc�"�ddlm}|||fi|��S)Nr)�_justify_and_indent)rr�)r�text�levelrur�s     r
rz!Test__justify_and_indent._callFUT�s��?�"�4��5�"�5�5rc�r�ddg}dj|�}|j|j|d�|�y)N�Three blind mice�See how they runr2r�rr r)r�LINESr�s   r
�test_simple_level_0z,Test__justify_and_indent.test_simple_level_0�s6��#�%7�8���y�y����������t�Q�/��6rc
��ddg}dj|�}|j|j|d�dj|D�cgc]}d|z��	c}��ycc}w�Nr�r�r2�r3r��rr�r��lines    r
�test_simple_level_1z,Test__justify_and_indent.test_simple_level_1��U��#�%7�8���y�y����������t�Q�/����5�#A�4�C�$�J�#A�B�	D��#A��Ac
��ddg}dj|�}|j|j|d�dj|D�cgc]}d|z��	c}��ycc}wr�r�r�s    r
�test_simple_level_2z,Test__justify_and_indent.test_simple_level_2�r�r�c
��ddg}dj|�}|j|j|d�dj|D�cgc]}d|z��	c}��ycc}w)Nr�r�z
r�r2r3r�r�s    r
�test_simple_w_CRLFz+Test__justify_and_indent.test_simple_w_CRLF�sU��#�%7�8���{�{�5�!��������t�Q�/����5�#A�4�C�$�J�#A�B�	D��#Ar�c�V�d}d}|j|j|ddd��|�y)NzTThis is a piece of text longer than 15 characters, 
and split across multiple lines.z_  This is a piece
  of text longer
  than 15 characters,
  and split across
  multiple lines.
 r��)�munge�width)r r)r�TEXTr"s   r
�test_with_mungez(Test__justify_and_indent.test_with_munge�s3��3����	
������t�Q�a�r��B�H�MrN)	rrrrr�r�r�r�r�rrr
r�r��s$��6�7�
D�D�D�	Nrr�)r,�unittest�TestCaserr�r�rrr
�<module>r�sK����]<�H�-�-�]<�@]<�h�/�/�]<�@&N�x�0�0�&Nr

Zerion Mini Shell 1.0