��Qc@s�dZddlZddlZddlZddlmZmZmZddlm Z ddl
mZddlm
Z
dejejfd��YZd �Zed
kr�e
e��ndS(sTests for distutils.dep_util.i�N(tnewertnewer_pairwisetnewer_group(tDistutilsFileError(tsupport(trun_unittesttDepUtilTestCasecBs#eZd�Zd�Zd�ZRS(cCs�|j�}tjj|d�}tjjt�}|jtt||�|j |�|j
t|d��|j
t||��|jt||��dS(NtnewtI_dont_exist(tmkdtemptostpathtjointabspatht__file__tassertRaisesRRt
write_filet
assertTruetassertFalse(tselfttmpdirtnew_filetold_file((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyt
test_newer
s
cCs�|j�}tjj|d�}tjj|d�}tj|�tj|�tjj|d�}tjj|d�}tjjt�}tjj|d�}|j|�|j|�|j|�|jt ||g||g�|g|gf�dS(Ntsourcesttargetstonettwotfour(
R R
RRtmkdirR
RRtassertEqualR(RRRRRRtthreeR((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyttest_newer_pairwise s
cCs^|j�}tjj|d�}tj|�tjj|d�}tjj|d�}tjj|d�}tjjt�}|j|�|j|�|j|�|jt |||g|��|j
t |||g|��tj|�|jt
t |||g|�|j
t |||g|dd��|jt |||g|dd��dS(NRRRRtmissingtignoreR(R R
RRRR
RRRRRtremoveRtOSError(RRRRRRR((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyttest_newer_group1s$
(t__name__t
__module__RR R%(((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyRs cCs
tjt�S(N(tunittestt makeSuiteR(((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyt
test_suiteMst__main__(t__doc__R(R
ttimetdistutils.dep_utilRRRtdistutils.errorsRtdistutils.testsRttest.test_supportRtTempdirManagertTestCaseRR*R&(((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyt<module>sB
|