403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
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:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_textwrap.cpython-315.pyc
R
>lqj"�c�f�]PHs]QHGsGsGsGsGsGsQQ\O2s	QQ\	2s
QQ\	2sQQ	\	2sQ
Q\	2s
QQ
\	2sQQ\O2sQQ\O2sQQ\	2s\Q6Xc\O&2P!P!)�)�TextWrapper�wrap�fill�dedent�indent�shortenc�>`�\sQs]snQsQsQsQsQsQs	Us
P!)�BaseTestCasez5Parent class with utility methods for textwrap tests.c�>�[U[2%c^,o[[U22FD#oUO	QV1U*1*2J%	U%cQOU2oU!QoU![U[2%cQ[U2*oW!)z  %d: %r�
z
  no linesz  %s
)�
isinstance�list�range�len�append�join�str�repr)�self�textin�result�is&&  �'C:\Python315\\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
�x�UOVQUOU28QUOU2802P!)z
expected:
z

but got:
)�assertEqualr)rr�expects&&&r�check�BaseTestCase.checks0��������	�	�&�!�4�9�9�V�#4�
6�	7rc�D�[V1-U@oUOVS2P!�N)rr�r�text�widthr�kwargsrs&&&&, r�
check_wrap�BaseTestCase.check_wrap#s���d�,�V�,���
�
�6�"rc�r�UOOU2oUOV2QU8QU802P!)z

expected z

but got  )�wrapper�_splitr)rr$rrs&&& r�check_split�BaseTestCase.check_split's2�����$�$�T�*�������*0�&�:�	;r�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr'r,�__static_attributes__�__classdictcell__��
__classdict__s@rr	r	s!����?��7�
#�;�;rr	c��`�\sQs].snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Us#P!) �WrapTestCasec�*�[]-Q5UmP!)�-)r%)rr*�rs&r�setUp�WrapTestCase.setUp0s��"��,��rc��QoUOU],QN2UOU]*QQ,2UOU]PU,2P!)�=Hello there, how are you this fine day?  I'm glad to hear it!z'Hello there, how are you this fine day?zI'm glad to hear it!��Hello there,�how are you�	this finez	day?  I'mzglad to hearzit!�r'�rr$s& r�test_simple�WrapTestCase.test_simple3sP��O������b� �	!�	
����b�B�/�1�	2�	
����b�4�&�)rc�X�UOP],2UOP],P
Q5P!)���drop_whitespacerEr<s&r�test_empty_string�WrapTestCase.test_empty_stringDs&������A�r�"�����A�r�5��9rc�^�UOP],QQ5UOP],QP
Q5P!)rJ�++��initial_indent)rRrLrEr<s&r�%test_empty_string_with_initial_indent�2WrapTestCase.test_empty_string_with_initial_indentIs,������A�r�$��7�����A�r�$���Nrc�:�Qo,QNo[]-P	Q5oUOU2oUOVB2UOU2oUOUQO	U22QoQ,oUOU]PU2QoQ,oUOU]PU]Q5P!)	z�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!
��fix_sentence_endingsrz	Test	default		tabsize.z(        Test    default         tabsize.z	Test	custom		tabsize.z     Test    custom      tabsize.)�tabsize)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!)rrrrrr')rr$rr*rs&    r�test_whitespace�WrapTestCase.test_whitespaceNs��������b�t�<�����d�#���
�
�6�"����d�#���
�
�6�4�9�9�V�,�-�,��<�=������b�&�)�+��4�5������b�&�!��4rc��[]<P	Q5oQoQ,oUOUOU2U2QoQ,oUOUOU2U2QoUOUOU2U2QoQ,oUOUOU2U2]Um,QNoUOUOU2U2Q	o,Q
NoUOUOU2U2]<UmQ
,oUOUOU2U2QoQ,oUOUOU2U2P!)�<rVz$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!z1And she said, "Go to hell!"
Can you believe that?z2And she said, "Go to hell!"  Can you believe that?zFile stdio.h is nice.)z
I say, chaps!zAnyone for "tennis?"zHmmph!)zAnd she said, "Go tozhell!"  Can youz
believe that?)rrrr%)rr*r$rs&   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�^�QoUOU]QQ,2UOU](Q,2P!)zThis is a
short paragraph.zThis is a shortz
paragraph.zThis is a short paragraph.rErFs& r�test_wrap_short�WrapTestCase.test_wrap_short�s8��-������b�#4�#/�#1�	2�����b�#?�"@�Arc�`�QoUOU]Q,2UOU]Q,QQ5P!)zThis is a short line.z(1) This is a short line.z(1) rQrErFs& r�test_wrap_short_1line�"WrapTestCase.test_wrap_short_1line�s;��'������b�#:�";�<�����b�#>�"?�'-�	�	/rc��QoUOU](QQ,2UOU])QQ,2UOU]*QQ,2QOQ2oUOU]UP
Q5UOV2UOQQ,2UOQ	Q	,2UOQ
QOQ22P!)zBthis-is-a-useful-feature-for-reformatting-posts-from-tim-peters'lyzthis-is-a-useful-feature-for-z%reformatting-posts-from-tim-peters'lyz*this-is-a-useful-feature-for-reformatting-zposts-from-tim-peters'lyzLthis-|is-|a-|useful-|feature-|for-|reformatting-|posts-|from-|tim-|peters'ly�|��break_long_wordsze-mailzJelly-Ozhalf-a-crownzhalf-|a-|crown)r'�splitr,�rr$rs&  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�l�QoUOU],QN2UOU](QQ,2UOU]UO2P
Q5QoUOU]QQ,2UOU]QQ,2UOU]Q,2UOU]UO2P
Q5P!)zRPython 1.0.0 was released on 1994-01-26.  Python 1.0.1 was
released on 1994-02-15.z(Python 1.0.0 was released on 1994-01-26.z(Python 1.0.1 was released on 1994-02-15.rgzI do all my shopping at 7-11.zI do all my shopping atz7-11.)zPython 1.0.0 was released onz1994-01-26.  Python 1.0.1 waszreleased on 1994-02-15.)r'rirFs& 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��QoUOU]QQ,2UOU]QQ,2QQ,oUOU]U2UOU]#U2UOU]$Q,2Qo,QNoUOU]U2UOU]U2,QNoUOU]U2UOU]U2Q
Q,oUOU]U2UOU]U2QQ	,oUOU] U2UOU]#U2Qo,QNoUOV2Q
o,QNoUOV2P!)z$Em-dashes should be written -- thus.zEm-dashes should bezwritten -- thus.zEm-dashes should be writtenz-- thus.zEm-dashes should be written --zthus.z%You can also do--this or even---this.�---this.�this.zYou can also do--this or evenz You can also do--this or even---z7Here's an -- em-dash and--here's another---and another!zand then--bam!--he was gone)zYou can also doz--this or evenrq)zYou can also do--zthis or even---rr)zHere's� �anrs�--rszem-�dashrs�andruzhere'srs�anotherz---rwrszanother!)rwrs�thenruzbam!ru�hers�wasrs�gone�r'r,rjs&  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��QoUOU],QN2UOU],Q	N2QQ,oUOU] U2UOU]"U2UOU]#U2UOU]&U2QQ,oUOU]'U2UOU])U2QQ,oUOU]*U2Qo,Q
NoUOV2P!)z<You should use the -n option, or --dry-run in its long form.�in its long form.z You should use the -n option, orz--dry-run in its long form.z'You should use the -n option, or --dry-zrun in its long form.z*You should use the -n option, or --dry-runz'the -n option, or --dry-run or --dryrun)zYou should use thez-n option, or --dry-zrun in its longzform.)zYou should use the -nzoption, or --dry-runr�)�thersz-nrszoption,rs�orrsz--dry-�runrsr�rsz--dryrunr}rjs&  r�test_unix_options�WrapTestCase.test_unix_optionss���N������b�"�	#�
	
����b�.�	/�5�/�1������b�&�)�����b�&�)�����b�&�)�����b�&�)�;�)�+������b�&�)�����b�&�)�>�%�'������b�&�)�9��?������&rc��UOQ,Q	N2UOQ,Q
N2UOQ,QN2UOQQ,2UOQQ,2UOQQQ,2UOQ,QN2P!)
zwhat the--hey!z
what the--zwhat the--.z	--text--.z--optionz--option-opt�	--option-�optzfoo --option-opt bar)�whatrsr�ruzhey!)r�rszthe--)r�rszthe--.)�foorsr�r�rs�bar�r,r<s&r�test_funky_hyphens�WrapTestCase.test_funky_hyphens3s���	
���)�+M�N�����'=�>�����(?�@�����{�m�4�	
����j�\�2�����+�u�)=�>����/�E�	Grc���UOQ,QN2UOQ,QN2UOQ,Q	N2UOQ,Q
N2UOQQOQ22P!)zthe 'wibble-wobble' widgetzthe "wibble-wobble" widgetzthe (wibble-wobble) widgetzthe ['wibble-wobble'] widgetzwhat-d'you-call-it.zwhat-d'you-|call-|it.rf)r�rsz'wibble-zwobble'rs�widget)r�rsz"wibble-zwobble"rsr�)r�rsz(wibble-zwobble)rsr�)r�rsz	['wibble-zwobble']rsr�)r,rir<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��UOQ,QN2UOQ,QN2UOQ,QN2P!)zfoo (--option) barz
foo (bar) bazzblah (ding dong), wubba)r�rsz
(--option)rsr�)r�rsz(bar)rs�baz)�blahrsz(dingrszdong),rs�wubbar�r<s&r�test_funky_parens�WrapTestCase.test_funky_parensYsD��	
���-�?�	A�	
����:�	<����2�(�	)rc�:�QoUOU]
,QNP
Q5P!)z0 This is a    sentence with     much whitespace.rK)z
 This is a�    z	sentence z	with     z
