403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_textwrap.cpython-313.opt-2.pyc
�

��i����^�SSKrSSKJrJrJrJrJrJr "SS\R5r	"SS\	5r
"SS\	5r"S	S
\	5r"SS\	5r
"S
S\	5r"SS\R5r"SS\R5r"SS\	5r\S:Xa\R&"5 gg)�N)�TextWrapper�wrap�fill�dedent�indent�shortenc�,�\rSrSrSrSrSrSrSrg)�BaseTestCase�c��[U[5(aS/n[[U55HnUR	SX1U4-5 M U(aSRU5nU$SnU$[U[5(aS[U5-nW$)Nz  %d: %r�
z
  no linesz  %s
)�
isinstance�list�range�len�append�join�str�repr)�self�textin�result�is    �'C:\Python313\\Lib\test\test_textwrap.py�show�BaseTestCase.shows����f�d�#�#��F��3�v�;�'���
�
�j�A�a�y�>�9�:�(�*0�T�Y�Y�v�&�F��
�7C�F��
����
$�
$���V��,�F��
�c
�t�URXSURU5<SURU5<35 g)Nz
expected:
z

but got:
)�assertEqualr)rr�expects   r�check�BaseTestCase.checks0��������	�	�&�!�4�9�9�V�#4�
6�	7rc�>�[X40UD6nURXS5 g�N)rr!�r�text�widthr �kwargsrs      r�
check_wrap�BaseTestCase.check_wrap#s���d�,�V�,���
�
�6�"rc�n�URRU5nURX2SU<SU<35 g)Nz

expected z

but got  )�wrapper�_splitr)rr&r rs    r�check_split�BaseTestCase.check_split's2�����$�$�T�*�������*0�&�:�	;r�N)	�__name__�
__module__�__qualname__�__firstlineno__rr!r)r.�__static_attributes__r0rrr
r
s���7�
#�;rr
c���\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSr Sr!S r"g!)"�WrapTestCase�.c� �[SS9Ulg)N�-)r')rr,�rs r�setUp�WrapTestCase.setUp0s��"��,��rc��SnURUS/SQ5 URUSSS/5 URUSU/5 g)N�=Hello there, how are you this fine day?  I'm glad to hear it!���Hello there,�how are you�	this finez	day?  I'mzglad to hearzit!�*z'Hello there, how are you this fine day?zI'm glad to hear it!�P�r)�rr&s  r�test_simple�WrapTestCase.test_simple3sP��O������b� �	!�	
����b�B�/�1�	2�	
����b�4�&�)rc�N�URSS/5 URSS/SS9 g)N��F��drop_whitespacerGr;s r�test_empty_string�WrapTestCase.test_empty_stringDs&������A�r�"�����A�r�5��9rc�N�URSS/SS9 URSS/SSS9 g)NrLrM�++��initial_indentF)rUrOrGr;s r�%test_empty_string_with_initial_indent�2WrapTestCase.test_empty_string_with_initial_indentIs,������A�r�$��7�����A�r�$���Nrc�*�Sn/SQn[SSS9nURU5nURXB5 URU5nURUSR	U55 SnS/nURUS	U5 S
nS/nURUS	USS
9 g)Nz�This is a paragraph that already has
line breaks.  But some of its lines are much longer than the others,
so it needs to be wrapped.
Some lines are 	tabbed too.
What a mess!
)z)This is a paragraph that already has linez'breaks.  But some of its lines are muchz)longer than the others, so it needs to bez-wrapped.  Some lines are  tabbed too.  What azmess!r:T��fix_sentence_endingsr
z	Test	default		tabsize.z(        Test    default         tabsize.rFz	Test	custom		tabsize.z     Test    custom      tabsize.�)�tabsize)rrr!rrr))rr&r r,rs     r�test_whitespace�WrapTestCase.test_whitespaceNs��������b�t�<�����d�#���
�
�6�"����d�#���
�
�6�4�9�9�V�,�-�,��<�=������b�&�)�+��4�5������b�&�!��4rc��[SSS9nSnS/nURURU5U5 SnS/nURURU5U5 SnURURU5U5 S	nS
/nURURU5U5 SUl/SQnURURU5U5 S
n/SQnURURU5U5 SUlS/nURURU5U5 SnS/nURURU5U5 g)N�<TrYz$A short line. Note the single space.z%A short line.  Note the single space.z Well, Doctor? What do you think?z!Well, Doctor?  What do you think?z Well, Doctor?
What do you think?z)I say, chaps! Anyone for "tennis?"
Hmmph!z+I say, chaps!  Anyone for "tennis?"  Hmmph!�)z
I say, chaps!zAnyone for "tennis?"zHmmph!z1And she said, "Go to hell!"
Can you believe that?)zAnd she said, "Go tozhell!"  Can youz
believe that?z2And she said, "Go to hell!"  Can you believe that?zFile stdio.h is nice.)rr!rr')rr,r&r s    r�test_fix_sentence_endings�&WrapTestCase.test_fix_sentence_endingsns,���b�t�<��
6��9�:���
�
�7�<�<��%�v�.�
2��5�6���
�
�7�<�<��%�v�.�2���
�
�7�<�<��%�v�.�;��?�@���
�
�7�<�<��%�v�.���
�D���
�
�7�<�<��%�v�.�C��#��	
�
�
�7�<�<��%�v�.���
�F�G���
�
�7�<�<��%�v�.�&��)�*���
�
�7�<�<��%�v�.rc�Z�SnURUSSS/5 URUSS/5 g)NzThis is a
short paragraph.razThis is a shortz
paragraph.�(zThis is a short paragraph.rGrHs  r�test_wrap_short�WrapTestCase.test_wrap_short�s8��-������b�#4�#/�#1�	2�����b�#?�"@�Arc�V�SnURUSS/5 URUSS/SS9 g)NzThis is a short line.�z(1) This is a short line.z(1) rTrGrHs  r�test_wrap_short_1line�"WrapTestCase.test_wrap_short_1line�s;��'������b�#:�";�<�����b�#>�"?�'-�	�	/rc�|�SnURUSSS/5 URUSSS/5 URUSSS/5 S	RS
5nURUSUSS
9 URX5 URSS/5 URSS/5 URSSRS
55 g)NzBthis-is-a-useful-feature-for-reformatting-posts-from-tim-peters'lyrezthis-is-a-useful-feature-for-z%reformatting-posts-from-tim-peters'ly�)rEz*this-is-a-useful-feature-for-reformatting-zposts-from-tim-peters'lyzLthis-|is-|a-|useful-|feature-|for-|reformatting-|posts-|from-|tim-|peters'ly�|�F��break_long_wordsze-mailzJelly-Ozhalf-a-crownzhalf-|a-|crown)r)�splitr.�rr&r s   r�test_hyphenated�WrapTestCase.test_hyphenated�s���8��	
����b�8�@�B�	C�	
����b�8�@�B�	C�	
����b�E�3�5�	6�>�?D�u�S�z�	�����a��%��@�����&�����H�:�.�����Y�K�0�����)9�)?�)?��)D�Erc�\�SnURUS/SQ5 URUSSS/5 URUSUR5SS	9 S
nURUSSS
/5 URUSSS
/5 URUSS
/5 URUSUR5SS	9 g)NzRPython 1.0.0 was released on 1994-01-26.  Python 1.0.1 was
released on 1994-02-15.ri)zPython 1.0.0 was released onz1994-01-26.  Python 1.0.1 waszreleased on 1994-02-15.rez(Python 1.0.0 was released on 1994-01-26.z(Python 1.0.1 was released on 1994-02-15.roFrpzI do all my shopping at 7-11.�zI do all my shopping atz7-11.��)r)rrrHs  r�test_hyphenated_numbers�$WrapTestCase.test_hyphenated_numbers�s���*��	
����b�#>�	?�	
����b�#M�#M�#O�	P�����a�������F�.������b�#<�#*�#,�	-�����b�#<�#*�#,�	-�����b�#B�"C�D�����a�������Frc��SnURUSSS/5 URUSSS/5 SS	/nURUS
U5 URUSU5 URUSS/5 S
n/SQnURUSU5 URUSU5 /SQnURUSU5 URUSU5 SS/nURUSU5 URUSU5 SS/nURUSU5 URUSU5 Sn/SQnURX5 Sn/SQnURX5 g)Nz$Em-dashes should be written -- thus.rwzEm-dashes should bezwritten -- thus.ryzEm-dashes should be writtenz-- thus.zEm-dashes should be written --zthus.ri�#�$z%You can also do--this or even---this.)zYou can also doz--this or even�---this.�r)zYou can also do--zthis or even---�this.��zYou can also do--this or evenr�z You can also do--this or even---r�� z7Here's an -- em-dash and--here's another---and another!)zHere's� �anr��--r�zem-�dashr��andr�zhere'sr��anotherz---r�r�zanother!zand then--bam!--he was gone)r�r��thenr�zbam!r��her��wasr��gone�r)r.rss   r�test_em_dash�WrapTestCase.test_em_dash�sq��5������b�.�+�-�	.�	
����b�6�#�%�	&�3��������b�&�)�����b�&�)�����b�?�@�	B�
7����	
����b�&�)�����b�&�)���	
����b�&�)�����b�&�)�1��������b�&�)�����b�&�)�4��������b�&�)�����b�&�)�I��*��	
����&�,��1������&rc��SnURUS/SQ5 URUS/SQ5 SS/nURUSU5 URUS	U5 URUS
U5 URUSU5 SS
/nURUSU5 URUSU5 SS/nURUSU5 Sn/SQnURX5 g)Nz<You should use the -n option, or --dry-run in its long form.ra)zYou should use thez-n option, or --dry-zrun in its longzform.�)zYou should use the -nzoption, or --dry-run�in its long form.z You should use the -n option, orz--dry-run in its long form.r��"r}�&z'You should use the -n option, or --dry-zrun in its long form.�'rmz*You should use the -n option, or --dry-runr�rEz'the -n option, or --dry-run or --dryrun)�ther�z-nr�zoption,r��orr�z--dry-�runr�r�r�z--dryrunr�rss   r�test_unix_options�WrapTestCase.test_unix_optionss���N������b�"�	#�
	
