��Qc@s�dZddlZddlZddlmZddlmZddlmZdZ dej
ejfd��YZd �Z
ed
kr�ee
��ndS(sTests for distutils.text_file.i�N(tTextFile(tsupport(trun_unittestsE# test file
line 3 \
# intervening comment
continues on next line
tTextFileTestCasecBseZd�ZRS(csZdddddg}dddg}ddddg}ddg}dg}d g}�fd
�}�j�}tjj|d�} t| d�}
z|
jt�Wd|
j�Xt| d
ddddddd�}z|dd||�Wd|j�Xt| d
ddddddd�}z|dd||�Wd|j�Xt| d
ddddddd�}z|dd||�Wd|j�Xt| �}z|dd||�Wd|j�Xt| d
ddddddd�}z|dd||�Wd|j�Xt| d
ddddddddd�}z|dd||�Wd|j�XdS( Ns# test file
s
s line 3 \
s# intervening comment
s continues on next line
sline 3 \s continues on next linesline 3 continues on next linesline 3 continues on next linecs |j�}�j||�dS(N(t readlinestassertEqual(tcounttdescriptiontfiletexpected_resulttresult(tself(s4/sys/lib/python2.7/distutils/tests/test_text_file.pyt
test_input2sstest.txttwtstrip_commentsitskip_blankst lstrip_wst rstrip_wsis
no processingisstrip commentsisstrip blanksisdefault processingt
join_linesisjoin lines without collapsingt
collapse_joinisjoin lines with collapsing( tmkdtemptostpathtjointopentwritet TEST_DATAtcloseR(Rtresult1tresult2tresult3tresult4tresult5tresult6Rttmpdirtfilenametout_filetin_file((Rs4/sys/lib/python2.7/distutils/tests/test_text_file.pyt
test_classsd (t__name__t
__module__R&(((s4/sys/lib/python2.7/distutils/tests/test_text_file.pyRscCs
tjt�S(N(tunittestt makeSuiteR(((s4/sys/lib/python2.7/distutils/tests/test_text_file.pyt
test_suitegst__main__(t__doc__RR)tdistutils.text_fileRtdistutils.testsRttest.test_supportRRtTempdirManagertTestCaseRR+R'(((s4/sys/lib/python2.7/distutils/tests/test_text_file.pyt<module>sX
|