much whitezspace.rErFs& r�test_drop_whitespace_false�'WrapTestCase.test_drop_whitespace_falsefs'��B������b�>�(-�	�	/rc�4�UOQ]Q,P
Q5P!)�   rKrEr<s&r�*test_drop_whitespace_false_whitespace_only�7WrapTestCase.test_drop_whitespace_false_whitespace_onlyos������q�5�'�5��Arc�6�UOQ]Q,P
QQ5P!)r��     �  )rLrRrEr<s&r�6test_drop_whitespace_false_whitespace_only_with_indent�CWrapTestCase.test_drop_whitespace_false_whitespace_only_with_indentss"��	
����q�7�)�U�'+�	�	-rc�.�UOQ],2P!)r�rEr<s&r�$test_drop_whitespace_whitespace_only�1WrapTestCase.test_drop_whitespace_whitespace_onlyys������a��$rc�^�QoUOU]2Q,2UOU]QQ,2P!)z, This is a sentence with leading whitespace.z This is a sentence withzleading whitespace.rErFs& r�'test_drop_whitespace_leading_whitespace�4WrapTestCase.test_drop_whitespace_leading_whitespace}s:��
>������b�G�H�	J�����b�3�5J�K�	Mrc�d�QoUOU],QNP
Q5UOU]QQ,2P!)zabcd    efgh�abcd�efghrK)r�r�r�rErFs& r�$test_drop_whitespace_whitespace_line�1WrapTestCase.test_drop_whitespace_whitespace_line�s9��������a�!9�(-�	�	/�����a�&�&�!1�2rc�2�UOQ],QQ5P!)r�rPrQrEr<s&r�0test_drop_whitespace_whitespace_only_with_indent�=WrapTestCase.test_drop_whitespace_whitespace_only_with_indent�s��	
����a��D��9rc�8�UOQ]QQ,QQQ5P!)z	abcd efghz  abcdz  efghr��rR�subsequent_indentrEr<s&r�&test_drop_whitespace_whitespace_indent�3WrapTestCase.test_drop_whitespace_whitespace_indent�s&��	
����Q��8�(<�'+�t�	�	Erc�j�QoUOOU2oUOU,QN2P!)z0Hello there -- you goof-ball, use the -b option!)�Hellors�therersrurs�yourszgoof-zball,rs�usersr�rsz-brszoption!)r*r+r)rr$rs&  r�
test_split�WrapTestCase.test_split�s3��B�����$�$�T�*���
�
�6�K�	Lrc�h�QoUOU]
QQ,P	Q5UOU]
QQ,P
Q5P!)z
yaba daba-dooz
yaba daba-�doo��break_on_hyphens�yabazdaba-doorErFs& r�test_break_on_hyphens�"WrapTestCase.test_break_on_hyphens�sE��������b�<��"7�)-�	�	/�����b�6�:�"6�).�	�	0rc�|�QoUO[[U]2UO[[UP2P!)zWhatever, it doesn't matter.)�assertRaises�
ValueErrorrrFs& r�test_bad_width�WrapTestCase.test_bad_width�s/��-�����*�d�D�!�4����*�d�D�"�5rc�6�QoUOU]
,QN2P!)uDie Empfänger-Auswahl)�DieuEmpfänger-�AuswahlrErFs& r�test_no_split_at_umlaut�$WrapTestCase.test_no_split_at_umlaut�s��)������b�"E�Frc�6�QoUOU]QQ,2P!)uaa ää-ääuaa ää-uäärErFs& r�test_umlaut_followed_by_dash�)WrapTestCase.test_umlaut_followed_by_dash�s��%������a�.�*�!=�>rc�h�QoUOU],QNP	Q5UOU],QNP
Q5P!)u,This is a sentence with non-breaking space.r�)�This is a sentence�	with non-ubreaking space.)r��withunon-breaking space.rErFs& r�test_non_breaking_space�$WrapTestCase.test_non_breaking_space�sH��M������b�=�*.�		�	/�	
����b�A�*/�		�	0rc�h�QoUOU],QNP	Q5UOU],QNP
Q5P!)u-This is a sentence with non-breaking space.r�)r�r�ubreaking space.)r�r�unon-breaking space.rErFs& r�test_narrow_non_breaking_space�+WrapTestCase.test_narrow_non_breaking_space�sM��2��	
����b�D�*.�		�	/�	
����b�H�*/�		�	0r)r*)$r/r0r1r2r=rGrMrSrYr]r`rcrkrnr~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r4r5r6s@rr9r9.s�����-�*�":�
O�
5�@(/�TB�/�F�4G�(4'�n '�DG�"=�*)�/�B�-�%�	M�3�:�E�	L�0�6�G�?�
0�0�0rr9c�>`�\sQsQsnQsQsQsQsQsQs	Us
P!)�MaxLinesTestCase��r@c��UOUO]Q,]Q5UOUO]Q,]Q5UOUO]QQ,]Q5UOUO]
QQ,]Q5UOUO]PUO,]Q5UOUO],QN]Q5P!)�zHello [...]��	max_linesrBz	how [...]z
how are [...]rA�r'r$r<s&rrG�MaxLinesTestCase.test_simple�s�������	�	�2�&��"#�	�	%�	
����	�	�2�&��"#�	�	%�	
����	�	�2�'�$�&�"#�	�	%�	
����	�	�2�'�(�*�"#�	�	%�	
����	�	�2��	�	�{�a��@�����	�	�2� �#$�	�	%rc���UOUO],QN]Q5UOUO]QQ,]Q5UOUOQ*],QN]Q5P!)r�r�r��[...])rBrCrDz
day? [...]z
          rAr�r<s&r�test_spaces�MaxLinesTestCase.test_spaces�sx������	�	�2�'�#$�	�	%�	
����	�	�1� � �"�"#�	�	%�
	
����	�	�H�,�b� �#$�	�	%rc
��UOUO]Q,]QQ5UOUO]QQ,]QQ5UO[29^tt^2[	UO]Q]QQ5PPP2UO[29^tt^2[	UO]Q]QQ	5PPP2UOUO]Q
Q,]QQQQ
5UOUO]Q,]QQQQ
5UOUO]PUO,QQ5P!)%fhK�9h)%fhK�9h)r�zHello...z...�r��placeholderrBz
how are...r�z [truncated]...)rRr�r�)r�r�r�z    Hello there,z  [truncated]...r�)r�rRr�r��r�a�........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................)r'r$r�r�rr<s&r�test_placeholder�!MaxLinesTestCase.test_placeholdersC������	�	�2�#��"#�$)�	�	+�	
����	�	�2�'�%�'�"#�$)�		�	+��
�
�z�
*�
*�����B�v��*;�
=�+��
�
�z�
*�
*�����B�&��*;�
=�+�	
����	�	�2�+�+�-�"#�'-�*.�$5�
	�	7�	
