ó
ŠwÛjc           @   s  d  Z  d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d f  d „  ƒ  YZ d e f d „  ƒ  YZ	 d	 e f d
 „  ƒ  YZ
 d e j f d „  ƒ  YZ d f  d „  ƒ  YZ d e f d „  ƒ  YZ d f  d „  ƒ  YZ d f  d „  ƒ  YZ d f  d „  ƒ  YZ d S(   sQ   
Common tests shared by test_str, test_unicode, test_userstring and test_string.
iÿÿÿÿN(   t   test_support(   t   UserListt   Sequencec           B   s&   e  Z d  d „ Z d „  Z d „  Z RS(   t   wxyzc         C   s   | |  _  d  S(   N(   t   seq(   t   selfR   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   __init__
   t    c         C   s   t  |  j ƒ S(   N(   t   lenR   (   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/string_tests.pyt   __len__   R   c         C   s   |  j  | S(   N(   R   (   R   t   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/string_tests.pyt   __getitem__   R   (   t   __name__t
   __module__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/string_tests.pyR   	   s   	t   BadSeq1c           B   s   e  Z d  „  Z RS(   c         C   s   d d d g |  _  d  S(   Ni   t   hellol   { (   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/string_tests.pyR      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/string_tests.pyR      s   t   BadSeq2c           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   d d d g |  _  d  S(   Nt   at   bt   c(   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/string_tests.pyR      R   c         C   s   d S(   Ni   (    (   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/string_tests.pyR	      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/string_tests.pyR      s   	t
   CommonTestc           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 d „  Z d „  Z e j e j d  k pe  j! d ƒ d k d ƒ d „  ƒ Z" d „  Z# RS(!   c         C   sÛ   t  | t ƒ r |  j j | ƒ St  | t ƒ rN g  | D] } |  j | ƒ ^ q5 St  | t ƒ rƒ t g  | D] } |  j | ƒ ^ qg ƒ St  | t ƒ rÓ t g  | j ƒ  D]* \ } } |  j | ƒ |  j | ƒ f ^ q¢ ƒ S| Sd  S(   N(	   t
   isinstancet   strt	   __class__t	   type2testt   listt   fixtypet   tuplet   dictt	   iteritems(   R   t   objt   xt   keyt   value(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyR   !   s     &;c         C   s&   |  j  t |  j d ƒ ƒ |  j ƒ d  S(   Nt   123(   t   assertIst   typeR   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/string_tests.pyt   test_fixtype0   s    c         G   sµ   |  j  | ƒ } |  j  | ƒ } |  j  | ƒ } t | | ƒ | Œ  } |  j | | ƒ | | k r± d |  j j f d „  ƒ  Y} | | ƒ } t | | ƒ | Œ  } |  j | | k	 ƒ n  d  S(   Nt   subtypec           B   s   e  Z RS(    (   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/string_tests.pyR&   @   s   (   R   t   getattrt   assertEqualR   R   t
   assertTrue(   R   t   resultt   objectt
   methodnamet   argst
   realresultR&   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt
   checkequal4   s    c         G   sg   |  j  | ƒ } |  j  | ƒ } |  j | ƒ � } t | | ƒ | Œ  Wd  QX|  j | j j d d ƒ d  S(   Ni    R   (   R   t   assertRaisesR'   t   assertNotEqualt	   exceptionR-   (   R   t   excR   R,   R-   t   cm(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   checkraisesG   s
    c         G   s5   |  j  | ƒ } |  j  | ƒ } t | | ƒ | Œ  d  S(   N(   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/string_tests.pyt	   checkcallO   s    c         C   sc   |  j  d ƒ } |  j  d ƒ } x" | D] } | | 7} t | ƒ q% W|  j t | ƒ t | ƒ ƒ d  S(   Nt   DNSSECR   (   R   t   hashR(   (   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/string_tests.pyt	   test_hashT   s    
c         C   sy   |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ |  j t d d d	 ƒ d  S(
   Ns    hello t
   capitalizes   Hello s   hello t   Aaaat   aaaat   AaAaR   i*   (   R/   R5   t	   TypeError(   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/string_tests.pyt   test_capitalize]   s    c      	   C   sS  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d	 ƒ |  j  d d d d d
 ƒ |  j  d d d d d ƒ |  j  d d d d d d ƒ |  j  d d d d d d	 ƒ |  j  d d d d d d
 ƒ |  j  d d d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d	 ƒ |  j  d d d d d
 ƒ |  j  d d d d d ƒ |  j  d d d d ƒ |  j  d d d d d d ƒ |  j  d d d d t j d ƒ |  j  d d d d ƒ |  j  d d d d d d ƒ |  j  d d d d t j d ƒ |  j t d d ƒ |  j t d d d ƒ d d d g } d } t | ƒ } t ƒ  } xq t | | ƒ D]_ } g  } x: t | ƒ D], } t | | ƒ \ } } | j	 | | ƒ q
W| j
 d j | ƒ ƒ qñWt | ƒ } xì | D]ä } |  j | ƒ } t | ƒ }	 xÀ | D]¸ } | j | ƒ }
 | rÞt |	 t | j | d ƒ ƒ t | ƒ ƒ \ } } n t | ƒ d d } } | s|
 | k r�|  j | d d | | f ƒ |  j |
 | d |
 | | f ƒ q�q�WqgWd  S(   Ni   t   aaat   countR   i    R   i   i   i
   iÿÿÿÿiöÿÿÿR   i   t   xxR   i*   i   s   %s != 0 for %ss   %s != %s for %s(   R/   t   syst   maxintR5   R>   R   t   sett   xranget   divmodt   appendt   addt   joinR   R   RA   t   replaceR(   (   R   t   charsett   digitst   baset   teststringsR
   t   entryt   jt   mt   nt   r1t   r2t   rem(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt
   test_countf   sd    	4c         C   sM  |  j  d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d	 ƒ |  j  d d d d
 d ƒ |  j  d d d d
 d ƒ |  j  d d d d
 d	 ƒ |  j  d d d d ƒ |  j  d d d d d	 ƒ |  j  d d d d d	 d ƒ |  j  d d d d d	 d  ƒ |  j  d d d d d  d ƒ |  j t d d ƒ |  j t d d d ƒ |  j  d d
 d d
 ƒ |  j  d d
 d d
 d d ƒ |  j  d d
 d d
 t j d ƒ |  j  d d
 d d ƒ |  j  d d
 d d d d ƒ |  j  d d
 d d t j d ƒ |  j  d d d d t j d d ƒ d
 d d d g } d } t | ƒ } t ƒ  } xq t	 | | ƒ D]_ } g  } x: t	 | ƒ D], } t
 | | ƒ \ } } | j | | ƒ q[W| j d
 j | ƒ ƒ qBWt | ƒ } x• | D]� } |  j | ƒ } xu | D]m } | j | ƒ }	 |	 d k }
 | | k } |  j |
 | ƒ |	 d k rÔ|  j | |	 |	 t | ƒ !| ƒ qÔqÔWq¸Wd  S(   Ni    t   abcdefghiabct   findt   abci	   i   iÿÿÿÿt   defi   R   i   i   t   rrarrrrrrrrraR   i   i   R   i*   RB   t   abt   xxxR   R   i   (   R/   t   NoneR5   R>   RC   RD   t   maxsizeR   RE   RF   RG   RH   RI   RJ   R   R   RY   R(   (   R   RL   RM   RN   RO   R
   RP   RQ   RR   t   locRT   RU   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt	   test_find¢   sP    #	c         C   sÄ  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d	 d d d
 ƒ |  j  d d d d d ƒ |  j  d d d d d ƒ |  j  d	 d d d d ƒ |  j  d d d d ƒ |  j  d d d d d ƒ |  j  d	 d d d d d ƒ |  j  d d d d d d  ƒ |  j  d d d d d  d ƒ |  j t d d ƒ |  j t d d d ƒ d d d d g } d } t | ƒ } t ƒ  } xq t | | ƒ D]_ } g  } x: t | ƒ D], } t | | ƒ \ } } | j | | ƒ q¦W| j	 d j
 | ƒ ƒ q�Wt | ƒ } xž | D]– } |  j | ƒ } x~ | D]v } | j | ƒ }	 |	 d	 k }
 | | k } |  j |
 | ƒ |	 d	 k r|  j | |	 |	 t | ƒ !|  j | ƒ ƒ qqWqW|  j  d	 d d d t j d d ƒ d  S(   Ni	   RX   t   rfindRZ   i   R   i    t   abcdiÿÿÿÿt   abczi   i   R\   R   i   i   R   i*   R   R   i   R]   R^   i   (   R/   R_   R5   R>   R   RE   RF   RG   RH   RI   RJ   R   R   Rc   R(   RC   R`   (   R   RL   RM   RN   RO   R
   RP   RQ   RR   Ra   RT   RU   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt
   test_rfindØ   sF    	5c         C   sl  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d d	 ƒ |  j t d d d
 ƒ |  j t d d d d	 ƒ |  j t d d d d ƒ |  j t d d d d ƒ |  j  d d d d ƒ |  j  d d d d d ƒ |  j t d d d d d ƒ |  j  d d d d d d  ƒ |  j  d d d d d  d ƒ |  j t d d ƒ |  j t d d d ƒ d  S(   Ni    RX   t   indexR   i   R[   RZ   i	   i   t   hibt   abcdefghiabt	   abcdefghit   ghii   iÿÿÿÿi   R\   R   i   i   i   R   i*   (   R/   R5   t
   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/string_tests.pyt
   test_index  s    c         C   s‘  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d	 d d d d	 d
 ƒ |  j t d d d ƒ |  j t d d d d ƒ |  j t d d d d	 d
 ƒ |  j t d d d d	 d ƒ |  j t d d d d	 d
 ƒ |  j  d d d d ƒ |  j  d d d d d ƒ |  j t d d d d d ƒ |  j  d d d d d d  ƒ |  j  d d d d d  d ƒ |  j t d d ƒ |  j t d d d ƒ d  S(   Ni   RX   t   rindexR   i   R[   i	   RZ   i    iÿÿÿÿRh   t	   defghiabci   Rj   Rk   i   R\   R   i   i   i   R   i*   (   R/   R5   Rl   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/string_tests.pyt   test_rindex  s     c         C   s@   |  j  d d d ƒ |  j  d d d ƒ |  j t d d d ƒ d  S(   NR   t   HeLLot   loweri*   (   R/   R5   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/string_tests.pyt
   test_lower2  s    c         C   s@   |  j  d d d ƒ |  j  d d d ƒ |  j t d d d ƒ d  S(   Nt   HELLORq   t   upperR   i*   (   R/   R5   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/string_tests.pyt
   test_upper7  s    c         C   s  |  j  d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d ƒ |  j  d d d d ƒ |  j  d	 d	 d d ƒ |  j  d
 d d d ƒ |  j t d d d d ƒ t j d k  rt j d ƒ d k r|  j t d d t j ƒ n  d  S(   Ns   abcab      def
g       his   abcab	def
g	hit
   expandtabsi   s   abcab  def
g   hii   s   abc
ab  def
g   his   abc
ab	def
g	his   abc
ab
def
g
his     a
 bs    	a
	bi   R   i*   i    t   Ps   	a
	bI       (   R/   R5   R>   RC   RD   t   structt   calcsizet   OverflowError(   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/string_tests.pyt   test_expandtabs<  s    $	c         C   s½  |  j  d d d d d g d d ƒ |  j  d d d	 d
 g d d ƒ |  j  d d g d d d  d ƒ |  j  d d d g d d d  d ƒ |  j  d d d	 d
 g d d d  d ƒ |  j  d d d	 d
 g d d d  d ƒ |  j  d d d	 d
 g d d d  t j d ƒ |  j  d g d d d  d ƒ |  j  d g d d d  d ƒ |  j  d d d g d d d  d ƒ |  j  g  d d ƒ |  j  d g d d ƒ |  j  d d g d d ƒ |  j  d d g d d d  d ƒ |  j  d g d d d  d ƒ |  j  d d g d d d  d ƒ |  j  d d d g d d d  d ƒ |  j  d d d	 g d d d  d ƒ |  j  d d g d d ƒ d  d! } |  j  d g d! | d ƒ |  j  d g | d g | d d  d ƒ |  j  d g d" d# g | d d  d" ƒ xb dh D]Z } |  j  d) d* g | d ƒ |  j  d) d* g | d d  ƒ |  j  d) d* g | d d  d ƒ qÄW|  j  d d d	 d
 g d+ d d, ƒ |  j  d+ g d+ d d, d ƒ |  j  d d- g d+ d d, d ƒ |  j  d d d. g d+ d d, d ƒ |  j  d d d	 d
 g d+ d d, d ƒ |  j  d d d	 d
 g d+ d d, d ƒ |  j  d d d	 d
 g d+ d d, t j d ƒ |  j  d+ g d+ d d, d ƒ |  j  d d/ d0 g d1 d d, d ƒ |  j  d2 g d2 d d, ƒ |  j  d/ g d/ d d, ƒ |  j  d3 d/ g d4 d d, ƒ |  j  d/ d5 g d6 d d, ƒ |  j  d/ d7 d/ g d8 d d, ƒ |  j  d d/ d9 g d: d d; d ƒ |  j  d g d! d< d! d=  d d, ƒ |  j  d g d> d? g d< d! d=  d d, d> ƒ |  j  d d d	 d
 g d@ d dA ƒ |  j  d dB g d@ d dA d ƒ |  j  d d dC g d@ d dA d ƒ |  j  d d d	 d
 g d@ d dA d ƒ |  j  d d d	 d
 g d@ d dA d ƒ |  j  d d d	 d
 g d@ d dA t j dD ƒ |  j  d@ g d@ d dA d ƒ |  j  d d/ dE g dF d dA d ƒ |  j  d3 d/ g dG d dH ƒ |  j  d/ dI g dJ d dH ƒ |  j  d/ dK d/ g dL d dH ƒ |  j  d dM g dN d dO ƒ |  j  d/ d/ g dP d dP ƒ |  j  dP g dP d dP d ƒ |  j  dQ dQ g dR d dS ƒ |  j  dT g dT d dU ƒ |  j  d/ g d/ d dP ƒ |  j  dV g dV d dP ƒ |  j  dW dX g dY d dZ ƒ |  j  dW d[ d/ g d\ d dZ ƒ |  j  d g d! d] d! d^  d d_ ƒ |  j  d g d! d] d! d^  d d_ d" ƒ |  j  d g d` da g d] d! d^  d d_ d` ƒ |  j t k	 rndb dc dd g } |  j  | d d de d ƒ n  |  j t df d dg dg dg ƒ |  j t df d d/ ƒ |  j t df d d/ d ƒ d  S(i   Nt   thist   ist   thet   splitt   functions   this is the split functionR   R   R   t   ds   a b c d s   b c ds   a b c di   s   c di   i   i   i    s	     a b c ds   c  ds
   a  b  c  ds	            s     a    s     a    b   s   b   s   a    b   c   s     a    b   c   s   b   c   s   c   s   
	a 	 b  s    a i   i   s   a s   arf	barfs   arf
barfs   arfbarfs   arfbarfs   arfbarft   arft   barfs   a|b|c|dt   |s   b|c|ds   c|dR   s   b||c||ds
   a||b||c||dRd   s   endcase s	   endcase |s
    startcases   | startcaset   bothcases
   |bothcase|s   b c ds   a  b c ds    s   a|iÿÿÿÿi   s	   a|a|a|a|as
   a//b//c//ds   //s   b//c//ds   c//di
   s   b////c////ds   a////b////c////ds   endcase testt   tests
    begincases   test begincases
    bothcase s   test bothcase testt   bct   abbbct   bbR@   R]   t   abbaabt   baR<   t   aabt   aat   At   bobbt
   Abbobbbobbt   bbobbt   Bt   AbbobbBbbobbt   aBLAHiüÿÿÿt   BLAHi   t   aBLAHau   au   bu   c du    R   i*   (   s   arf	barfs   arf
barfs   arfbarfs   arfbarfs   arfbarf(	   R/   R_   RC   RD   R   t	   bytearrayR5   R>   Rl   (   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/string_tests.pyt
   test_splitL  s¢    
"%%"""
''
#""%%""%""%%"
%("c         C   s§  |  j  d d d d d g d d ƒ |  j  d d d	 d
 g d d ƒ |  j  d d
 g d d d  d ƒ |  j  d d	 d
 g d d d  d ƒ |  j  d d d	 d
 g d d d  d ƒ |  j  d d d	 d
 g d d d  d ƒ |  j  d d d	 d
 g d d d  t j d ƒ |  j  d g d d d  d ƒ |  j  d g d d d  d ƒ |  j  d d	 d
 g d d d  d ƒ |  j  g  d d ƒ |  j  d g d d ƒ |  j  d d g d d ƒ |  j  d d g d d d  d ƒ |  j  d g d d d  d ƒ |  j  d d	 g d d d  d ƒ |  j  d d d	 g d d d  d ƒ |  j  d d d	 g d d d  d ƒ |  j  d d g d d d  d  ƒ d! d } |  j  d g d | d ƒ |  j  | d"  g d g | d d  d ƒ |  j  d# g d g d$ | d d  d$ ƒ xb dg D]Z } |  j  d* d+ g | d ƒ |  j  d* d+ g | d d  ƒ |  j  d* d+ g | d d  d ƒ qÊW|  j  d d d	 d
 g d, d d- ƒ |  j  d. d
 g d, d d- d ƒ |  j  d/ d	 d
 g d, d d- d ƒ |  j  d d d	 d
 g d, d d- d ƒ |  j  d d d	 d
 g d, d d- d ƒ |  j  d d d	 d
 g d, d d- t j d0 ƒ |  j  d, g d, d d- d ƒ |  j  d1 d2 d
 g d3 d d- d ƒ |  j  d4 g d4 d d- ƒ |  j  d2 g d2 d d- ƒ |  j  d2 d5 g d6 d d- ƒ |  j  d7 d2 g d8 d d- ƒ |  j  d2 d9 d2 g d: d d- ƒ |  j  d; d	 d
 g d< d d= d ƒ |  j  d g d d> d d?  d d- ƒ |  j  d@ g d g dA d> d d?  d d- dA ƒ |  j  d d d	 d
 g dB d dC ƒ |  j  dD d
 g dB d dC d ƒ |  j  dE d	 d
 g dB d dC d ƒ |  j  d d d	 d
 g dB d dC d ƒ |  j  d d d	 d
 g dB d dC d ƒ |  j  d d d	 d
 g dB d dC t j dF ƒ |  j  dB g dB d dC d ƒ |  j  dG d2 d
 g dH d dC d ƒ |  j  d2 d5 g dI d dJ ƒ |  j  d7 d2 g dK d dJ ƒ |  j  d2 dL d2 g dM d dJ ƒ |  j  dN d	 g dO d dP ƒ |  j  d2 d2 g dQ d dQ ƒ |  j  dQ g dQ d dQ d ƒ |  j  dN dN g dR d dS ƒ |  j  dT g dT d dU ƒ |  j  d2 g d2 d dQ ƒ |  j  dV g dV d dQ ƒ |  j  dW dX g dY d dZ ƒ |  j  d2 d[ dX g d\ d dZ ƒ |  j  d g d d] d d"  d d^ ƒ |  j  d g d d] d d"  d d^ d_ ƒ |  j  d` g d g d$ d] d d"  d d^ d$ ƒ |  j t k	 rXda db dc g } |  j  | d d dd d ƒ n  |  j t de d df df df ƒ |  j t de d d2 ƒ |  j t de d d2 d ƒ d  S(h   NR}   R~   R   t   rsplitR�   s   this is the rsplit functionR   R   R   R‚   s   a b c d s   a b cs   a b c di   s   a bi   i   i   i   i    s	   a b c d  s   a  bs
   a  b  c  ds	            s     a    s     a    b   s     as     a    b   cs     a    b   c   s     a    bs   
	a 	 b  iX   s    a iüÿÿÿs    a  ai   s   arf	barfs   arf
