��Qc@s�dZddlZddlZddlmZmZddlmZddlm Z ddl
mZddlm
Z
defd ��YZd
ejfd��YZd�Zed
kr�ee��ndS(sTests for distutils.cmd.i�N(tcaptured_stdouttrun_unittest(tCommand(tDistribution(tDistutilsOptionError(tdebugtMyCmdcBseZd�ZRS(cCsdS(N((tself((s./sys/lib/python2.7/distutils/tests/test_cmd.pytinitialize_optionss(t__name__t
__module__R(((s./sys/lib/python2.7/distutils/tests/test_cmd.pyRstCommandTestCasecBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z RS( cCst�}t|�|_dS(N(RRtcmd(Rtdist((s./sys/lib/python2.7/distutils/tests/test_cmd.pytsetUps cCs�|j}dddg|_dddg|_t�|_d|_|jd�|jd�|jt|jd�|jt|jd �dS(
Ntoneitthreettwotoktyes_string_listtyes_string_list2tnot_string_listtnot_string_list2( RRRtobjectRRtensure_string_listtassertRaisesR(RR((s./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_ensure_string_lists
cs{�j}�jt|jdddddddd
��fd�}t|_||_|jdddd dddd�dS(Ntinfilesitoutfilettfunctargscs�j|d�dS(Nsgenerating out from in(tassertEqual(RRtexec_msgtlevel(R(s./sys/lib/python2.7/distutils/tests/test_cmd.pyt_execute.stintout(((RRt TypeErrort make_filetTruetforcetexecute(RRR#((Rs./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_make_file%s csug��fd�}|j}||_d|_d|_d d
g|_|j�dddg}|j�|�dS(Ncs�j|�dS(N(tappend(tmsgR"(tmsgs(s./sys/lib/python2.7/distutils/tests/test_cmd.pyt _announce7sitoption1Rtoption2scommand options for 'MyCmd':s
option1 = 1s
option2 = 1(soption1RR(soption2RR(RtannounceR0R1tuser_optionstdump_optionsR (RR/Rtwanted((R.s./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_dump_options4s
cCsq|j}d|_|jd�d|_|jdd�|jt|d��d|_|jt |jd�dS(NRR0R1txxxitoption3(
RR0t
ensure_stringtNoneR1t
assertTruethasattrR8RR(RR((s./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_ensure_stringDs
cCs}|j}d|_|jd�|j|jddg�ddg|_|jd�ddg|_|jt|jd �dS(
Nsok,dokR0RtdokR7twwwR1iR8(RR0RR R1R8RR(RR((s./sys/lib/python2.7/distutils/tests/test_cmd.pyRPs
cCsB|j}t|_|jd�d|_|jt|jd�dS(NR0R7R1(Rt__file__R0tensure_filenameR1RR(RR((s./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_ensure_filename]s
cCsW|j}tjjt�p!tj|_|jd�d|_|j t
|jd�dS(NR0R7R1(RtostpathtdirnameR@tcurdirR0tensure_dirnameR1RR(RR((s./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_ensure_dirnameds
cCs�|j}t��}|jd�WdQX|jd�|j|j�d�tt_zFt��}|jd�WdQX|jd�|j|j�d�Wdt t_XdS(NR7iRsxxx
(
RRtdebug_printtseekR treadR(RtDEBUGtFalse(RRtstdout((s./sys/lib/python2.7/distutils/tests/test_cmd.pyttest_debug_printks
(
R R
RRR+R6R=RBRHRO(((s./sys/lib/python2.7/distutils/tests/test_cmd.pyRs
cCs
tjt�S(N(tunittestt makeSuiteR(((s./sys/lib/python2.7/distutils/tests/test_cmd.pyt
test_suite{st__main__(t__doc__RPRCttest.test_supportRRt
distutils.cmdRtdistutils.distRtdistutils.errorsRt distutilsRRtTestCaseRRRR (((s./sys/lib/python2.7/distutils/tests/test_cmd.pyt<module>sl
|