����	�	�2�+�,�"#�'+�*0�$5�	�	7�	
����	�	�2��	�	�{�
��K�'+�
*��+�
*�s$�"D8�"E�8E	�E	�E	�E	c�<�QoUOU]QQ,]QQ5P!)z1Good grief Python features are advancing quickly!z
Good griefzPython*****z*****r�rErFs& r�test_placeholder_backtrack�+MaxLinesTestCase.test_placeholder_backtrack2s-��
C������b�%�}�5�"#�$+�	�	-rr.)r/r0r1r2r$rGr�r�r�r4r5r6s@rr�r��s%����J�D�%�2%�.L�@	-�	-rr�c�:`�\sQsQsnQsQsQsQsQsUs	P!)�LongWordTestCase�>c�4�[2UmQUmP!)z]Did you say "supercalifragilisticexpialidocious?"
How *do* you spell that odd word, anyways?
)rr*r$r<s&rr=�LongWordTestCase.setUp?s��"�}�����	rc���UOUO],QN2UOUO]2QQ,2UOQ]
,QNQQ5UOUO],QN2P!)	�z1Did you say "supercalifragilisticexpialidocious?"z*How *do* you spell that odd word, anyways?)r�)zDid you say "supercalifragiliszticexpialidocious?" How *do*zyou spell that odd word,�anyways?z----------hello)z
----------z               hz               e�               lr�z               oz               )	�Did you say�"supercalifr�agilisticexpzialidocious?z
" How *do*z	you spellzthat oddzword,r�r�r<s&r�test_break_long� LongWordTestCase.test_break_longFs|��	
����	�	�2�%�	&�
	
����	�	�2�L�E�G�	H�	
�����-�-3�	�	4�	
����	�	�2�%�		&rc��]UOm]UOm,QNoUOOUO2oUOV!2[UO]]Q5oUOV!2P!)r)r%rh)r�z%"supercalifragilisticexpialidocious?"zHow *do* you spell that oddzword, anyways?)r*rhr%rr$r�rrrs&  r�test_nobreak_long�"LongWordTestCase.test_nobreak_longjsg��()����%��������
���"�"�4�9�9�-���
�
�6�"��d�i�i�r�A�>���
�
�6�"rc�J�UOUO],QN]Q5P!)r�r�)r�r�r�r�r�r<s&r�test_max_lines_long�$LongWordTestCase.test_max_lines_longzs%������	�	�2�"�#$�	�	%r)r$r*)
r/r0r1r2r=rrrr4r5r6s@rr�r�>s�����"&�H#� %�%rr�c�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�LongWordWithHyphensTestCase�c�B�[2UmQUmQUmP!)zOWe 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���QQ,oUOUO]2U2,QNoUOUO]
U2,QNoUOUO]
U2P!)z(We used enyzme 2-succinyl-6-hydroxy-2,4-z&cyclohexadiene-1-carboxylate synthase.)
�We usedz	enyzme 2-z	succinyl-z
6-hydroxy-z2,4-�
cyclohexadziene-1-�
carboxylat�e�	synthase.��
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���QQ,oUOUO]2UP
Q5,QNoUOUO]
UP
Q5,QNoUOUO]
U2P!)z2We used enyzme 2-succinyl-6-hydroxy-2,4-cyclohexadziene-1-carboxylate synthase.r�)rz
enyzme 2-sz
uccinyl-6-z
hydroxy-2,z
4-cyclohexz
adiene-1-c�
arboxylaterrrrs& 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���,QNoUOUO]2UP
Q5,QNoUOUO]
UP
Q5,QNoUOUO]
U2P!)�We used enyzmerg�r$�52-succinyl-6-hydroxy-2,4-cyclohexadiene-1-carboxylater�r�enyzmer&rrrrs& 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���,QNoUOUO]2UP
P
Q5,QNoUOUO]
UP
P
Q5,QNoUOUO]
U2P!)r$)rhr�r%r'rrrs& 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
rr*)r/r0r1r2r=rr!r)r,r4r5r6s@rr
r
�s#�����2�2�2�"2�2rr
c�:`�\sQsQsnQsQsQsQsQsUs	P!)�IndentTestCases��c��QUmP!)znThis 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�Z�Qo[UO](2oUOV!2P!)znThis paragraph will be filled, first
without any indentation, and then with
some (including a hanging indent).�rr$rrs&  r�	test_fill�IndentTestCases.test_fill�s'��&��
�d�i�i��$���
�
�6�"rc���,QNo[UO](QQ5oUOV!2QOU2o[	UO](QQ5oUOV!2P!)�#     This paragraph will be filled,r�rQr)r9z'first without any indentation, and thenz'with some (including a hanging indent).)rr$rrrrs&  r�test_initial_indent�#IndentTestCases.test_initial_indent�sU��=���d�i�i��G�<���
�
�6�"����6�"���d�i�i��G�<���
�
�6�"rc�`�Qo[UO](QQQ5oUOV!2P!)z~  * This paragraph will be filled, first
    without any indentation, and then
    with some (including a hanging
    indent).z  * r�r�r5rs&  r�test_subsequent_indent�&IndentTestCases.test_subsequent_indent�s/�����d�i�i��%+�v�G���
�
�6�"rr2)
r/r0r1r2r=r6r:r=r4r5r6s@rr/r/�s����4�	#�#�#�#rr/c�X`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
UsP!)�DedentTestCase�c��UO[Q29^tt^2[]2PPP2UO[Q29^tt^2[Q2PPP2P!)%fhKD9h)%fhP!9h)zexpected str object, notr)�assertRaisesRegex�	TypeErrorrr<s&r�test_type_error�DedentTestCase.test_type_errors`��
�
#�
#�I�/I�
J�
J��1�I�K��
#�
#�I�/I�
J�
J��3�K�K�
J�K�
J��K�
J�
J�s#�A(�A;�(A8	�1A8	�;B	�B	c�>�UOU[U22P!)z,assert that dedent() has no effect on 'text'�rrrFs&&r�assertUnchanged�DedentTestCase.assertUnchangeds������v�d�|�,rc�\�PoUOU2QoPoUOU[U22QoPoUOU[U22QoPoUOU[U22QoQoUOU[U22QoQoUOU[U22QoQ
oUOU[U22QoQoUOU[U22QoQ	oUOU[U22Q
oQoUOU[U22P!)rJr�z				z
 	  		  	 z

	 rz    
	
  
		


       z





za
 
	
za


za


za


z





z




�rIrrrjs&  r�test_dedent_whitespace�%DedentTestCase.test_dedent_whitespaces5�������T�"������������.������������.� �����������.������������.������������.������������.�1�����������.������������.������������.rc��QoUOU2QoUOU2QoUOU2QoUOU2P!)z,Hello there.
How are you?
Oh good, I'm glad.zHello there.

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

  Boo!
)rIrFs& r�test_dedent_nomargin�#DedentTestCase.test_dedent_nomargin=sT��?�����T�"�&�����T�"�3�����T�"�*�����T�"rc���QoQoUOU[U22QoQoUOU[U22QoQoUOU[U22P!)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.
z+  Hello there.
  
  How are ya?
  Oh good.
rHrjs&  r�test_dedent_even�DedentTestCase.test_dedent_evenNsa��:��6���������.�?��:���������.�A��:���������.rc���QoQoUOU[U22QoQoUOU[U22QoQoUOU[U22P!)zK        def foo():
            while 1:
                return foo
        z+def foo():
    while 1:
        return foo
z  Foo
    Bar

   Baz
zFoo
  Bar

 Baz
z  Foo
    Bar
 
   Baz
rHrjs&  r�test_dedent_uneven�!DedentTestCase.test_dedent_uneven^sf����
��
	
�������.�,��'���������.�-��'���������.rc���QoQoUOU[U22QoQoUOU[U22QoQoUOU[U22P!)z     Foo
    Bar
z	 Foo
Bar
z     Foo

    Bar
z
 Foo

Bar
z     Foo
    
    Bar
rHrjs&  r�test_dedent_declining�$DedentTestCase.test_dedent_decliningvs`��$�����������.�'�� ���������.�+�� ���������.rc�|�QoQoUOU[U22UOU[U22P!)z  hello	there
  how are	you?zhello	there
