ó
ŒwÛjc           @   s®   d  d l  Z  e  j d d e d ƒ d  d l Z d  d l Z d  d l m Z e j d ƒ Z d e j	 f d „  ƒ  YZ
 d	 Z d
 d d „  ƒ  YZ d „  Z e d k rª e ƒ  n  d S(   iÿÿÿÿNt   ignores   strop functions are obsolete;s   test.test_strop|unittest(   t   test_supportt   stropt   StropFunctionTestCasec           B   sB  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 e j e j d k d ƒ d „  ƒ Z e j d e j d d d ƒ d „  ƒ Z e j d e j d d d ƒ d „  ƒ Z e j e j d k d ƒ d „  ƒ Z RS(   c         C   sL   |  j  t j d ƒ d k ƒ |  j t t j d ƒ |  j t t j d ƒ d  S(   Ns    1 i   s    1xs    x1 (   t
   assertTrueR   t   atoit   assertRaisest
   ValueError(   t   self(    (    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_strop.pyt	   test_atoi   s    c         C   sL   |  j  t j d ƒ d k ƒ |  j t t j d ƒ |  j t t j d ƒ d  S(   Ns    1 l    s    1xs    x1 (   R   R   t   atolR   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_strop.pyt	   test_atol   s    c         C   sL   |  j  t j d ƒ d k ƒ |  j t t j d ƒ |  j t t j d ƒ d  S(   Ns    1 g      ð?s    1xs    x1 (   R   R   t   atofR   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_strop.pyt	   test_atof   s    c         C   s<   |  j  t j d ƒ d k ƒ |  j  t j d ƒ d k ƒ d  S(   Ns    hello s   hello s   Hello (   R   R   t
   capitalize(   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_strop.pyt   test_capitalize   s    c         C   sg   |  j  t j d d ƒ d k ƒ |  j  t j d d d ƒ d k ƒ |  j  t j d d d ƒ d k ƒ d  S(	   Nt   abcdefghiabct   abci    i   i	   t   defi   iÿÿÿÿ(   R   R   t   find(   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_strop.pyt	   test_find!   s    "c         C   s#   |  j  t j d d ƒ d k ƒ d  S(   NR   R   i	   (   R   R   t   rfind(   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_strop.pyt
   test_rfind&   s    c         C   s    |  j  t j d ƒ d k ƒ d  S(   Nt   HeLLot   hello(   R   R   t   lower(   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_strop.pyt
   test_lower)   s    c         C   s    |  j  t j d ƒ d k ƒ d  S(   NR   t   HELLO(   R   R   t   upper(   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_strop.pyt
   test_upper,   s    c         C   s    |  j  t j d ƒ d k ƒ d  S(   Ns   HeLLo cOmpUteRss   hEllO CoMPuTErS(   R   R   t   swapcase(   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_strop.pyt   test_swapcase/   s    c         C   s    |  j  t j d ƒ d k ƒ d  S(   Ns    	
 hello 	
 R   (   R   R   t   strip(   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_strop.pyt
   test_strip2   s    c         C   s    |  j  t j d ƒ d k ƒ d  S(   Ns    	
 hello 	
 s	   hello 	
 (   R   R   t   lstrip(   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_strop.pyt   test_lstrip5   s    c         C   s    |  j  t j d ƒ d k ƒ d  S(   Ns    	
 hello 	
 s	    	
 hello(   R   R   t   rstrip(   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_strop.pyt   test_rstrip8   s    c         C   s  t  j } |  j | d d d d ƒ d k ƒ |  j | d d d d ƒ d k ƒ |  j | d d d d ƒ d	 k ƒ |  j | d d d d
 ƒ d	 k ƒ |  j | d d d d ƒ d	 k ƒ |  j | d d d ƒ d	 k ƒ |  j | d d d ƒ d k ƒ |  j | d d d d ƒ d k ƒ d  S(   Ns   one!two!three!t   !t   @i   s   one@two!three!i   s   one@two@three!i   s   one@two@three@i   i    t   x(   R   t   replaceR   (   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_strop.pyt   test_replace;   s"    	






c         C   s{  t  j } |  j | d ƒ d d d d d g k ƒ |  j | d d ƒ d	 d
 d d g k ƒ |  j | d d d ƒ d	 d
 d g k ƒ |  j | d d  d ƒ d	 d g k ƒ |  j | d d  d ƒ d	 d
 d g k ƒ |  j | d d  d ƒ d	 d
 d d g k ƒ |  j | d d  d ƒ d	 d
 d d g k ƒ |  j | d d  d ƒ d	 d
 d d g k ƒ |  j | d d  d ƒ d	 d
 d g k ƒ d  S(   Ns   this is the split functiont   thist   ist   thet   splitt   functions   a|b|c|dt   |t   at   bt   ct   di   s   c|ds   a b c di   s   b c ds   c di   i   i    s
   a  b  c  ds   c  d(   R   R.   R   t   None(   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_strop.pyt
   test_splitS   s    	((%(+++c         C   sæ   |  j  t j d d d d g ƒ d k ƒ |  j  t j d d ƒ d k ƒ |  j  t j t ƒ  ƒ d k ƒ |  j  t j d	 d
 g d
 d ƒ d	 d
 d d d	 d
 k ƒ |  j  t j d	 d
 f d
 d ƒ d	 d
 d d d	 d
 k ƒ d  S(   NR1   R2   R3   R4   s   a b c dt    t   abcds   w x y zR(   id   t   :ic   (   R1   R2   R3   R4   (   R   R   t   joint   Sequence(   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_strop.pyt	   test_join`   s    (  c         C   s<   |  j  t j d d ƒ t k ƒ |  j t t j d d ƒ d  S(   NR   t   xyzt   xyzq(   R   R   t	   maketranst
   transtableR   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_strop.pyt   test_maketransk   s    c         C   s&   |  j  t j d t d ƒ d k ƒ d  S(   Nt	   xyzabcdefR   t   xyzxyz(   R   R   t	   translateR@   (   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_strop.pyt   test_translateo   s    c         C   s   t  j t  j t  j d  S(   N(   R   t	   lowercaset	   uppercaset
   whitespace(   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_strop.pyt   test_data_attributess   s    iÿÿÿs   only for 32-bitc         C   s/   d d d d } |  j  t t j | d ƒ d  S(   Ns   	
i   t   Ai   i  (   R   t   OverflowErrorR   t
   expandtabs(   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/test_strop.pyt   test_expandtabs_overflowx   s    t   sizei   t   memusei   c         C   s^   d | } y t  j | | g | ƒ } Wn t k
 r9 n! X|  j t | ƒ t | ƒ d ƒ d  S(   NRJ   i   (   R   R:   RK   t   assertEqualt   len(   R   RO   R1   t   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_strop.pyt   test_stropjoin_huge_list}   s    
c         C   s^   d | } y t  j | | f | ƒ } Wn t k
 r9 n! X|  j t | ƒ t | ƒ d ƒ d  S(   NRJ   i   (   R   R:   RK   RQ   RR   (   R   RO   R1   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_strop.pyt   test_stropjoin_huge_tup‡   s    
c         C   s*   d d } |  j  t t j | d | ƒ d  S(   NRJ   i   (   R   t   MemoryErrorR   R)   (   R   R1   (    (    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_strop.pyt   test_stropreplace_overflow‘   s    
(   t   __name__t
   __module__R	   R   R   R   R   R   R   R   R   R!   R#   R%   R*   R6   R<   RA   RE   RI   t   unittestt
   skipUnlesst   syst   maxsizeRN   R   t   precisionbigmemtestt   _2GRT   RU   RW   (    (    (    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_strop.pyR      s,   																		$(
(
s    	
 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`xyzdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿR;   c           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   d |  _  d  S(   Nt   wxyz(   t   seq(   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_strop.pyt   __init__›   R7   c         C   s   t  |  j ƒ S(   N(   RR   Ra   (   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_strop.pyt   __len__œ   R7   c         C   s   |  j  | S(   N(   Ra   (   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/test_strop.pyt   __getitem__�   R7   (   RX   RY   Rb   Rc   Re   (    (    (    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_strop.pyR;   š   s   		c           C   s   t  j t ƒ d  S(   N(   R   t   run_unittestR   (    (    (    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_strop.pyt	   test_main    s    t   __main__(    (   t   warningst   filterwarningst   DeprecationWarningRZ   R\   t   testR   t   import_moduleR   t   TestCaseR   R@   R;   Rg   RX   (    (    (    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_strop.pyt   <module>   s   Š	