Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/distutils/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/distutils/tests/__pycache__/test_check.cpython-311.opt-1.pyc

�

SԚg����dZddlZddlZddlZddlmZmZddlmZddl	m
Z
	ddlZn
#e$rdZYnwxYwej
�e��ZGd�dejejej��Zedkrej��dSdS)	z"Tests for distutils.command.check.�N)�check�HAS_DOCUTILS)�support)�DistutilsSetupErrorc��eZdZd	d�Zd�Zejed��d���Zejed��d���Z	ejed��d���Z
d�ZdS)
�
CheckTestCaseNc��|�i}|�'tj��}tj|��|jdi|��\}}t	|��}|���|���D]\}}	t|||	���|���|�	��|�tj|��|S)N�)
�os�getcwd�chdir�create_distr�initialize_options�items�setattr�ensure_finalized�run)
�self�metadata�cwd�options�old_dir�pkg_info�dist�cmd�name�values
          �7/usr/local/lib/python3.11/distutils/tests/test_check.py�_runzCheckTestCase._runs������H��?��i�k�k�G��H�S�M�M�M�)��)�5�5�H�5�5���$��D�k�k����� � � �"�=�=�?�?�	&�	&�K�D�%��C��u�%�%�%�%����������	�	�	��?��H�W�����
�c���|���}|�|jd��dddddd�}|�|��}|�|jd��|jt|jifiddi��|�|d���}|�|jd��dddddd	d
d�}|�|��}|�|jd��dS)N��xxx)�url�author�author_emailr�versionr�strict�)r(uÉricuSomething about esszet ßuMore things about esszet ß)r$r%r&rr'�description�long_description)r�assertEqual�	_warnings�assertRaisesr)rrrs   r�test_check_metadataz!CheckTestCase.test_check_metadata(s���i�i�k�k��������*�*�*�
!�E�$)�!�e�5�5���i�i��!�!��������*�*�*�	���-�t�y�"�N�N��1�
�N�N�N��i�i���i�+�+��������*�*�*�!�K�$)�5�$�#B�(I�	K�K��
�i�i��!�!��������*�*�*�*�*r zwon't test without docutilsc�:�|���\}}t|��}d}|�|��}|�t	|��d��d}|�|��}|�t	|��d��dS)N�title
===

testr)ztitle
=====

testr)rr�_check_rst_datar,�len)rrrr�broken_rest�msgs�rests       r�test_check_documentz!CheckTestCase.test_check_documentIs����)�)�+�+���$��D�k�k��+���"�"�;�/�/������T���A�&�&�&�&���"�"�4�(�(������T���A�&�&�&�&�&r c���d}|�|���\}}t|��}|���|�|jd��ddddd|d�}|jt|j|fiddd���d|d<|�|dd���}|�|jd	��d
|d<|�|tdd���}|�|jd	��dS)Nr1�r+r)r#)r$r%r&rr'r+�r(�restructuredtextutitle
=====

test ßr+rz)title
=====

.. include:: includetest.rst)rr(r;)	rr�check_restructuredtextr,r-r.rr�HERE)rr4rrrrs      r�test_check_restructuredtextz)CheckTestCase.test_check_restructuredtextXs4��+���)�)�;�)�G�G���$��D�k�k���"�"�$�$�$�������*�*�*�!�E�$)�!�e�(3�5�5��	���-�t�y�(�	B�	B�'(�a�@�@�	B�	B�	B�(E��#�$��i�i���Q�i�?�?��������*�*�*�(V��#�$��i�i��d�1�q�i�I�I��������*�*�*�*�*r c�L�g}|�tjd����|�tjd����|D]�}|�|���\}}t	|��}|���|�|��}t�$|�t|��d���~|�t|��d��|�t|dd��d����dS)Nz}            Here's some code:

            .. code:: python

                def foo():
                    pass
            z�            Here's some code:

            .. code-block:: python

                def foo():
                    pass
            r9rr)z0Cannot analyze code. Pygments package not found.)�append�textwrap�dedentrrr<r2�pygmentsr,r3�str)r�example_rst_docs�rest_with_coderrrr5s       r�1test_check_restructuredtext_with_syntax_highlightz?CheckTestCase.test_check_restructuredtext_with_syntax_highlightss9���������1�!�!�	�	�	�	�����1�!�!�	�	�	�/�	�	�N�!�-�-�~�-�N�N�N�H�d���+�+�C��&�&�(�(�(��&�&�~�6�6�D��#�� � ��T���A�.�.�.�.�� � ��T���A�.�.�.�� � ���Q���
�O�O�F�����	�	r c�J�ddd�}|jt|jifiddd���dS)Nr#)r$r%r)r:)r.rr)rrs  r�test_check_allzCheckTestCase.test_check_all�sT�� �E�2�2�����-�t�y��	9�	9�+,�56�!8�!8�	9�	9�	9�	9�	9r )NN)�__name__�
__module__�__qualname__rr/�unittest�
skipUnlessrr7r>rGrIr
r rrrs�����������"+�+�+�B�X���'D�E�E�'�'�F�E�'��X���'D�E�E�+�+�F�E�+�4�X���'D�E�E�!�!�F�E�!�F9�9�9�9�9r r�__main__)�__doc__rrArM�distutils.command.checkrr�distutils.testsr�distutils.errorsrrC�ImportError�path�dirname�__file__r=�LoggingSilencer�TempdirManager�TestCaserrJ�mainr
r r�<module>r\s��(�(�	�	�	�	���������7�7�7�7�7�7�7�7�#�#�#�#�#�#�0�0�0�0�0�0���O�O�O�O�������H�H�H�����
�w���x� � ��I9�I9�I9�I9�I9�G�+��*��%�I9�I9�I9�V�z����H�M�O�O�O�O�O��s�)�3�3

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists