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

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


��Qc@s�dZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZddlm
Z
dejejfd��YZd	�Zed
kr�e
e��ndS(sTests for distutils.file_util.i�N(t	move_filet
write_filet	copy_file(tlog(tsupport(trun_unittesttFileUtilTestCasecBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cGs=t|�dkr)|jj||�n|jj|�dS(Ni(tlent_logstappend(tselftmsgtargs((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyt_log
scCs�tt|�j�g|_tj|_|jt_|j�}t	j
j|d�|_t	j
j|d�|_
t	j
j|d�|_dS(Ntf1tf2td1(tsuperRtsetUpRRtinfotold_logR
tmkdtemptostpathtjointsourcettargett
target_dir(R
ttmp_dir((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyRs	cCs#|jt_tt|�j�dS(N(RRRRRttearDown(R
((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyRscCs<t|jd�}z|jd�Wd|j�Xt|j|jdd�g}|j|j|�t|j|jdd�t|j|jdd�d|j|jfg}|j|j|�t|j|jdd�g|_tj	|j
�t|j|j
dd�d|j|j
fg}|j|j|�dS(Ntwssome contenttverboseiismoving %s -> %s(topenRtwritetcloseRRtassertEqualRRtmkdirR(R
tftwanted((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyttest_move_file_verbosity!s"	cCs|dddg}|j�}tjj|d�}t||�gt|�j�D]}|j�^qP}|j||�dS(Ntatbtctfoo(	RRRRRR t	readlineststripR#(R
tlinestdirR+tlinetcontent((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyttest_write_file=s
+cCss|j�}tjj|d�}t|d�|j�}t||�|jtjjtjj|d���dS(NR+R1(RRRRRRt
assertTruetexists(R
tsrc_dirR+tdst_dir((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyttest_copy_fileEs

(t__name__t
__module__R
RRR'R2R7(((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyRs		
			cCs
tjt�S(N(tunittestt	makeSuiteR(((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyt
test_suiteMst__main__(t__doc__R:Rtshutiltdistutils.file_utilRRRt	distutilsRtdistutils.testsRttest.test_supportRtTempdirManagertTestCaseRR<R8(((s4/sys/lib/python2.7/distutils/tests/test_file_util.pyt<module>sB	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.