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

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


��Qc@s�dZddlZddlZddlmZddlmZddlmZdZ	dej
ejfd��YZd	�Z
ed
kr�ee
��ndS(sTests for distutils.text_file.i�N(tTextFile(tsupport(trun_unittestsE# test file

line 3 \
# intervening comment
  continues on next line
tTextFileTestCasecBseZd�ZRS(csZdddddg}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_input2sstest.txttwtstrip_commentsitskip_blankst	lstrip_wst	rstrip_wsis
no processingisstrip commentsisstrip blanksisdefault processingt
join_linesisjoin lines without collapsingt
collapse_joinisjoin lines with collapsing(	tmkdtemptostpathtjointopentwritet	TEST_DATAtcloseR(Rtresult1tresult2tresult3tresult4tresult5tresult6Rttmpdirtfilenametout_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>sX	

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.