Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/tests/test_cmd.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlZddlZddlmZmZddlmZddlm	Z	ddl
mZddlm
Z
defd	��YZd
ejfd��YZd�Zed
kr�ee��ndS(sTests for distutils.cmd.i�N(tcaptured_stdouttrun_unittest(tCommand(tDistribution(tDistutilsOptionError(tdebugtMyCmdcBseZd�ZRS(cCsdS(N((tself((s./sys/lib/python2.7/distutils/tests/test_cmd.pytinitialize_optionss(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(	RRRtobjectRRtensure_string_listtassertRaisesR(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(((RRt	TypeErrort	make_filetTruetforcetexecute(RRR#((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(RtannounceR0R1tuser_optionstdump_optionsR (RR/Rtwanted((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(
RR0t
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(RR0RR R1R8RR(RR((s./sys/lib/python2.7/distutils/tests/test_cmd.pyRPs		

cCsB|j}t|_|jd�d|_|jt|jd�dS(NR0R7R1(Rt__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(RtostpathtdirnameR@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
(
RRtdebug_printtseekR treadR(RtDEBUGtFalse(RRtstdout((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>sl	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].