����b�.�	/�5�/�1������b�&�)�����b�&�)�����b�&�)�����b�&�)�;�)�+������b�&�)�����b�&�)�>�%�'������b�&�)�9��?������&rc��URS/SQ5 URS/SQ5 URS/SQ5 URSS/5 URSS/5 URS	S
S/5 URS/S
Q5 g)Nzwhat the--hey!)�whatr�r�r�zhey!z
what the--)r�r�zthe--zwhat the--.)r�r�zthe--.z	--text--.z--optionz--option-opt�	--option-�optzfoo --option-opt bar)�foor�r�r�r��bar�r.r;s r�test_funky_hyphens�WrapTestCase.test_funky_hyphens3s���	
���)�+M�N�����'=�>�����(?�@�����{�m�4�	
����j�\�2�����+�u�)=�>����/�E�	Grc���URS/SQ5 URS/SQ5 URS/SQ5 URS/SQ5 URS	S
RS55 g)Nzthe 'wibble-wobble' widget)r�r�z'wibble-zwobble'r��widgetzthe "wibble-wobble" widget)r�r�z"wibble-zwobble"r�r�zthe (wibble-wobble) widget)r�r�z(wibble-zwobble)r�r�zthe ['wibble-wobble'] widget)r�r�z	['wibble-zwobble']r�r�zwhat-d'you-call-it.zwhat-d'you-|call-|it.rn)r.rrr;s r�test_punct_hyphens�WrapTestCase.test_punct_hyphensDsy��	
���5�K�	M����5�K�	M����5�K�	M����7�M�	O�	
���.�0�6�6�s�;�	=rc�|�URS/SQ5 URS/SQ5 URS/SQ5 g)Nzfoo (--option) bar)r�r�z
(--option)r�r�z
foo (bar) baz)r�r�z(bar)r��bazzblah (ding dong), wubba)�blahr�z(dingr�zdong),r��wubbar�r;s r�test_funky_parens�WrapTestCase.test_funky_parensYsD��	
���-�?�	A�	
����:�	<����2�(�	)rc�0�SnURUS/SQSS9 g)Nz0 This is a    sentence with     much whitespace.�
)z
 This is a�    z	sentence z	with     z
much whitezspace.FrNrGrHs  r�test_drop_whitespace_false�'WrapTestCase.test_drop_whitespace_falsefs'��B������b�>�(-�	�	/rc�*�URSSS/SS9 g)N�   rMFrNrGr;s r�*test_drop_whitespace_false_whitespace_only�7WrapTestCase.test_drop_whitespace_false_whitespace_onlyos������q�5�'�5��Arc�,�URSSS/SSS9 g)Nr�rM�     F�  )rOrUrGr;s r�6test_drop_whitespace_false_whitespace_only_with_indent�CWrapTestCase.test_drop_whitespace_false_whitespace_only_with_indentss"��	
����q�7�)�U�'+�	�	-rc�*�URSS/5 g)Nr�rMrGr;s r�$test_drop_whitespace_whitespace_only�1WrapTestCase.test_drop_whitespace_whitespace_onlyys������a��$rc�Z�SnURUSS/5 URUSSS/5 g)Nz, This is a sentence with leading whitespace.�2riz This is a sentence withzleading whitespace.rGrHs  r�'test_drop_whitespace_leading_whitespace�4WrapTestCase.test_drop_whitespace_leading_whitespace}s:��
>������b�G�H�	J�����b�3�5J�K�	Mrc�Z�SnURUS/SQSS9 URUSSS/5 g)Nzabcd    efghrM)�abcdr��efghFrNr�r�rGrHs  r�$test_drop_whitespace_whitespace_line�1WrapTestCase.test_drop_whitespace_whitespace_line�s9��������a�!9�(-�	�	/�����a�&�&�!1�2rc�(�URSS/SS9 g)Nr�rMrSrTrGr;s r�0test_drop_whitespace_whitespace_only_with_indent�=WrapTestCase.test_drop_whitespace_whitespace_only_with_indent�s��	
����a��D��9rc�.�URSSSS/SSS9 g)Nz	abcd efghrMz  abcdz  efghr��rU�subsequent_indentrGr;s r�&test_drop_whitespace_whitespace_indent�3WrapTestCase.test_drop_whitespace_whitespace_indent�s&��	
����Q��8�(<�'+�t�	�	Erc�f�SnURRU5nURU/SQ5 g)Nz0Hello there -- you goof-ball, use the -b option!)�Hellor��therer�r�r��your�zgoof-zball,r��user�r�r�z-br�zoption!)r,r-r!)rr&rs   r�
test_split�WrapTestCase.test_split�s3��B�����$�$�T�*���
�
�6�K�	Lrc�X�SnURUSSS/SS9 URUSSS/S	S9 g)
Nz
yaba daba-door�z
yaba daba-�dooT��break_on_hyphens�yabazdaba-dooFrGrHs  r�test_break_on_hyphens�"WrapTestCase.test_break_on_hyphens�sE��������b�<��"7�)-�	�	/�����b�6�:�"6�).�	�	0rc�x�SnUR[[US5 UR[[US5 g)NzWhatever, it doesn't matter.r���)�assertRaises�
ValueErrorrrHs  r�test_bad_width�WrapTestCase.test_bad_width�s/��-�����*�d�D�!�4����*�d�D�"�5rc�2�SnURUS/SQ5 g)NuDie Empfänger-Auswahl�
)�DieuEmpfänger-�AuswahlrGrHs  r�test_no_split_at_umlaut�$WrapTestCase.test_no_split_at_umlaut�s��)������b�"E�Frc�2�SnURUSSS/5 g)Nuaa ää-ää�uaa ää-uäärGrHs  r�test_umlaut_followed_by_dash�)WrapTestCase.test_umlaut_followed_by_dash�s��%������a�.�*�!=�>rc�X�SnURUS/SQSS9 URUS/SQSS9 g)Nu,This is a sentence with non-breaking space.ra)�This is a sentence�	with non-ubreaking space.Tr�)r��withunon-breaking space.FrGrHs  r�test_non_breaking_space�$WrapTestCase.test_non_breaking_space�sH��M������b�=�*.�		�	/�	
����b�A�*/�		�	0rc�X�SnURUS/SQSS9 URUS/SQSS9 g)Nu-This is a sentence with non-breaking space.ra)r�r�ubreaking space.Tr�)r�r�unon-breaking space.FrGrHs  r�test_narrow_non_breaking_space�+WrapTestCase.test_narrow_non_breaking_space�sM��2��	
����b�D�*.�		�	/�	
����b�H�*/�		�	0r)r,N)#r1r2r3r4r<rIrPrVr]rbrfrjrtrzr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r5r0rrr7r7.s���-�*�":�
O�
5�@(/�TB�/�F�4G�(4'�n '�DG�"=�*)�/�B�-�%�	M�3�:�E�	L�0�6�G�?�
0�0rr7c�0�\rSrSrSrSrSrSrSrSr	g)	�MaxLinesTestCasei�r?c�z�URURSS/SS9 URURSS/SS9 URURSSS/SS9 URURS	SS
/SS9 URURSUR/SS9 URURS/SQS
S9 g)Nr@zHello [...]r��	max_linesrorBz	how [...]�r�z
how are [...]rFrArM�r)r&r;s rrI�MaxLinesTestCase.test_simple�s�������	�	�2�&��"#�	�	%�	
����	�	�2�&��"#�	�	%�	
����	�	�2�'�$�&�"#�	�	%�	
����	�	�2�'�(�*�"#�	�	%�	
����	�	�2��	�	�{�a��@�����	�	�2� �#$�	�	%rc��URURS/SQSS9 URURSSS/SS9 URURS	-S/S
QSS9 g)Nr@)rBrCrDz
day? [...]r[r�rMr��[...]r�z
          rArr;s r�test_spaces�MaxLinesTestCase.test_spaces�sx������	�	�2�'�#$�	�	%�	
����	�	�1� � �"�"#�	�	%�
	
����	�	�H�,�b� �#$�	�	%rc
�f�URURSS/SSS9 URURSSS/SSS9 UR[5 [	URS	S
SSS9 SSS5 UR[5 [	URS	S
SSS
9 SSS5 URURS	SS/SS
SSS9 URURS	S/SSS
SS9 URURSUR/SS9 g!,(df   N�=f!,(df   N�=f)Nr@zHello...roz...�r��placeholderrBz
how are...r�rr�z [truncated]...)rUr�r)r�r�rz    Hello there,z  [truncated]...r�)r�rUr�rrFa�........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................�r)r)r&r�r�rr;s r�test_placeholder�!MaxLinesTestCase.test_placeholders=������	�	�2�#��"#�$)�	�	+�	
����	�	�2�'�%�'�"#�$)�		�	+��
�
�z�
*�����B�v��*;�
=�+��
�
�z�
*�����B�&��*;�
=�+�	
����	�	�2�+�+�-�"#�'-�*.�$5�
	�	7�	
����	�	�2�+�,�"#�'+�*0�$5�	�	7�	
����	�	�2��	�	�{�
��K�'+�
*��+�
*�s�D�D"�
D�"
D0c�2�SnURUSSS/SSS9 g)Nz1Good grief Python features are advancing quickly!r@z
Good griefzPython*****�z*****rrGrHs  r�test_placeholder_backtrack�+MaxLinesTestCase.test_placeholder_backtrack2s-��
C������b�%�}�5�"#�$+�	�	-rr0N)
r1r2r3r4r&rIrr
rr5r0rrr�r��s��J�D�%�2%�.L�@	-rr�c�,�\rSrSrSrSrSrSrSrg)�LongWordTestCasei>c�0�[5UlSUlg)Nz]Did you say "supercalifragilisticexpialidocious?"
How *do* you spell that odd word, anyways?
)rr,r&r;s rr<�LongWordTestCase.setUp?s��"�}�����	rc���URURS/SQ5 URURSSS/5 URSS/SQS	S
9 URURS/SQ5 g)
Nri)zDid you say "supercalifragiliszticexpialidocious?" How *do*zyou spell that odd word,�anyways?r�z1Did you say "supercalifragilisticexpialidocious?"z*How *do* you spell that odd word, anyways?z----------hellor�)z
----------z               hz               e�               lrz               oz               )r�r@)	�Did you say�"supercalifr�agilisticexpzialidocious?z
" How *do*z	you spellzthat oddzword,rrr;s r�test_break_long� LongWordTestCase.test_break_longFs|��	
����	�	�2�%�	&�
	
����	�	�2�L�E�G�	H�	
�����-�-3�	�	4�	
����	�	�2�%�		&rc��SURlSURl/SQnURRUR5nURX!5 [URSSS9nURX!5 g)Nrri)rz%"supercalifragilisticexpialidocious?"zHow *do* you spell that oddzword, anyways?)r'rq)r,rqr'rr&r!�rr rs   r�test_nobreak_long�"LongWordTestCase.test_nobreak_longjsg��()����%��������
���"�"�4�9�9�-���
�
�6�"��d�i�i�r�A�>���
�
�6�"rc�@�URURS/SQSS9 g)Nr@)rrrrr[r�rr;s r�test_max_lines_long�$LongWordTestCase.test_max_lines_longzs%������	�	�2�"�#$�	�	%r)r&r,N)	r1r2r3r4r<rrr!r5r0rrrr>s���"&�H#� %rrc�2�\rSrSrSrSrSrSrSrSr	g)	�LongWordWithHyphensTestCasei�c�>�[5UlSUlSUlg)NzOWe used enyzme 2-succinyl-6-hydroxy-2,4-cyclohexadiene-1-carboxylate synthase.
zC1234567890-1234567890--this_is_a_very_long_option_indeed-good-bye"
)rr,�text1�text2r;s rr<�!LongWordWithHyphensTestCase.setUp�s��"�}�����
���
rc���SS/nURURSU5 /SQnURURSU5 /SQnURURSU5 g)Nz(We used enyzme 2-succinyl-6-hydroxy-2,4-z&cyclohexadiene-1-carboxylate synthase.r�)
�We usedz	enyzme 2-z	succinyl-z
6-hydroxy-z2,4-�
cyclohexadziene-1-�
carboxylat�e�	synthase.r���
1234567890z
-123456789z
0--this_is�
_a_very_lo�
ng_option_zindeed-z	good-bye"�r)r&r'�r�expecteds  r�test_break_long_words_on_hyphen�;LongWordWithHyphensTestCase.test_break_long_words_on_hyphen�sZ��>�<�>������
�
�B��1�M������
�
�B��1�:������
�
�B��1rc���SS/nURURSUSS9 /SQnURURSUSS9 /SQnURURSU5 g)	Nz2We used enyzme 2-succinyl-6-hydroxy-2,4-cyclohexadziene-1-carboxylate synthase.r�Fr�)r*z
enyzme 2-sz
uccinyl-6-z
hydroxy-2,z
4-cyclohexz
adiene-1-c�
arboxylater.r�r/r3r4s  r�#test_break_long_words_not_on_hyphen�?LongWordWithHyphensTestCase.test_break_long_words_not_on_hyphen�sb��H�2�4������
�
�B��5��I�K������
�
�B��5��I�:������
�
�B��1rc���/SQnURURSUSS9 /SQnURURSUSS9 /SQnURURSU5 g)N�zWe used enyzme�52-succinyl-6-hydroxy-2,4-cyclohexadiene-1-carboxylater.r�Frp�r*�enyzmer>r.r�r/r3r4s  r�'test_break_on_hyphen_but_not_long_words�CLongWordWithHyphensTestCase.test_break_on_hyphen_but_not_long_words�s_��!��	
����
�
�B��5��I�!��	
����
�
�B��5��I�:������
�
�B��1rc���/SQnURURSUSSS9 /SQnURURSUSSS9 /SQnURURSU5 g)Nr=r�F)rqr�r?r�r/r3r4s  r�*test_do_not_break_long_words_or_on_hyphens�FLongWordWithHyphensTestCase.test_do_not_break_long_words_or_on_hyphens�sq��!��	
����
�
�B��).�).�	�	0�!��	
����
�
�B��).�).�	�	0�:������
�
�B��1r)r&r'r,N)
r1r2r3r4r<r6r:rArDr5r0rrr$r$�s���2�2�2�"2rr$c�,�\rSrSrSrSrSrSrSrg)�IndentTestCasesi�c��SUlg)NznThis paragraph will be filled, first without any indentation,
and then with some (including a hanging indent).�r&r;s rr<�IndentTestCases.setUp�s��4��	rc�V�Sn[URS5nURX!5 g)NznThis paragraph will be filled, first
without any indentation, and then with
some (including a hanging indent).re�rr&r!rs   r�	test_fill�IndentTestCases.test_fill�s'��&��
�d�i�i��$���
�
�6�"rc���/SQn[URSSS9nURX!5 SRU5n[	URSSS9nURX!5 g)N)z#     This paragraph will be filled,z'first without any indentation, and thenz'with some (including a hanging indent).rer�rTr
)rr&r!rrrs   r�test_initial_indent�#IndentTestCases.test_initial_indent�sU��=���d�i�i��G�<���
�
�6�"����6�"���d�i�i��G�<���
�
�6�"rc�V�Sn[URSSSS9nURX!5 g)Nz~  * This paragraph will be filled, first
    without any indentation, and then
    with some (including a hanging
    indent).rez  * r�r�rLrs   r�test_subsequent_indent�&IndentTestCases.test_subsequent_indent�s/�����d�i�i��%+�v�G���
�
�6�"rrIN)	r1r2r3r4r<rMrPrSr5r0rrrGrG�s��4�	#�#�#rrGc�>�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�DedentTestCasei�c�:�URU[U55 gr$�rrrHs  r�assertUnchanged�DedentTestCase.assertUnchangeds������v�d�|�,rc��SnURU5 SnURU5 SnURU5 SnURU5 g)Nz,Hello there.
How are you?
Oh good, I'm glad.zHello there.

Boo!z Hello there.
  This is indented.zHello there.

  Boo!
)rYrHs  r�test_dedent_nomargin�#DedentTestCase.test_dedent_nomarginsT��?�����T�"�&�����T�"�3�����T�"�*�����T�"rc��SnSnURU[U55 SnSnURU[U55 SnSnURU[U55 g)Nz'  Hello there.
  How are ya?
  Oh good.z!Hello there.
How are ya?
Oh good.z)  Hello there.

  How are ya?
  Oh good.
z#Hello there.

How are ya?
Oh good.
z+  Hello there.
  
  How are ya?
  Oh good.
rXrss   r�test_dedent_even�DedentTestCase.test_dedent_evensa��:��6���������.�?��:���������.�A��:���������.rc��SnSnURU[U55 SnSnURU[U55 SnSnURU[U55 g)NzK        def foo():
            while 1:
                return foo
        z+def foo():
    while 1:
        return foo
z  Foo
    Bar

   Baz
zFoo
  Bar

 Baz
z  Foo
    Bar
 
   Baz
rXrss   r�test_dedent_uneven�!DedentTestCase.test_dedent_uneven%sf����
��
	
�������.�,��'���������.�-��'���������.rc��SnSnURU[U55 SnSnURU[U55 SnSnURU[U55 g)Nz     Foo
    Bar
z	 Foo
Bar
z     Foo

    Bar
z
 Foo

Bar
z     Foo
    
    Bar
rXrss   r�test_dedent_declining�$DedentTestCase.test_dedent_declining=s`��$�����������.�'�� ���������.�+�� ���������.rc�x�SnSnURU[U55 URU[U55 g)Nz  hello	there
  how are	you?zhello	there
how are	you?rXrss   r�"test_dedent_preserve_internal_tabs�1DedentTestCase.test_dedent_preserve_internal_tabsNs6��0��.���������.�	
�������0rc�~�SnURU5 SnURU5 SnSnURU[U55 SnURU[U55 SnURU[U55 SnSnURU[U55 S	nS
nURU[U55 g)Nz  hello there
	how are you?z!        hello there
	how are you?z	hello there
	how are you?zhello there
how are you?z  	hello there
  	how are you?z"  	  hello there
  	  how are you?z   	hello there
  	  how are you?zhello there
  how are you?z2  	hello there
   	how are you?
 	I'm fine, thanksz/ 	hello there
  	how are you?
	I'm fine, thanks)rYrrrss   r� test_dedent_preserve_margin_tabs�/DedentTestCase.test_dedent_preserve_margin_tabsZs���.�����T�"�5�����T�"�/��,���������.�2���������.�6���������.�4��.���������.�I��G���������.rr0N)r1r2r3r4rYr\r_rbrerhrkr5r0rrrVrV�s%��-�#�"/� /�0/�"1�/rrVc�d�\rSrSrSr\S-rSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrg)�IndentTestCaseix)�Hi.
This is a test.
Testing.zHi.
This is a test.

Testing.z
Hi.
This is a test.
Testing.
)� Hi.
This is a test.
Testing.
z#
Hi.
This is a test.

Testing.

c�b�URHnUR[US5U5 M! g�NrL��CASESrrrHs  r�test_indent_nomargin_default�+IndentTestCase.test_indent_nomargin_default�s'���J�J�D����V�D�"�-�t�4�rc�d�URH nUR[USS5U5 M" grrrsrHs  r�%test_indent_nomargin_explicit_default�4IndentTestCase.test_indent_nomargin_explicit_default�s+���J�J�D����V�D�"�d�3�T�:�rc�j�SnURH nUR[USU5U5 M" g)Nc��g�NTr0��lines r�<lambda>�?IndentTestCase.test_indent_nomargin_all_lines.<locals>.<lambda>����rrLrs�r�	predicater&s   r�test_indent_nomargin_all_lines�-IndentTestCase.test_indent_nomargin_all_lines�s0��&�	��J�J�D����V�D�"�i�8�$�?�rc�j�SnURH nUR[USU5U5 M" g)Nc��g)NFr0r}s rr�5IndentTestCase.test_indent_no_lines.<locals>.<lambda>�s��rr�rsr�s   r�test_indent_no_lines�#IndentTestCase.test_indent_no_lines�s.��&�	��J�J�D����V�D�&�)�<�d�C�rc	�t�URH(nUR[[US55U5 M* g)Nr���ROUNDTRIP_CASESrrrrHs  r�test_roundtrip_spaces�$IndentTestCase.test_roundtrip_spaces��.���(�(�D����V�F�4��$8�9�4�@�)rc	�t�URH(nUR[[US55U5 M* g)Nz		r�rHs  r�test_roundtrip_tabs�"IndentTestCase.test_roundtrip_tabs�r�rc	�t�URH(nUR[[US55U5 M* g)Nz 	  	 r�rHs  r�test_roundtrip_mixed�#IndentTestCase.test_roundtrip_mixed�s.���(�(�D����V�F�4��$<�=�t�D�)rc��SnSn[URU5H up4UR[X15U5 M" g�Nr�)�"  Hi.
  This is a test.
  Testing.z#  Hi.
  This is a test.

  Testing.z$
  Hi.
  This is a test.
  Testing.
�&  Hi.
  This is a test.
  Testing.
z)
  Hi.
  This is a test.

  Testing.

��ziprtrr�r�prefixr5r&r s     r�test_indent_default�"IndentTestCase.test_indent_default�s<����
�� ��
�
�H�5�L�D����V�D�1�6�:�6rc��SnSn[URU5H!up4UR[X1S5U5 M# gr�r�r�s     r�test_indent_explicit_default�+IndentTestCase.test_indent_explicit_default�s>����
�� ��
�
�H�5�L�D����V�D�$�7��@�6rc��SnSnSn[URU5H!upEUR[XAU5U5 M# g)Nr�)r�z%  Hi.
  This is a test.
  
  Testing.z&  
  Hi.
  This is a test.
  Testing.
r�z/  
  Hi.
  This is a test.
  
  Testing.
  
c��gr|r0r}s rr�6IndentTestCase.test_indent_all_lines.<locals>.<lambda>�r�rr��rr�r5r�r&r s      r�test_indent_all_lines�$IndentTestCase.test_indent_all_lines�sC����
��&�	���
�
�H�5�L�D����V�D�)�<�f�E�6rc��SnSnSn[URU5H!upEUR[XAU5U5 M# g)Nr�)rozHi.
This is a test.
  
Testing.z   
Hi.
This is a test.
Testing.
rpz)  
Hi.
This is a test.
  
Testing.
  
c�,�UR5(+$r$)�stripr}s rr�8IndentTestCase.test_indent_empty_lines.<locals>.<lambda>�s
��T�Z�Z�\�!1rr�r�s      r�test_indent_empty_lines�&IndentTestCase.test_indent_empty_lines�sC����
��2�	���
�
�H�5�L�D����V�D�)�<�f�E�6rr0N)r1r2r3r4r�rtrurxr�r�r�r�r�r�r�r�r�r5r0rrrnrnxsY��
�O�
��
�E�5�
;�@�D�A�
A�
E�
;�$A�$F�&Frrnc�>�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�ShortenTestCasei�c�>�[X40UD6nURXS5 gr$)rr!r%s      r�
check_shorten�ShortenTestCase.check_shortens����/��/���
�
�6�"rc��SnURUSS5 URU[U5U5 URU[U5S-
S5 g)N�<Hello there, how are you this fine day? I'm glad to hear it!�zHello there, [...]roz9Hello there, how are you this fine day? I'm glad to [...]�r�rrHs  rrI�ShortenTestCase.test_simplesO��M�����4��%9�:����4��T��D�1����4��T��Q��
 �	!rc���SnURUSSSS9 URUSSSS9 URUSSS	S9 URU[U5USS9 URU[U5S
-
SSS9 g)Nr�r�zHello there,$$z$$r	r�zHello there, how$$zHello there, $$z $$roz:Hello there, how are you this fine day? I'm glad to hear$$r�rHs  rr
� ShortenTestCase.test_placeholders���M�����4��%5�4��H����4��%9�t��L����4��%6�E��J����4��T��D�d��C����4��T��Q��
!�.2�	�	4rc�*�URSSS5 g)NrLrM�r�r;s rrP�!ShortenTestCase.test_empty_strings�����2�q�"�%rc���SnURUSS5 URUSS5 URSSS5 URSS	S
5 URSSS5 g)
Nz[
            This is a  paragraph that  already has
            line breaks and 	 tabs too.�>z>This is a paragraph that already has line breaks and tabs too.�=z:This is a paragraph that already has line breaks and [...]zhello      world!  r@zhello world!�zhello [...]r�rr�rHs  rr]�ShortenTestCase.test_whitespacesx��,��	
���4��4�	5�	
���4��0�	1�	
���0�"�n�E����0�"�m�D�	
���0�"�g�>rc��[SSSS9 UR[5 [SSSS9 SSS5 g!,(df   g=f)N�xxxxxxxxxxxxxxxxxxxx�z(......))r'rz	(.......))rr�r�r;s r�$test_width_too_small_for_placeholder�4ShortenTestCase.test_width_too_small_for_placeholder.s4�����z�:�
�
�
�z�
*��H�A�;�?�+�
*�
*�s	�6�
Ac�*�URSSS5 g)N�Helloo�rr�r;s r�-test_first_word_too_long_but_placeholder_fits�=ShortenTestCase.test_first_word_too_long_but_placeholder_fits3s�����8�Q��0rr0N)r1r2r3r4r�rIr
rPr]r�r�r5r0rrr�r��s&��#�!�	4�&�?�$@�
1rr��__main__)�unittest�textwraprrrrrr�TestCaser
r7r�rr$rGrVrnr�r1�mainr0rr�<module>r�s����E�E�;�8�$�$�;�<n0�<�n0�b
\-�|�\-�~B%��B%�JF2�,�F2�P.#�l�.#�fv/�X�&�&�v/�tCF�X�&�&�CF�L61�l�61�r�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit