ó
ŒwÛjc           @   sÕ   d  d l  Z  d  d l m Z d  d l m Z m Z m Z m Z d e  j f d „  ƒ  YZ	 d e	 f d „  ƒ  YZ
 d e	 f d	 „  ƒ  YZ d
 e	 f d „  ƒ  YZ d e  j f d „  ƒ  YZ d „  Z e d k rÑ e ƒ  n  d S(   iÿÿÿÿN(   t   test_support(   t   TextWrappert   wrapt   fillt   dedentt   BaseTestCasec           B   s2   e  Z d  Z d „  Z d „  Z d „  Z d „  Z RS(   s5   Parent class with utility methods for textwrap tests.c         C   s…   t  | t ƒ r_ g  } x5 t t | ƒ ƒ D]! } | j d | | | f ƒ q( Wd j | ƒ } n" t  | t ƒ r� d t | ƒ } n  | S(   Ns     %d: %rs   
s     %s
(   t
   isinstancet   listt   ranget   lent   appendt   joint
   basestringt   repr(   t   selft   textint   resultt   i(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   show   s    c         C   s3   |  j  | | d |  j | ƒ |  j | ƒ f ƒ d  S(   Ns   expected:
%s
but got:
%s(   t   assertEqualR   (   R   R   t   expect(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   check   s    c         K   s&   t  | | | � } |  j | | ƒ d  S(   N(   R   R   (   R   t   textt   widthR   t   kwargsR   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt
   check_wrap$   s    c         C   s3   |  j  j | ƒ } |  j | | d | | f ƒ d  S(   Ns   
expected %r
but got  %r(   t   wrappert   _splitR   (   R   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   check_split(   s    (   t   __name__t
   __module__t   __doc__R   R   R   R   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyR      s
   			t   WrapTestCasec           B   s  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j rü d „  Z d „  Z d „  Z n  d „  Z d „  Z d „  Z  RS(   c         C   s   t  d d ƒ |  _ d  S(   NR   i-   (   R   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   setUp1   s    c      	   C   s^   d } |  j  | d d d d d d d g ƒ |  j  | d	 d
 d g ƒ |  j  | d | g ƒ d  S(   Ns=   Hello there, how are you this fine day?  I'm glad to hear it!i   s   Hello there,s   how are yous	   this fines	   day?  I'ms   glad to hears   it!i*   s'   Hello there, how are you this fine day?s   I'm glad to hear it!iP   (   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_simple4   s    

c         C   s0   |  j  d d g  ƒ |  j  d d g  d t ƒd  S(   Nt    i   t   drop_whitespace(   R   t   False(   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_empty_stringE   s    c         C   s<   |  j  d d g  d d ƒ|  j  d d g  d d d t ƒd  S(   NR#   i   t   initial_indents   ++R$   (   R   R%   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt%   test_empty_string_with_initial_indentJ   s    c         C   sx   d } d d d d d g } t  d d t ƒ} | j | ƒ } |  j | | ƒ | j | ƒ } |  j | d	 j | ƒ ƒ d  S(
   Ns®   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!
s)   This is a paragraph that already has lines'   breaks.  But some of its lines are muchs)   longer than the others, so it needs to bes-   wrapped.  Some lines are  tabbed too.  What as   mess!i-   t   fix_sentence_endingss   
(   R   t   TrueR   R   R   R   (   R   R   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_whitespaceO   s    		c         C   s_  t  d d t ƒ} d } d g } |  j | j | ƒ | ƒ d } d g } |  j | j | ƒ | ƒ d } |  j | j | ƒ | ƒ d } d	 g } |  j | j | ƒ | ƒ d
 | _ d d d g } |  j | j | ƒ | ƒ d } d d d g } |  j | j | ƒ | ƒ d | _ d g } |  j | j | ƒ | ƒ d } d g } |  j | j | ƒ | ƒ d  S(   Ni<   R)   s$   A short line. Note the single space.s%   A short line.  Note the single space.s    Well, Doctor? What do you think?s!   Well, Doctor?  What do you think?s    Well, Doctor?
What do you think?s)   I say, chaps! Anyone for "tennis?"
Hmmph!s+   I say, chaps!  Anyone for "tennis?"  Hmmph!i   s   I say, chaps!s   Anyone for "tennis?"s   Hmmph!s1   And she said, "Go to hell!"
Can you believe that?s   And she said, "Go tos   hell!"  Can yous   believe that?s2   And she said, "Go to hell!"  Can you believe that?s   File stdio.h is nice.(   R   R*   R   R   R   (   R   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_fix_sentence_endingsg   s4    								c         C   s9   d } |  j  | d d d g ƒ |  j  | d d g ƒ d  S(   Ns   This is a
short paragraph.i   s   This is a shorts
   paragraph.i(   s   This is a short paragraph.(   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_wrap_short‘   s    
c         C   s<   d } |  j  | d d g ƒ |  j  | d d g d d ƒd  S(   Ns   This is a short line.i   s   (1) This is a short line.R'   s   (1) (   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_wrap_short_1line›   s    c         C   sU   d } |  j  | d d d g ƒ |  j  | d d d g ƒ |  j  | d d d g ƒ d  S(	   NsB   this-is-a-useful-feature-for-reformatting-posts-from-tim-peters'lyi(   s   this-is-a-useful-feature-for-s%   reformatting-posts-from-tim-peters'lyi)   i*   s*   this-is-a-useful-feature-for-reformatting-s   posts-from-tim-peters'ly(   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_hyphenated¥   s    

c         C   s�   d } |  j  | d d d d g ƒ |  j  | d d d g ƒ d	 } |  j  | d
 d d g ƒ |  j  | d d d g ƒ |  j  | d d	 g ƒ d  S(   NsR   Python 1.0.0 was released on 1994-01-26.  Python 1.0.1 was
released on 1994-02-15.i#   s   Python 1.0.0 was released ons   1994-01-26.  Python 1.0.1 wass   released on 1994-02-15.i(   s(   Python 1.0.0 was released on 1994-01-26.s(   Python 1.0.1 was released on 1994-02-15.s   I do all my shopping at 7-11.i   s   I do all my shopping ats   7-11.i   i   (   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_hyphenated_numbersµ   s    



c         C   sç  d } |  j  | d d d g ƒ |  j  | d d d g ƒ d d	 g } |  j  | d
 | ƒ |  j  | d | ƒ |  j  | d d g ƒ d } d d d g } |  j  | d | ƒ |  j  | d | ƒ d d d g } |  j  | d | ƒ |  j  | d | ƒ d d g } |  j  | d | ƒ |  j  | d | ƒ d d g } |  j  | d | ƒ |  j  | d | ƒ d } d d d d d  d d! d" d d# d  d$ d d% d& d# d d' g } |  j | | ƒ d( } d# d d) d  d* d  d+ d d, d d- g } |  j | | ƒ d  S(.   Ns$   Em-dashes should be written -- thus.i   s   Em-dashes should bes   written -- thus.i   s   Em-dashes should be writtens   -- thus.s   Em-dashes should be written --s   thus.i   i#   i$   s%   You can also do--this or even---this.s   You can also dos   --this or evens   ---this.i   i   s   You can also do--s   this or even---s   this.i   i   s   You can also do--this or eveni   s    You can also do--this or even---i    s7   Here's an -- em-dash and--here's another---and another!s   Here'st    t   ans   --s   em-t   dasht   ands   here'st   anothers   ---s   another!s   and then--bam!--he was gonet   thens   bam!t   het   wast   gone(   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_em_dashÇ   sR    

	
				c         C   s4  d } |  j  | d d d d d g ƒ |  j  | d d d	 d
 g ƒ d d g } |  j  | d | ƒ |  j  | d | ƒ |  j  | d | ƒ |  j  | d | ƒ d d g } |  j  | d | ƒ |  j  | d | ƒ d d
 g } |  j  | d | ƒ d } d d d d d d d d d d d d d d g } |  j | | ƒ d  S(    Ns<   You should use the -n option, or --dry-run in its long form.i   s   You should use thes   -n option, or --dry-s   run in its longs   form.i   s   You should use the -ns   option, or --dry-runs   in its long form.s    You should use the -n option, ors   --dry-run in its long form.i    i"   i#   i&   s'   You should use the -n option, or --dry-s   run in its long form.i'   i)   s*   You should use the -n option, or --dry-runi*   s'   the -n option, or --dry-run or --dryrunt   theR1   s   -ns   option,t   ors   --dry-t   runs   --dryrun(   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_unix_optionsþ   s6    

			c         C   s³   |  j  d d d d d d g ƒ |  j  d d d d g ƒ |  j  d	 d d d
 g ƒ |  j  d d g ƒ |  j  d d g ƒ |  j  d d d g ƒ |  j  d d d d d d d g ƒ d  S(   Ns   what the--hey!t   whatR1   R;   s   --s   hey!s
   what the--s   the--s   what the--.s   the--.s	   --text--.s   --options   --option-opts	   --option-t   opts   foo --option-opt bart   foot   bar(   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_funky_hyphens   s    	c         C   sŒ   |  j  d d d d d d d g ƒ |  j  d d d d d	 d d g ƒ |  j  d
 d d d d d d g ƒ |  j  d d d d d d d g ƒ d  S(   Ns   the 'wibble-wobble' widgetR;   R1   s   'wibble-s   wobble't   widgets   the "wibble-wobble" widgets   "wibble-s   wobble"s   the (wibble-wobble) widgets   (wibble-s   wobble)s   the ['wibble-wobble'] widgets	   ['wibble-s   wobble'](   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_punct_hyphens1  s    				c      	   C   sg   |  j  d d d d d d g ƒ |  j  d d d d d d g ƒ |  j  d	 d
 d d d d d d g ƒ d  S(   Ns   foo (--option) barRA   R1   s
   (--option)RB   s   foo (bar) bazs   (bar)t   bazs   blah (ding dong), wubbat   blahs   (dings   dong),t   wubba(   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_funky_parensB  s    			c      	   C   s5   d } |  j  | d d d d d d d g d	 t ƒd  S(
   Ns0    This is a    sentence with     much whitespace.i
   s
    This is as       s	   sentence s	   with     s
   much whites   space.R$   (   R   R%   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_drop_whitespace_falseO  s
    	c         C   s    |  j  d d d g d t ƒd  S(   Ns      i   R$   (   R   R%   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt*   test_drop_whitespace_false_whitespace_onlyX  s    c         C   s&   |  j  d d d g d t d d ƒd  S(   Ns      i   s        R$   R'   s     (   R   R%   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt6   test_drop_whitespace_false_whitespace_only_with_indent\  s    c         C   s   |  j  d d g  ƒ d  S(   Ns     i   (   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt$   test_drop_whitespace_whitespace_onlyb  s    c         C   s9   d } |  j  | d d g ƒ |  j  | d d d g ƒ d  S(   Ns,    This is a sentence with leading whitespace.i2   i   s    This is a sentence withs   leading whitespace.(   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt'   test_drop_whitespace_leading_whitespacef  s
    
c         C   sE   d } |  j  | d d d d g d t ƒ|  j  | d d d g ƒ d  S(   Ns   abcd    efghi   t   abcds       t   efghR$   (   R   R%   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt$   test_drop_whitespace_whitespace_lineq  s    c         C   s   |  j  d d g  d d ƒd  S(   Ns     i   R'   s   ++(   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt0   test_drop_whitespace_whitespace_only_with_indentz  s    c         C   s)   |  j  d d d d g d d d d ƒd  S(   Ns	   abcd efghi   s     abcds     efghR'   s     t   subsequent_indent(   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt&   test_drop_whitespace_whitespace_indent€  s    c         C   s‘   d } |  j  | d d g ƒ |  j  | d d d g ƒ |  j j | ƒ } |  j | t ƒ |  j | d t ƒ |  j j | ƒ } |  j | t ƒ d  S(   Nu   Hello there, how are you today?i2   i   u   Hello there, how ares
   you today?i    (   R   R   R   t   assertIsInstanceR   t   unicodeR   (   R   R   t   olinest   otext(    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_unicodeˆ  s    c         C   s&   d } |  j  | d d d d g ƒ d  S(   Nu   Die EmpfÃ¤nger-Auswahli   u   Dieu   EmpfÃ¤nger-u   Auswahl(   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_no_split_at_umlaut•  s    c         C   s#   d } |  j  | d d d g ƒ d  S(   Nu   aa Ã¤Ã¤-Ã¤Ã¤i   u   aa Ã¤Ã¤-u   Ã¤Ã¤(   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_umlaut_followed_by_dash™  s    c         C   sb   d } |  j  j | ƒ } |  j | d d d d d d d d d d d d	 d d
 d d d d g ƒ d  S(   Ns0   Hello there -- you goof-ball, use the -b option!t   HelloR1   t   theres   --t   yous   goof-s   ball,t   useR;   s   -bs   option!(   R   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt
   test_split�  s
    	c         C   sH   d } |  j  | d d d g d t ƒ|  j  | d d d g d t ƒd  S(   Ns   yaba daba-dooi
   s
   yaba daba-t   doot   break_on_hyphenst   yabas   daba-doo(   R   R*   R%   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_break_on_hyphens¨  s
    c         C   s6   d } |  j  t t | d ƒ |  j  t t | d ƒ d  S(   Ns   Whatever, it doesn't matter.i    iÿÿÿÿ(   t   assertRaisest
   ValueErrorR   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_bad_width°  s    (!   R   R   R!   R"   R&   R(   R+   R,   R-   R.   R/   R0   R:   R>   RC   RE   RI   RJ   RK   RL   RM   RN   RQ   RR   RT   R    t   have_unicodeRY   RZ   R[   R`   Rd   Rg   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyR    /   s<   						*	
	
			7	"																		t   LongWordTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   t  ƒ  |  _ d |  _ d  S(   Ns]   Did you say "supercalifragilisticexpialidocious?"
How *do* you spell that odd word, anyways?
(   R   R   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyR!   ¸  s    c         C   sž   |  j  |  j d d d d d g ƒ |  j  |  j d d d g ƒ |  j  d d
 d d d d d d g d d ƒ|  j  |  j d d d d d d d d d d g	 ƒ d  S(    Ni   s   Did you say "supercalifragiliss   ticexpialidocious?" How *do*s   you spell that odd word,s   anyways?i2   s1   Did you say "supercalifragilisticexpialidocious?"s*   How *do* you spell that odd word, anyways?t   -i
   t   hellos
   ----------s                  hs                  es                  ls                  oRS   R1   i   i   s   Did you say s   "supercalifrt   agilisticexps   ialidocious?s
   " How *do*s	   you spells   that odds   word,s
   ----------s   ----------hellos                  (   R   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_break_long¿  s4    

	c         C   s~   d |  j  _ d |  j  _ d d d d g } |  j  j |  j ƒ } |  j | | ƒ t |  j d d d d ƒ} |  j | | ƒ d  S(	   Ni    i   s   Did you says%   "supercalifragilisticexpialidocious?"s   How *do* you spell that odds   word, anyways?R   t   break_long_words(   R   Rn   R   R   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_nobreak_longã  s    	(   R   R   R!   Rm   Ro   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyRi   ·  s   		$t   IndentTestCasesc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   d |  _  d  S(   Nsn   This paragraph will be filled, first without any indentation,
and then with some (including a hanging indent).(   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyR!   ÷  s    c         C   s,   d } t  |  j d ƒ } |  j | | ƒ d  S(   Nsn   This paragraph will be filled, first
without any indentation, and then with
some (including a hanging indent).i(   (   R   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt	   test_fillý  s    c         C   sr   d d d g } t  |  j d d d ƒ} |  j | | ƒ d j | ƒ } t |  j d d d ƒ} |  j | | ƒ d  S(   Ns#        This paragraph will be filled,s'   first without any indentation, and thens'   with some (including a hanging indent).i(   R'   s        s   
(   R   R   R   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_initial_indent	  s    	c         C   s8   d } t  |  j d d d d d ƒ} |  j | | ƒ d  S(   Ns~     * This paragraph will be filled, first
    without any indentation, and then
    with some (including a hanging
    indent).i(   R'   s     * RS   s       (   R   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_subsequent_indent  s    (   R   R   R!   Rq   Rr   Rs   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyRp   ô  s   			t   DedentTestCasec           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   |  j  | t | ƒ ƒ d S(   s,   assert that dedent() has no effect on 'text'N(   R   R   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   assertUnchanged)  s    c         C   sP   d } |  j  | ƒ d } |  j  | ƒ d } |  j  | ƒ d } |  j  | ƒ d  S(   Ns,   Hello there.
How are you?
Oh good, I'm glad.s   Hello there.

Boo!s    Hello there.
  This is indented.s   Hello there.

  Boo!
(   Ru   (   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_dedent_nomargin-  s    c         C   sj   d } d } |  j  | t | ƒ ƒ d } d } |  j  | t | ƒ ƒ d } d } |  j  | t | ƒ ƒ d  S(   Ns'     Hello there.
  How are ya?
  Oh good.s!   Hello there.
How are ya?
Oh good.s)     Hello there.

  How are ya?
  Oh good.
s#   Hello there.

How are ya?
Oh good.
s+     Hello there.
  
  How are ya?
  Oh good.
(   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_dedent_even>  s    c         C   sj   d } d } |  j  | t | ƒ ƒ d } d } |  j  | t | ƒ ƒ d } d } |  j  | t | ƒ ƒ d  S(   NsK           def foo():
            while 1:
                return foo
        s+   def foo():
    while 1:
        return foo
s     Foo
    Bar

   Baz
s   Foo
  Bar

 Baz
s     Foo
    Bar
 
   Baz
(   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   test_dedent_unevenN  s    c         C   s<   d } d } |  j  | t | ƒ ƒ |  j  | t | ƒ ƒ d  S(   Ns     hello	there
  how are	you?s   hello	there
how are	you?(   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt"   test_dedent_preserve_internal_tabsg  s    c         C   sÈ   d } |  j  | ƒ d } |  j  | ƒ d } d } |  j | t | ƒ ƒ d } |  j | t | ƒ ƒ d } |  j | t | ƒ ƒ d } d } |  j | t | ƒ ƒ d	 } d
 } |  j | t | ƒ ƒ d  S(   Ns     hello there
	how are you?s!           hello there
	how are you?s   	hello there
	how are you?s   hello there
how are you?s     	hello there
  	how are you?s"     	  hello there
  	  how are you?s      	hello there
  	  how are you?s   hello there
  how are you?s2     	hello there
   	how are you?
 	I'm fine, thankss/    	hello there
  	how are you?
	I'm fine, thanks(   Ru   R   R   (   R   R   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt    test_dedent_preserve_margin_tabss  s"    (   R   R   Ru   Rv   Rw   Rx   Ry   Rz   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyRt   '  s   					c           C   s   t  j t t t t ƒ d  S(   N(   R    t   run_unittestR    Ri   Rp   Rt   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt	   test_main�  s    	t   __main__(   t   unittestt   testR    t   textwrapR   R   R   R   t   TestCaseR   R    Ri   Rp   Rt   R|   R   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_textwrap.pyt   <module>   s   "ÿ ‰=3i	