how are	you?rHrjs&  r�"test_dedent_preserve_internal_tabs�1DedentTestCase.test_dedent_preserve_internal_tabs�s6��0��.���������.�	
�������0rc��QoUOU2QoUOU2QoQoUOU[U22QoUOU[U22QoUOU[U22QoQoUOU[U22QoQ	oUOU[U22P!)
z  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, thanksrLrjs&  r� test_dedent_preserve_margin_tabs�/DedentTestCase.test_dedent_preserve_margin_tabs�s���.�����T�"�5�����T�"�/��,���������.�2���������.�6���������.�4��.���������.�I��G���������.rr.)r/r0r1r2rErIrMrPrSrVrYr\r_r4r5r6s@rr@r@�s8�����-�0/�d#�"/� /�0/�"1�/�/rr@c�z`�\sQsQsnQs\Q*sQsQsQsQs	Qs
QsQsQ	s
Q
sQsQsQ
sUsP!)�IndentTestCase�c�h�UOFDoUO[UP2U2J!	P!�rJ��CASESrrrFs& r�test_indent_nomargin_default�+IndentTestCase.test_indent_nomargin_default�s'���J�J�D����V�D�"�-�t�4�rc	�j�UOFD oUO[UPP2U2J"	P!rerfrFs& r�%test_indent_nomargin_explicit_default�4IndentTestCase.test_indent_nomargin_explicit_default�s+���J�J�D����V�D�"�d�3�T�:�rc	�p�QoUOFD oUO[UPU2U2J"	P!)c��P	!�Tr.��lines&r�<lambda>�?IndentTestCase.test_indent_nomargin_all_lines.<locals>.<lambda>����rrf�r�	predicater$s&  r�test_indent_nomargin_all_lines�-IndentTestCase.test_indent_nomargin_all_lines�s0��&�	��J�J�D����V�D�"�i�8�$�?�rc	�p�QoUOFD oUO[UQU2U2J"	P!)c��P
!)Fr.rps&rrr�5IndentTestCase.test_indent_no_lines.<locals>.<lambda>�s��rr�rfrus&  r�test_indent_no_lines�#IndentTestCase.test_indent_no_lines�s.��&�	��J�J�D����V�D�&�)�<�d�C�rc
�z�UOFD(oUO[[UQ22U2J*	P!)r���ROUNDTRIP_CASESrrrrFs& r�test_roundtrip_spaces�$IndentTestCase.test_roundtrip_spaces��.���(�(�D����V�F�4��$8�9�4�@�)rc
�z�UOFD(oUO[[UQ22U2J*	P!)z		rrFs& r�test_roundtrip_tabs�"IndentTestCase.test_roundtrip_tabs�r�rc
�z�UOFD(oUO[[UQ22U2J*	P!)z 	  	 rrFs& r�test_roundtrip_mixed�#IndentTestCase.test_roundtrip_mixed�s.���(�(�D����V�F�4��$<�=�t�D�)rc��QoQo[UOU2FD vq4UO[V12U2J"	P!�r�)�"  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.

��ziprgrr�r�prefixrr$rs&    r�test_indent_default�"IndentTestCase.test_indent_default�s<����
�� ��
�
�H�5�L�D����V�D�1�6�:�6rc	��QoQo[UOU2FD!vq4UO[V1P2U2J#	P!r�r�r�s&    r�test_indent_explicit_default�+IndentTestCase.test_indent_explicit_default�s>����
�� ��
�
�H�5�L�D����V�D�$�7��@�6rc	��QoQoQo[UOU2FD!vqEUO[VAU2U2J#	P!)r�c��P	!ror.rps&rrr�6IndentTestCase.test_indent_all_lines.<locals>.<lambda>rtr)r�z%  Hi.
  This is a test.
  
  Testing.z&  
  Hi.
  This is a test.
  Testing.
r�z/  
  Hi.
  This is a test.
  
  Testing.
  
r��rr�rrvr$rs&     r�test_indent_all_lines�$IndentTestCase.test_indent_all_linessC����
��&�	���
�
�H�5�L�D����V�D�)�<�f�E�6rc	��QoQoQo[UOU2FD!vqEUO[VAU2U2J#	P!)r�c�.�UO2%(!r")�striprps&rrr�8IndentTestCase.test_indent_empty_lines.<locals>.<lambda>2s
��T�Z�Z�\�!1r)�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.
  
r�r�s&     r�test_indent_empty_lines�&IndentTestCase.test_indent_empty_lines#sC����
��2�	���
�
�H�5�L�D����V�D�)�<�f�E�6rr.)r�zHi.
This is a test.

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

Testing.

)r/r0r1r2r�rgrhrkrwr|r�r�r�r�r�r�r�r4r5r6s@rrbrb�sb����
�O�
��
�E�5�
;�@�D�A�
A�
E�
;�$A�$F�&F�Frrbc�L`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sUsP!)
�ShortenTestCasei7c�D�[V1-U@oUOVS2P!r")rrr#s&&&&, r�
check_shorten�ShortenTestCase.check_shorten9s����/��/���
�
�6�"rc��QoUOU]Q2UOU[U2U2UOU[U2]*
Q2P!)�<Hello there, how are you this fine day? I'm glad to hear it!zHello there, [...]z9Hello there, how are you this fine day? I'm glad to [...]�r�rrFs& rrG�ShortenTestCase.test_simple=sO��M�����4��%9�:����4��T��D�1����4��T��Q��
 �	!rc��QoUOU]QQQ5UOU]QQQ5UOU]QQQ5UOU[U2UQQ5UOU[U2]*
QQQ5P!)r�zHello there,$$z$$r�zHello there, how$$zHello there, $$z $$z:Hello there, how are you this fine day? I'm glad to hear$$r�rFs& rr�� ShortenTestCase.test_placeholderGs���M�����4��%5�4��H����4��%9�t��L����4��%6�E��J����4��T��D�d��C����4��T��Q��
!�.2�	�	4rc�.�UOP]P2P!re�r�r<s&rrM�!ShortenTestCase.test_empty_stringRs�����2�q�"�%rc���QoUOU]>Q2UOU]=Q2UOQ]Q2UOQ]Q2UOQ]
Q2P!)z[
            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!  zhello world!zhello [...]r�r�rFs& rrY�ShortenTestCase.test_whitespaceUsx��,��	
���4��4�	5�	
���4��0�	1�	
���0�"�n�E����0�"�m�D�	
���0�"�g�>rc��[Q]QQ5UO[29^tt^2[Q]QQ5PPP2P!)%fhP!9h)�xz(......))r%r�z	(.......)�xxxxxxxxxxxxxxxxxxxx)rr�r�r<s&r�$test_width_too_small_for_placeholder�4ShortenTestCase.test_width_too_small_for_placeholdergs:�����z�:�
�
�
�z�
*�
*��H�A�;�?�+�
*�
*�
*�s�A�A	�A	c�.�UOQ]Q2P!)�Helloor�r�r<s&r�-test_first_word_too_long_but_placeholder_fits�=ShortenTestCase.test_first_word_too_long_but_placeholder_fitsls�����8�Q��0rr.)
r/r0r1r2r�rGr�rMrYr�r�r4r5r6s@rr�r�7s.����#�!�	4�&�?�$@�
1�1rr��__main__)�unittest�textwraprrrrrr�TestCaser	r9r�r�r
r/r@rbr�r/�mainr.rr�<module>r�s����E�E�;�8�$�$�;�<n0�<�n0�b
\-�|�\-�~B%��B%�JF2�,�F2�P.#�l�.#�fo/�X�&�&�o/�fCF�X�&�&�CF�L61�l�61�r�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit