Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/distutils/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/distutils/tests/__pycache__/test_text_file.cpython-39.pyc

a

��gl
�@spdZddlZddlZddlmZddlmZddlmZdZ	Gdd�dej
ej�Zd	d
�Z
edkrlee
��dS)zTests for distutils.text_file.�N)�TextFile)�support)�run_unittestzE# test file

line 3 \
# intervening comment
  continues on next line
c@seZdZdd�ZdS)�TextFileTestCasecs�gd�}gd�}gd�}ddg}dg}dg}�fdd	�}���}tj�|d
�}	t|	d�}
z|
�t�W|
��n
|
��0t|	ddddd
�}z|dd||�W|��n
|��0t|	ddddd
�}z|dd||�W|��n
|��0t|	ddddd
�}z|dd||�W|��n
|��0t|	�}z|dd||�W|��n
|��0t|	ddddd�}z|dd||�W|��n
|��0t|	dddddd�}z|dd||�W|��n
|��0dS)N)�# test file
�
�	line 3 \
�# intervening comment
�  continues on next line
)rrr
)rrr	r
zline 3 \z  continues on next linezline 3   continues on next linezline 3 continues on next linecs|��}��||�dS�N)�	readlinesZassertEqual)�count�description�fileZexpected_result�result��self��:/usr/local/lib/python3.9/distutils/tests/test_text_file.py�
test_input2sz/TextFileTestCase.test_class.<locals>.test_inputztest.txt�wr)�strip_comments�skip_blanksZ	lstrip_ws�	rstrip_ws�z
no processing�zstrip comments�zstrip blanks�zdefault processing)rr�
join_linesr�zjoin lines without collapsing)rrrrZ
collapse_join�zjoin lines with collapsing)	�mkdtemp�os�path�join�open�write�	TEST_DATA�closer)rZresult1Zresult2Zresult3Zresult4Zresult5Zresult6rZtmpdir�filenameZout_fileZin_filerrr�
test_classsb�
�����zTextFileTestCase.test_classN)�__name__�
__module__�__qualname__r*rrrrrsrcCs
t�t�Sr)�unittestZ	makeSuiterrrrr�
test_suitegsr/�__main__)�__doc__r"r.Zdistutils.text_filerZdistutils.testsrZtest.supportrr'ZTempdirManagerZTestCaserr/r+rrrr�<module>sX

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists