��Qc@s�dZddlZddlmZddlmZmZddlmZddl m
Z
dejejej
fd��YZd �Zed
kr�ee��ndS(s"Tests for distutils.command.check.i�N(trun_unittest(tchecktHAS_DOCUTILS(tsupport(tDistutilsSetupErrort
CheckTestCasecBs8eZdd�Zd�Zd�Zd�Zd�ZRS(cKs�|dkri}n|j|�\}}t|�}|j�x*|j�D]\}}t|||�qMW|j�|j�|S(N(tNonetcreate_distRtinitialize_optionstitemstsetattrtensure_finalizedtrun(tselftmetadatatoptionstpkg_infotdisttcmdtnametvalue((s0/sys/lib/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�idd6dd6dd6dd
6dd6dd6dd6}|j|�}|j|jd�dS(Nitxxxturltauthortauthor_emailRtversioniitstrictuxxxuÉricunameuSomething about esszet ßtdescriptionuMore things about esszet ßtlong_description(RtassertEqualt _warningstassertRaisesR(R
RR((s0/sys/lib/python2.7/distutils/tests/test_check.pyttest_check_metadatas"
cCs�ts
dS|j�\}}t|�}d}|j|�}|jt|�d�d}|j|�}|jt|�d�dS(Nstitle
===
testistitle
=====
testi(RRRt_check_rst_dataRtlen(R
RRRtbroken_resttmsgstrest((s0/sys/lib/python2.7/distutils/tests/test_check.pyttest_check_document;scCs�ts
dSd}|jd|�\}}t|�}|j�|j|jd�idd6dd6dd6dd6dd 6|d6}|jt|j|idd
6dd6�d|d<|j|d
ddd�}|j|jd
�dS(Nstitle
===
testRiRRRRRRRtrestructuredtextutitle
=====
test ßi( RRRtcheck_restructuredtextRRR RR(R
R$RRRR((s0/sys/lib/python2.7/distutils/tests/test_check.pyttest_check_restructuredtextKs
cCs?idd6dd6}|jt|jiidd6dd6�dS(NRRRiRR((R RR(R
R((s0/sys/lib/python2.7/distutils/tests/test_check.pyttest_check_allbs
N(t__name__t
__module__RRR!R'R*R+(((s0/sys/lib/python2.7/distutils/tests/test_check.pyR
s
! cCs
tjt�S(N(tunittestt makeSuiteR(((s0/sys/lib/python2.7/distutils/tests/test_check.pyt
test_suiteist__main__(t__doc__R.ttest.test_supportRtdistutils.command.checkRRtdistutils.testsRtdistutils.errorsRtLoggingSilencertTempdirManagertTestCaseRR0R,(((s0/sys/lib/python2.7/distutils/tests/test_check.pyt<module>s ]
|