Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.144.96.19
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_filecmp.pyc
�
?��cc@s�ddlZddlZddlZddlZddlZddlmZdejfd��YZdejfd��YZ	d�Z
edkr�e
�ndS(	i����N(ttest_supporttFileCompareTestCasecBs,eZd�Zd�Zd�Zd�ZRS(cCs�tj|_tjd|_tjd|_d}xF|j|j|jgD],}t|d�}|j|�|j�qKWt|jd�}|jd�|j�tj	�|_
dS(Ns-sames-diffsContents of file go here.
twsa+sAn extra line.
(RtTESTFNtnamet	name_samet	name_difftopentwritetclosettempfilet
gettempdirtdir(tselftdataRtoutput((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pytsetUps


cCs4tj|j�tj|j�tj|j�dS(N(tostunlinkRRR(R
((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyttearDownscCs�|jtj|j|j�d�|jtj|j|jdt�d�|jtj|j|jdt�d�|jtj|j|j�d�dS(NsComparing file to itself failstshallows&Comparing file to identical file fails(t
assertTruetfilecmptcmpRRtFalse(R
((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyt
test_matchings!!cCsH|jtj|j|j�d�|jtj|j|j�d�dS(Ns!Mismatched files compare as equals#File and directory compare as equal(tassertFalseRRRRR(R
((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyttest_different%s(t__name__t
__module__RRRR(((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyRs			
tDirCompareTestCasecBs,eZd�Zd�Zd�Zd�ZRS(cCsYtj�}tjj|d�|_tjj|d�|_tjj|d�|_tjjd�tjjd�k|_	d}x�|j|j|jgD]}t
j|t�tj
|�|j	r�||jkr�d}nd}ttjj||�d	�}|j|�|j�q�Wttjj|jd
�d	�}|jd�|j�dS(NRsdir-samesdir-difftAtasContents of file go here.
tFiLetfileRtfile2sAn extra file.
(R
RRtpathtjoinRtdir_sametdir_difftnormcasetcaseinsensitivetshutiltrmtreetTruetmkdirRRR	(R
ttmpdirRRtfnR((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyR,s$'
	
!
cCs4tj|j�tj|j�tj|j�dS(N(R*R+RR&R'(R
((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyRBscCs^|jtj|j|jdg�dgggfkd�|jtj|j|jdg�dgggfkd�|jtj|j|jdgdt�dgggfkd�|jtj|j|jdgdt�d�ttjj	|jd�d�}|j
d�|j�|jtj|j|jddg�dgdggfkd�dS(	NR"s#Comparing directory to itself failss!Comparing directory to same failsRR#RsDifferent contents.
s&Comparing mismatched directories fails(
RRtcmpfilesRR&RRRR$R%RR	R(R
R((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyt
test_cmpfilesGs(!!!!!

cCs/tj|j|j�}|jrL|j|j|jgdgdgg�n(|j|j|jgdgdgg�|j|j	dgk�|j|j
|jko�gkn�|j|jdgk�|j|j
gk�tj|j|j�}|j|jdgk�|j|jddgk�|j|j	dgk�|j|j
gk�|j|jdgk�|j|jdgk�|j|j
gk�ttjj|jd�d�}|jd�|j�tj|j|j�}|j|jdgk�|j|j
dgk�dS(NR"R!R#RsDifferent contents.
(RtdircmpRR&R)tassertEqualt	left_listt
right_listRtcommont	left_onlyt
right_onlyt
same_filest
diff_filesR'RRR$R%RR	(R
tdR((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyttest_dircmpcs,	+()!

(RRRRR1R<(((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyR+s			cCstjtt�dS(N(Rtrun_unittestRR(((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyt	test_main�st__main__(RRR*R
tunittestttestRtTestCaseRRR>R(((s8/usr/local/python-2.7/lib/python2.7/test/test_filecmp.pyt<module>s0%W	
© 2025 GrazzMean