barfs   arfbarfs   arfbarfs   arfbarfRƒ   R„   s   a|b|c|dR…   s   a|b|cs   a|bid   s   a||b||cR   s
   a||b||c||dRd   s
    begincases   | begincases   endcase s	   endcase |R†   s
   |bothcase|s   a  bs   a  b c ds    s   a|iÿÿÿÿs	   a|a|a|a|ai   s
   a//b//c//ds   //s   a//b//cs   a//bi   s   a////b////cs   a////b////c////ds   test begincaseR‡   s   endcase tests
    bothcase s   test bothcase testR]   R‰   RŠ   R@   R‹   RŒ   R<   R�   RŽ   t   bbobR�   t
   bbobbbobbAR’   R“   t   bbobbBbbobbAR•   R–   i   R—   u   a bu   cu   du    R   i*   (   s   arf	barfs   arf
barfs   arfbarfs   arfbarfs   arfbarf(	   R/   R_   RC   RD   R   R˜   R5   R>   Rl   (   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/string_tests.pyt   test_rsplit¯  s¨    
"%%"




''
#""%%""%""%%"
%("c         C   sç   |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ d } |  j  d	 | d ƒ |  j  d
 | d ƒ |  j  d | d ƒ |  j  d d d d  ƒ |  j  d d d d  ƒ |  j  d d d d  ƒ |  j  d d d d  ƒ d  S(   NR   s      hello   t   strips   hello   t   lstrips      hellot   rstrips    	
abc 	
RZ   s	   abc 	
s	    	
abc(   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/string_tests.pyt   test_strip_whitespace  s    c         C   sf  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d	 d
 d d
 ƒ |  j  d d
 d d ƒ |  j t k	 rt j r|  j  t d d ƒ d d t d d ƒ ƒ |  j  t d d ƒ d d t d d ƒ ƒ |  j  t d d ƒ d d t d d ƒ ƒ n  |  j t d d d d ƒ |  j t d d d d ƒ |  j t d d d d ƒ d  S(   NR   t   xyzzyhelloxyzzyRŸ   t   xyzt
   helloxyzzyR    t
   xyzzyhelloR¡   R   t   mississippit
   mississippR
   t   asciii*   (   R/   R   R˜   R    t   have_unicodet   unicodeR5   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/string_tests.pyt
   test_strip'  s     c         C   s¼   |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j t k rŒ |  j d	 t d ƒ j d d
 ƒ ƒ n |  j  d	 d d d d
 ƒ |  j t d d ƒ d  S(   Ns
   abc       RZ   t   ljusti
   s   abc   i   i   i   s
   abc*******t   *(   R/   R   R˜   R(   R­   R5   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/string_tests.pyt
   test_ljustB  s    %c         C   s¼   |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j t k rŒ |  j d	 t d ƒ j d d
 ƒ ƒ n |  j  d	 d d d d
 ƒ |  j t d d ƒ d  S(   Ns
          abcRZ   t   rjusti
   s      abci   i   i   s
   *******abcR®   (   R/   R   R˜   R(   R°   R5   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/string_tests.pyt
   test_rjustN  s    %c         C   sÂ   |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j t k r’ t d ƒ j d d	 ƒ } |  j d
 | ƒ n |  j  d
 d d d d	 ƒ |  j t d d ƒ d  S(   Ns
      abc    RZ   t   centeri
   s    abc  i   i   i   R®   s
   ***abc****(   R/   R   R˜   R²   R(   R5   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/string_tests.pyt   test_centerZ  s    c         C   s-   |  j  d d d ƒ |  j t d d d ƒ d  S(   Ns   hEllO CoMPuTErSs   HeLLo cOmpUteRst   swapcaseR   i*   (   R/   R5   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/string_tests.pyt   test_swapcaseg  s    c         C   s�  |  j  } | d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d d d d d d ƒ | d d d d d t j ƒ | d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d	 d d d d
 ƒ | d d d d d ƒ | d d d d d d ƒ | d d d d d t j ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d d d d d d ƒ | d d d d d t j ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d d d d d d ƒ | d d d d d t j ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d d d d d ƒ | d  d  d d d ƒ | d! d" d d# d" d d d d$ ƒ | d d% d d% d ƒ | d& d' d d% d ƒ | d d( d d% d ƒ | d d) d d% d ƒ | d* d+ d d% d ƒ | d, d, d d% d ƒ | d- d- d d% d ƒ | d. d/ d d% d ƒ | d0 d1 d d% d t j ƒ | d0 d1 d d% d d ƒ | d0 d1 d d% d d ƒ | d0 d1 d d% d d ƒ | d2 d1 d d% d d ƒ | d1 d1 d d% d d ƒ | d0 d1 d d% d ƒ | d3 d3 d d% d ƒ | d4 d4 d d% d ƒ | d5 d6 d d5 d ƒ | d7 d8 d d5 d ƒ | d9 d: d d5 d ƒ | d9 d9 d d5 d ƒ | d; d; d d< d< ƒ | d= d; d d< d> ƒ | d= d; d d< d> t j ƒ | d= d; d d< d> d ƒ | d= d; d d< d> d ƒ | d= d; d d< d> d ƒ | d? d; d d< d> d ƒ | d; d; d d< d> d ƒ | d; d; d d@ dA ƒ | dB d; d dC dD ƒ | dE dF d dC dD ƒ | dG d; d dH dI ƒ | dJ dK d dH dI ƒ | d; d; d dL dI ƒ | dM dN d dO dP ƒ | dM dN d dO dP t j ƒ | dM dN d dO dP d ƒ | dM dN d dO dP d ƒ | dM dN d dO dP d ƒ | dQ dN d dO dP d ƒ | dR dN d dO dP d ƒ | dN dN d dO dP d ƒ | dS dT d d5 dU ƒ | dV dW d d5 dU ƒ | dT dT d dX dX ƒ | dY dZ d d[ d\ ƒ | dY dZ d d[ d\ d ƒ | dY dZ d d[ d\ t j ƒ | dY dZ d d[ d\ d ƒ | d] dZ d d[ d\ d ƒ | dZ dZ d d[ d\ d ƒ | d^ d_ d dL d` ƒ | dZ dZ d dA d\ ƒ | da db d dc dd ƒ | da db d dc dd t j ƒ | da db d dc dd d ƒ | da db d dc dd d ƒ | da db d dc dd d ƒ | de db d dc dd d ƒ | df db d dc dd d ƒ | db db d dc dd d ƒ | dT dg d dT d5 ƒ | dh di d dT d5 ƒ | dj dj d d5 dk ƒ t j ƒ  � t d@ ƒ } t dl ƒ } Wd  QX| dm d3 d | | ƒ | dn d3 d | | ƒ |  j  do dp d dI dq d ƒ |  j  dr dp d dI d ƒ |  j  ds dp d dI dq d ƒ |  j  dt dp d dI dq d ƒ |  j  dt dp d dI dq d ƒ |  j  dp dp d dI dq d ƒ |  j  dt dp d dI dq ƒ |  j  dp dp d du dq ƒ |  j  dp dp d du dq d ƒ |  j  dv d3 d d dw ƒ |  j  dx d3 d d dw d ƒ |  j  d3 d3 d d dw d ƒ |  j  d d d d d ƒ |  j  d3 d3 d dy dz d ƒ |  j  d3 d3 d d{ dz ƒ |  j  d d| d d| d ƒ |  j  d d} d d| d ƒ |  j  du d~ d d| d ƒ |  j t d d ƒ |  j t d d d€ ƒ |  j t d d d€ d� ƒ |  j t d d d� d€ ƒ d  S(‚   NR   RK   R�   id   s   *A*R®   s   *1A*1s   *1s   *-#A*-#s   *-#s   *-A*-A*-t   AAs   *-iÿÿÿÿi   i   s   *-A*-Ai   s   *-AAi   i    t   AAAt
   AAAAAAAAAAt   BCDt   ABACADAi   t   BCDAt   BCADAt   BACADAt   ABCADt   ABCADAAs   *************s   ^A^t   ^iè  iç  R   t   atert   theatert   thethet   thethethetheR<   t   theatheatheatheat   thatt   thaets   here and res   here and theres   here and re and res   here and there and theres   here and re and thereRZ   t   abcdefgt   bobt   bbobobt   bobXbobt   bbobobXbbobobt   aaaaaaat
   aaaaaaabobs   Who goes there?t   os   WhO gOes there?t   Os   WhO goes there?R   t   qs   who goes there?t   Wt   ws   wwho goes there?wws   WWho goes there?WWs   Who goes there!t   ?t   !s   Who goes there!!s   Who goes there??t   .s   Th** ** a t**sues   This is a tissueR~   s   **s   Th** ** a tissues   Th** is a tissuet   cobobt   bobobt   cobt   cobobXcobocobt   bobobXbobobobt   bott   ReyKKjaviKKt	   Reykjavikt   kt   KKt
   ReyKKjaviks   A----B----C----s   A.B.C.s   ----s   ham, ham, eggs and hams   spam, spam, eggs and spamt   spamt   hams   ham, ham, eggs and spams   ham, spam, eggs and spamt   bobobobt   bobobXbobobt   bobobobXbobobobt   BOBOBOBt   bobbyR   t   bbct   aacs   one@two!three!s   one!two!three!t   @t   onetwothrees   one@two@three!s   one@two@three@R   s   -a-b-c-t   -s   -a-b-cR]   s   --t   xyR"   t   123123t   123x123R   i*   t   h(   R/   RC   RD   R    t   check_py3k_warningst   bufferR5   R>   (   R   t   EQRŒ   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/string_tests.pyt   test_replacel  s*   	%														i   i    Rx   i   s    only applies to 32-bit platformsc         C   s]   d d } |  j  t | d d | ƒ |  j  t | d d | ƒ |  j  t | d d | | ƒ d  S(   NR�   i   i   RK   R   R¶   i   (   R5   R{   (   R   t   A2_16(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_replace_overflow!  s    
c         C   s  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d	 ƒ |  j  d
 d
 d d ƒ |  j  d
 d
 d d ƒ |  j  d d
 d d	 ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j t d d ƒ d  S(   NR"   t   zfilli   i   t   0123i   s   +123s   +0123i   s   -123s   -0123t   000R   t   34i   t   0034(   R/   R5   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/string_tests.pyt
   test_zfill*  s    NI       ($   R   R   R_   R   R   R%   R/   R5   R6   R9   R?   RW   Rb   Rf   Rm   Rp   Rs   Rv   R|   R™   Rž   R¢   R¬   R¯   R±   R³   Rµ   Rõ   t   unittestt   skipIfRC   RD   Ry   Rz   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/string_tests.pyR      s8   										<	6	/						c	g							µ't   NonStringModuleTestc           B   sY   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   sŸ   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j t d d d	 ƒ d  S(
   NR   t   islowerR   R�   s   
RZ   t   aBcs   abc
i*   (   R/   t   Falset   TrueR5   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/string_tests.pyt   test_islower?  s    c         C   sŸ   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j t d	 d d
 ƒ d  S(   NR   t   isupperR   R�   s   
t   ABCt   AbCs   ABC
RZ   i*   (   R/   R  R  R5   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/string_tests.pyt   test_isupperI  s    c         C   së   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d	 d ƒ |  j  t d
 d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j t d d d ƒ d  S(   NR   t   istitleR   R�   s   
s   A Titlecased Lines   A
Titlecased Lines   A Titlecased, Lines   Not a capitalized Strings   Not	a Titlecase Strings   Not--a Titlecase Stringt   NOTRZ   i*   (   R/   R  R  R5   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/string_tests.pyt   test_istitleS  s    c         C   s²   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d	 d ƒ |  j t d
 d d ƒ d  S(   NR   t   isspaceR   t    s   	s   s   
s    	
s    	
aRZ   i*   (   R/   R  R  R5   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/string_tests.pyt   test_isspacea  s    c         C   sŸ   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j t d d d	 ƒ d  S(
   NR   t   isalphaR   R�   s   
RZ   t   aBc123s   abc
i*   (   R/   R  R  R5   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/string_tests.pyt   test_isalphal  s    c         C   s²   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d	 d ƒ |  j t d
 d d ƒ d  S(   NR   t   isalnumR   R�   s   
t	   123abc456t   a1b3cs   aBc000 s   abc
RZ   i*   (   R/   R  R  R5   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/string_tests.pyt   test_isalnumv  s    c         C   sy   |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j  t d d ƒ |  j t d d d ƒ d  S(	   NR   t   isdigitR   t   0t
   0123456789t   0123456789aRZ   i*   (   R/   R  R  R5   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/string_tests.pyt   test_isdigit�  s    c         C   sŒ   |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ |  j  d d d ƒ |  j  d d	 d ƒ |  j  d
 d d ƒ |  j t d d d ƒ d  S(   Ns    Hello s    hello t   titles   Hello s   hello s   Format This As Title Strings   fOrMaT thIs aS titLe Strings   Format,This-As*Title;Strings   fOrMaT,thIs-aS*titLe;Stringt   Getintt   getIntR   i*   (   R/   R5   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/string_tests.pyt
   test_titleŠ  s    c         C   sù   |  j  d d d d g d d ƒ |  j  d d d d g d d ƒ |  j  d d d g d d ƒ |  j  d d d g d	 d ƒ |  j  d d d d g d
 d ƒ |  j  d d d d d g d d ƒ |  j  d d d d d g d d d ƒ |  j t d d d d ƒ d  S(   NRZ   R[   R   Rk   s   abc
def
ghit
   splitliness   abc
def

ghis   abc
def
ghis   abc
def
ghi
s   abc
def
ghi
s   
abc
def
ghi
s   
s   abc
s   def
s   ghi
s   i   i*   (   R/   R5   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/string_tests.pyt   test_splitlines“  s    "%(   R   R   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/string_tests.pyR   ;  s   	
	
			
					t   MixinStrUnicodeUserStringTestc           B   s¡   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 e j d	 „  ƒ Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sf  |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d d ƒ |  j  t d d d d	 ƒ |  j  t d d d d
 ƒ |  j  t d d d d
 ƒ |  j  t d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d ƒ |  j t d d ƒ |  j t d d d ƒ |  j  t d d d" ƒ |  j  t d d d# ƒ |  j  t d d d$ ƒ |  j  t d d d% ƒ |  j  t d d d& d ƒ |  j  t d d d' d ƒ |  j  t d d d( d d ƒ |  j  t d d d) d d ƒ |  j  t d d d* d d! ƒ |  j t d d d+ ƒ d  S(,   NR   t
   startswitht   hes   hello worldR   t   elloi   RÏ   i   i   t   loi   t
   helloworldt   lowoi   i   i    iÿÿÿÿiËÿÿÿiöÿÿÿiûÿÿÿiüÿÿÿiþÿÿÿiýÿÿÿi÷ÿÿÿi*   t   hat   llot   helloxt   hellowot   rldt   heli   (   R$  R)  (   R&  R*  (   R+  R   (    (   R,  R-  R(  (   R,  R%  R-  (   R&  R$  (   R$  R.  (   R$  R.  (   i*   (   R/   R  R  R5   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/string_tests.pyt   test_startswith¤  sJ    

c         C   sñ  |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d d	 d
 ƒ |  j  t d d d d	 d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d	 d ƒ |  j  t d d d d d ƒ |  j  t d d d d	 d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d
 ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d d ƒ |  j  t d d d d	 d ƒ |  j  t d d d d d ƒ |  j t d d ƒ |  j t d d d ƒ |  j  t d d d) ƒ |  j  t d d d* ƒ |  j  t d d d+ ƒ |  j  t d d d, ƒ |  j  t d d d- d	 ƒ |  j  t d d d. d	 d ƒ |  j  t d d d/ d d ƒ |  j  t d d d0 d d ƒ |  j  t d d d1 d d ƒ |  j t d d d2 ƒ d  S(3   NR   t   endswithR&  R$  R   s   hello worldR'  t   worli   i	   t   worldi   R(  i   i   i   i   i   R]   i    iþÿÿÿiýÿÿÿiöÿÿÿiúÿÿÿiûÿÿÿiÿÿÿÿiùÿÿÿi�ÿÿÿiøÿÿÿiüÿÿÿi*   R)  R*  R+  R,  R-  R%  t   hellt   ellR.  (   R$  R)  (   R&  R*  (   R+  R   (    (   R,  R-  R(  (   R,  R%  R-  (   R3  R4  (   R$  R.  (   R$  R3  (   i*   (   R/   R  R  R5   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/string_tests.pyt   test_endswithÑ  sR    
c         C   sÊ   |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d d d ƒ |  j  t d	 d d ƒ |  j  t d d d ƒ d  S(
   NR   t   __contains__RZ   s    s    abcs   abc R   t   asdft   asd(   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/string_tests.pyt   test___contains__  s    c         C   sØ   |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d t d d	 ƒ ƒ |  j  d d d t d d
 ƒ ƒ |  j  d d d t d d ƒ ƒ |  j  d d d t d d ƒ ƒ |  j t d d d ƒ d  S(   Nu   aRZ   R   i    u   ciÿÿÿÿl    u   abci   iè  i   u    R[   (   R/   t   sliceR5   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/string_tests.pyt   test_subscript  s    c         C   sû   |  j  d d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d ƒ |  j  d d d d	 d ƒ |  j  d
 d d d	 d ƒ |  j  d d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d ƒ |  j  d d d d d	 ƒ |  j t d d d ƒ d  S(   NRZ   t   __getslice__i    iè  i   R]   i   Rˆ   i   R   R   iÐ  R[   (   R/   R5   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/string_tests.pyt
   test_slice  s    c         C   s•   t  j t  j } d
 } xx | D]p } xg | D]_ } xV | d D]J } t | ƒ | | | … } |  j d j | ƒ | d	 t | | | ƒ ƒ q; Wq* Wq Wd  S(   Ni    i   i   i)   iÿÿÿÿiþÿÿÿiÛÿÿÿu    R   (   i    Ni   i   i)   iÿÿÿÿiþÿÿÿiÛÿÿÿ(   t   stringt   ascii_lettersRM   R_   R   R/   RJ   R:  (   R   t   st   indicest   startt   stopt   stept   L(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_extended_getslice%  s    c         C   s…   |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j t d d ƒ |  j t d d d ƒ d  S(	   NR   RZ   t   __mul__iÿÿÿÿi    i   t	   abcabcabci   (   R/   R5   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/string_tests.pyt   test_mul1  s    c         C   s  |  j  d d d d d d d g ƒ |  j  d d	 d d ƒ |  j  d
 d	 d d  ƒ |  j  d d	 d d! ƒ |  j  d d d t ƒ  ƒ |  j  d d d d" ƒ |  j  d d d t d g ƒ ƒ t j r�|  j  t d ƒ t d ƒ d d d d g ƒ |  j  t d ƒ d d t d ƒ d d g ƒ |  j  t d ƒ d d d t d ƒ d g ƒ |  j  t d ƒ d d d d t d ƒ g ƒ |  j t d d d t d ƒ d g ƒ n  xy d d d g D]h } |  j  d | d | d  d d d | g | ƒ |  j  d | d | d  d d d | f | ƒ qŸW|  j t d d t ƒ  ƒ |  j  d d d t	 ƒ  ƒ |  j t d d ƒ |  j t d d d  ƒ |  j t d d d ƒ |  j t d d t d d d g ƒ ƒ y& d „  } |  j d ƒ j | ƒ  ƒ Wn5 t k
 rþ} d t | ƒ k r|  j d ƒ qn X|  j d ƒ d  S(#   Ns   a b c dR  RJ   R   R   R   R‚   Rd   R   t   bdt   acs   w x y zRZ   t   zs   a.b.cRÖ   i   i   i   i}   Rí   iÿÿÿÿs   a b ci   R   l   { c           s   s   d d Vd  S(   Ni   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/string_tests.pyt   f\  s    t   +s   join() ate exception messages   exception not raised(   R   R   R   R‚   (   R   R   R   R‚   (   R   R   R   R   (   RZ   (   R/   R   R   R    Rª   R«   R5   R>   R   R   R_   R   RJ   R   t   fail(   R   R
   RM  t   e(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt	   test_join<  s>    "	++++(%	c         C   s@  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d	 d d ƒ |  j  d d	 d d ƒ |  j  d
 d	 d d ƒ |  j  d d	 d d ƒ |  j  d d d d ƒ |  j  d d	 d d ƒ x* d6 D]" } |  j t t f d	 d | ƒ q· Wt j d } t | ƒ } | d d7 k r| d  } n  |  j  d d d d ƒ |  j  d d d d ƒ |  j  d d d d ƒ |  j  | d d | ƒ |  j d d t | ƒ ƒ |  j  d d d d ƒ |  j  d d  d d ƒ |  j t	 d! d ƒ |  j t	 d" d d ƒ |  j t	 d# d d8 ƒ |  j t	 d	 d d9 ƒ |  j t d$ d i  ƒ |  j t	 d% d d: ƒ |  j t	 d d d ƒ |  j t	 d d d; ƒ |  j  d( d) d i d( d* 6ƒ |  j  d+ d d, d- d d+ d ƒ |  j t	 d. d d< ƒ |  j t	 d/ d d= ƒ |  j t d0 d d> ƒ d1 t f d2 „  ƒ  Y} |  j t	 d! d | ƒ  ƒ d1 t f d3 „  ƒ  Y} |  j  d4 d5 d | ƒ  ƒ d  S(?   Ns   +hello+s   +%s+t   __mod__R   s   +10+s   +%d+i
   R   s   %ct   "i"   t   $i$   t   10s   %ds   i   iœÿÿÿi    l   
 iÿÿÿÿRE  t   ls    42s   %3ldi*   t   42l   * g      E@s   0042.00s   %07.2fs   %07.2FRZ   s   %(foo)ss   %s%ss   %(foos   %(foo)s %(bar)st   fooy                t   bars	   %((foo))ss   (foo)ig   R   s   %sxs   %*ss   %10.*fs   %10t   Xc           B   s   e  Z RS(    (   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/string_tests.pyRZ  ‘  s    c           B   s   e  Z d  „  Z RS(   c         S   s   | S(   N(    (   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/string_tests.pyR   ”  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/string_tests.pyRZ  “  s   s   melon apples   %(melon)s %(apple)s(   iœÿÿÿi    (   RE  RV  (   i*   (   N(   RX  i*   y      E@        (   RX  RY  (   RX  g      E@(   i*   (   R/   R5   Rl   R{   RC   RD   R   R6   t   floatR>   R_   R+   t	   Exception(   R   t   ordinalt	   longvaluet
   slongvalueRZ  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_formattinge  sL      "c         C   s8  d d l  m } m } m } d | j ƒ  d >d } t | d ƒ } | t j k rr |  j t	 d d | d f ƒ n  t | d ƒ } | t j k r´ |  j t	 d d | d d	 f ƒ n  t | d ƒ } | t j k rò |  j t	 d d | d f ƒ n  t | d ƒ } | t j k r4|  j t	 d d | d d	 f ƒ n  d  S(
   Niÿÿÿÿ(   t   PY_SSIZE_T_MAXt   INT_MAXt   UINT_MAXi   s   %*sRR  R   s   %.*fg      ð?i   (
   t	   _testcapiRa  Rb  Rc  t
   bit_lengtht   intRC   RD   R5   R{   (   R   Ra  Rb  Rc  t   SIZE_MAXt   widtht   prec(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_formatting_c_limits˜  s    #c         C   sg   x` t  d ƒ D]R } d | } d } x9 t  d ƒ D]+ } | d d d } |  j | d | ƒ q0 Wq Wd  S(	   Nid   s   %%.%ifg{®Gáz„?i<   gê.DTû!	@g      @g      $@RR  (   RF   R6   (   R   Ri  t   formatR!   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/string_tests.pyt   test_floatformattingª  s    
c         C   sî   |  j  d d d ƒ |  j  t d d ƒ |  j  d d d ƒ |  j  t d d ƒ |  j  d d d d d ƒ |  j  t d d ƒ |  j  d d d ƒ |  j  t d d ƒ |  j  d d d	 ƒ |  j  t d d ƒ |  j  d d d
 ƒ |  j  t d d ƒ d  S(   NR   R�   Rr   R  Ru   R  RK   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/string_tests.pyt   test_inplace_rewrites³  s    c         C   s½   |  j  d d d d ƒ d } |  j  d | d d ƒ |  j  d | d d ƒ |  j  d | d d ƒ |  j  d | d d ƒ |  j t | d d
 ƒ |  j t | d d  ƒ |  j d j d ƒ d ƒ d  S(   Ns   this is the part   tis   tion methods   this is the partition methodt	   partitions   http://www.python.orgt   https   ://s   www.python.orgR   RÔ   s   http://s   http://www.python.t   orgs   a/b/cu   /R   t   /s   b/c(   s   this is the parRn  s   tion method(   Rp  s   ://s   www.python.org(   s   http://www.python.orgR   R   (   R   s   http://s   www.python.org(   s   http://www.python.Rq  R   (   R   Rr  s   b/c(   R/   R5   Rl   R>   R_   R(   Ro  (   R   t   S(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_partitionÆ  s    	c         C   s½   |  j  d d d d ƒ d } |  j  d | d d ƒ |  j  d | d d ƒ |  j  d | d d ƒ |  j  d | d d ƒ |  j t | d d
 ƒ |  j t | d d  ƒ |  j d j d ƒ d ƒ d  S(   Ns   this is the rpartiRn  s	   on methods   this is the rpartition methodt
   rpartitions   http://www.python.orgRp  s   ://s   www.python.orgR   RÔ   s   http://s   http://www.python.Rq  s   a/b/cu   /s   a/bRr  R   (   s   this is the rpartiRn  s	   on method(   Rp  s   ://s   www.python.org(   R   R   s   http://www.python.org(   R   s   http://s   www.python.org(   s   http://www.python.Rq  R   (   s   a/bRr  R   (   R/   R5   Rl   R>   R_   R(   Ru  (   R   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/string_tests.pyt   test_rpartitionØ  s    	c         C   s  d } |  j  d | d d d  ƒ |  j  d | d d d d  ƒ |  j  d | d d d  d ƒ |  j  d | d d d  d  ƒ |  j  d | d	 d d  ƒ |  j  d | d	 d d d  ƒ |  j  d | d	 d d  d ƒ |  j  d | d	 d d  d  ƒ |  j  d | d
 d d  ƒ |  j  d | d
 d d d  ƒ |  j  d | d
 d d  d ƒ |  j  d | d
 d d  d  ƒ |  j  d | d d d  ƒ |  j  d | d d d d  ƒ |  j  d | d d d  d ƒ |  j  d | d d d  d  ƒ |  j  d | d d d  ƒ |  j  d | d d d d  ƒ |  j  d | d d d  d ƒ |  j  d | d d d  d  ƒ |  j  t | d d d  ƒ |  j  t | d d d d  ƒ |  j  t | d d d  d ƒ |  j  t | d d d  d  ƒ |  j  t | d d d  ƒ |  j  t | d d d d  ƒ |  j  t | d d d  d ƒ |  j  t | d d d  d  ƒ d  S(   NR   i   RY   RV  i   iþÿÿÿi    Rñ   Rc   Rg   Rn   RA   i   R   R0  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/string_tests.pyt   test_none_argumentsê  s:    c         C   sþ   d } d } |  j  t d | j | d  d  d  ƒ |  j  t d | j | d  d  d  ƒ |  j  t d | j | d  d  d  ƒ |  j  t d | j | d  d  d  ƒ |  j  t d | j | d  d  d  ƒ |  j  t d | j | d  d  d  ƒ |  j  t d	 | j	 | d  d  d  ƒ d  S(
   NR   R   s   \bfind\bs	   \brfind\bs	   \bindex\bs
   \brindex\bs   ^count\(s   ^startswith\(s   ^endswith\((
   t   assertRaisesRegexpR>   RY   R_   Rc   Rg   Rn   RA   R#  R0  (   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/string_tests.pyt*   test_find_etc_raise_correct_error_messages  s     (   R   R   R/  R5  R9  R;  R=  RF  RI  RQ  R`  R    t   cpython_onlyRj  Rl  Rm  Rt  Rv  Rw  Ry  (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyR"  Ÿ  s    	-	1						)	3						&t   MixinStrStringUserStringTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s]   |  j  d j t t t d ƒ ƒ ƒ j d d ƒ t j d d ƒ ƒ |  j t	 t j d d ƒ d  S(   NR   i   RZ   R¤   t   xyzw(
   R(   RJ   t   mapt   chrRF   RK   R>  t	   maketransR0   Rl   (   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/string_tests.pyt   test_maketrans'  s    'c         C   sý   t  j d d ƒ } |  j d d d | d ƒ t  j d d ƒ } |  j d	 d d | ƒ |  j d d d | ƒ |  j d
 d d | d ƒ |  j d d d d  d ƒ |  j d d d d  d ƒ |  j d d d d  ƒ |  j t d d d d ƒ |  j t d d d ƒ d  S(   NRZ   R¤   t   xyzxyzt	   xyzabcdeft	   translateR[   R   R�   t   Abct   yzR   t   yxt   zyzzxRL  R   s	   too shortRŸ   (   R>  R  R/   R_   R5   Rl   (   R   t   table(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_translate.  s    (   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/string_tests.pyR{  #  s   	t   MixinStrUserStringTestc           B   s&   e  Z e j e j d  ƒ d „  ƒ Z RS(   s   no unicode supportc         C   s'  d d d d g } xf | D]^ \ } } t  j ƒ  � |  j | d	 d
 | ƒ Wd  QXt  j ƒ  � |  j d	 | d | ƒ Wd  QXq Wy d d  l } Wn t k
 rž nY Xd } t  j ƒ  � |  j | d	 d
 d ƒ Wd  QXt  j ƒ  � |  j d	 | d d ƒ Wd  QX|  j t d d d ƒ |  j t d d
 d ƒ d  S(   Nt   rot13s   uryyb jbeyqt   base64s   aGVsbG8gd29ybGQ=
t   hext   68656c6c6f20776f726c64t   uus)   begin 666 <data>
+:&5L;&\@=V]R;&0 
 
end
s   hello worldt   encodet   decodeiÿÿÿÿs   xœËHÍÉÉW(Ï/ÊI ]t   zlibR¤   i*   (   R‹  s   uryyb jbeyq(   RŒ  s   aGVsbG8gd29ybGQ=
(   R�  RŽ  (   R�  s)   begin 666 <data>
+:&5L;&\@=V]R;&0 
 
end
(   R    Rò   R/   R’  t   ImportErrorR5   R>   (   R   t   codecst   encodingt   dataR’  (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_encoding_decodingA  s(    	 (   R   R   Rþ   t
   skipUnlessR    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/string_tests.pyRŠ  =  s   t   MixinStrUnicodeTestc           B   s   e  Z d  „  Z RS(   c         C   sâ  |  j  } d | f d „  ƒ  Y} | d ƒ } | ƒ  j | g ƒ } |  j | | k	 ƒ |  j t | ƒ | k ƒ | d ƒ } | ƒ  j | g ƒ } |  j | | k ƒ | t k r*| d ƒ } d j | g ƒ } |  j | | k	 ƒ |  j t | ƒ | k ƒ | d ƒ } d j | g ƒ } |  j | | k ƒ n´ | t k rÍ| d ƒ } d j | g ƒ } |  j | | k	 ƒ |  j t | ƒ t k ƒ | d ƒ } d j | g ƒ } |  j | | k	 ƒ |  j t | ƒ t k ƒ n |  j d | ƒ d  S(   Nt   subclassc           B   s   e  Z RS(    (   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/string_tests.pyRš  e  s   Rd   R   u    s*   unexpected type for MixinStrUnicodeTest %r(   R   RJ   R)   R$   R«   R   RO  (   R   t   tRš  t   s1t   s2(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/string_tests.pyt   test_bug1001011_  s6    	(   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/string_tests.pyR™  \  s   (   t   __doc__Rþ   R>  RC   Ry   R‡   R    R   R   R   R   t   TestCaseR   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/string_tests.pyt   <module>   s    0ÿ ÿ ÿ )dÿ …