%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyc

�
5}�ac@s�dZddlZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZyddl
Z
Wnek
r�dZ
nXejje�Zde
je
jejfd��YZd	�Zed
kr�ee��ndS(s"Tests for distutils.command.check.i����N(trun_unittest(tchecktHAS_DOCUTILS(tsupport(tDistutilsSetupErrort
CheckTestCasecBszeZddd�Zd�Zejed�d��Zejed�d��Z	ejed�d��Z
d�ZRS(c
Ks�|dkri}n|dk	r=tj�}tj|�n|j|�\}}t|�}|j�x*|j�D]\}}	t|||	�quW|j	�|j
�|dk	r�tj|�n|S(N(tNonetostgetcwdtchdirtcreate_distRtinitialize_optionstitemstsetattrtensure_finalizedtrun(
tselftmetadatatcwdtoptionstold_dirtpkg_infotdisttcmdtnametvalue((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyt_runs	


cCs|j�}|j|jd�idd6dd6dd6dd6dd6}|j|�}|j|jd�|jt|jiid	d
6�|j|d
d	�}|j|jd�idd6dd6dd6dd
6dd6dd6dd6}|j|�}|j|jd�dS(Nitxxxturltauthortauthor_emailRtversioniitstrictuxxxuÉricunameuSomething about esszet ßtdescriptionuMore things about esszet ßtlong_description(RtassertEqualt	_warningstassertRaisesR(RRR((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyttest_check_metadata*s" 
swon't test without docutilscCsx|j�\}}t|�}d}|j|�}|jt|�d�d}|j|�}|jt|�d�dS(Nstitle
===

testistitle
=====

testi(R
Rt_check_rst_dataR#tlen(RRRRtbroken_resttmsgstrest((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyttest_check_documentKscCsd}|jd|�\}}t|�}|j�|j|jd�idd6dd6dd6dd6dd	6|d6}|jt|j|idd
6dd6�d|d<|j|d
ddd�}|j|jd
�d|d<|j|dtd
ddd�}|j|jd
�dS(Nstitle
===

testR"iRRRRRRR trestructuredtextutitle
=====

test ßis)title
=====

.. include:: includetest.rstR(	R
Rtcheck_restructuredtextR#R$R%RRtHERE(RR)RRRR((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyttest_check_restructuredtextZs"



!cCs�g}|jtjd��|jtjd��x�|D]�}|jd|�\}}t|�}|j�|j|�}tdk	r�|j	t
|�d�q9|j	t
|�d�|j	t|dd�d�q9WdS(Ns}            Here's some code:

            .. code:: python

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

            .. code-block:: python

                def foo():
                    pass
            R"iis0Cannot analyze code. Pygments package not found.(tappendttextwraptdedentR
RR.R'tpygmentsRR#R(tstr(Rtexample_rst_docstrest_with_codeRRRR*((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyt1test_check_restructuredtext_with_syntax_highlightus 



cCs?idd6dd6}|jt|jiidd6dd6�dS(NRRRiR R-(R%RR(RR((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyttest_check_all�s
N(t__name__t
__module__RRR&tunittestt
skipUnlessRR,R0R8R9(((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyRs	!$cCs
tjt�S(N(R<t	makeSuiteR(((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyt
test_suite�st__main__(t__doc__RR2R<ttest.test_supportRtdistutils.command.checkRRtdistutils.testsRtdistutils.errorsRR4tImportErrorRtpathtdirnamet__file__R/tLoggingSilencertTempdirManagertTestCaseRR?R:(((sC/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_check.pyt<module>s$

	�	

Zerion Mini Shell 1.0