ó
ŒwÛjc           @   s;  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l m Z y d  d l Z Wn e k
 rÕ d Z n Xy d  d l Z Wn e k
 rÿ d Z n Xi
 d d 6d d 6dO d	 6d
 d 6d g d 6e j d ƒ d 6e j d 6e j d ƒ d 6e j dP ƒ d 6e j e j d d d d d d ƒ ƒ d 6g Z e j rÎe d j i e j d ƒ d 6d e j d ƒ 6ƒ n  d  e j f d! „  ƒ  YZ d" e j f d# „  ƒ  YZ d$ e j f d% „  ƒ  YZ d& e j f d' „  ƒ  YZ d( e j f d) „  ƒ  YZ d a  a! a" d d d* „ Z# d d+ „ Z$ d, „  Z% e j& e d- ƒ d. e j f d/ „  ƒ  Yƒ Z' d0 e' f d1 „  ƒ  YZ( d2 e' f d3 „  ƒ  YZ) d4 e' f d5 „  ƒ  YZ* d6 e' f d7 „  ƒ  YZ+ d8 e+ f d9 „  ƒ  YZ, d: e+ f d; „  ƒ  YZ- e j& e d< ƒ d= e' f d> „  ƒ  Yƒ Z. d? e j f d@ „  ƒ  YZ/ dA e j0 f dB „  ƒ  YZ1 e j& e d- ƒ dC e j f dD „  ƒ  Yƒ Z2 dE e j f dF „  ƒ  YZ3 dG dQ dH „  ƒ  YZ4 dI e j5 f dJ „  ƒ  YZ6 dK e j f dL „  ƒ  YZ7 e j8 dM „  ƒ Z9 e: dN k r7e9 ƒ  n  d S(R   iÿÿÿÿN(   t   test_supports   foo@bar.baz.spamt   astringgHázns¼@t   afloati   i   t   anintl    t
   ashortlongs   .zyx.41t   anotherlists   my dog has fleast   abase64t   booleans   20050210T11:41:23t	   datetime1iÕ  i
   i   i)   i   i    i   t	   datetime2t	   datetime3s   \u4000\u6000\u8000t   unicodes   regular values
   ukey\u4000t   XMLRPCTestCasec           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 e j d „  ƒ Z e j d „  ƒ Z d „  Z RS(   c         C   s1   |  j  t t j t j t f ƒ ƒ d d ƒ d  S(   Ni    (   t   assertEqualt   alistt	   xmlrpclibt   loadst   dumps(   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_xmlrpc.pyt   test_dump_load0   s    	c         C   s©   t  j  d d d d d d ƒ } t j | f ƒ } t j | d d ƒ\ \ } } |  j | | ƒ |  j | d  ƒ t j | d d	 ƒ\ \ } } |  j | t j d
 ƒ ƒ d  S(   NiÕ  i   i
   i   i)   i   t   use_datetimei   i    s   20050210T11:41:23(   t   datetimeR   R   R   R   t   Nonet   DateTime(   R   t   dtt   st   newdtt   m(    (    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_xmlrpc.pyt   test_dump_bare_datetime4   s    c         C   s©   t  j  d d d d d d ƒ } t j | f ƒ } t j | d d ƒ\ \ } } |  j | | ƒ |  j | d  ƒ t j | d d ƒ\ \ } } |  j | t j d	 ƒ ƒ d  S(
   Ni   i   i
   i   i)   i   R   i    s   00010210T11:41:23(   R   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/test_xmlrpc.pyt   test_datetime_before_1900B   s    c         C   sŠ   t  j  j ƒ  } t j | j ƒ  ƒ } |  j | | k ƒ |  j | | k ƒ | t  j d d ƒ } |  j | | k ƒ |  j | | k  ƒ d  S(   Nt   secondsi   (   R   t   nowR   R   t	   timetuplet
   assertTruet	   timedelta(   R   R   R   t   then(    (    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_xmlrpc.pyt   test_cmp_datetime_DateTimeM   s    c         C   su   t  j ƒ  } t  j t  j | f d t ƒƒ \ \ } } |  j | j t ƒ t  j | f d t ƒ} |  j | t ƒ d  S(   Nt   methodresponse(   R   R   R   R   t   Truet   assertIsInstancet   valuet   str(   R   t   dt   new_dt   dummyR   (    (    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_xmlrpc.pyt   test_bug_1164912V   s    c         C   sl   d t  f d „  ƒ  Y} | ƒ  } d | _ d | _ t j t j | f ƒ ƒ \ \ } } |  j | | j ƒ d  S(   Nt   Tc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    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_xmlrpc.pyR.   a   s   id   t   Hello(   t   objectt   xt   yR   R   R   R   t   __dict__(   R   R.   t   tt   t2R,   (    (    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_xmlrpc.pyt   test_newstyle_class`   s    			$c         C   s   |  j  t t j d ƒ d  S(   Nl    ic   l                (   l                (   t   assertRaisest   OverflowErrorR   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_xmlrpc.pyt   test_dump_big_longi   s    c         C   s$   |  j  t t j i d d 6f ƒ d  S(   Ni   i   i   (   i   i   i   (   R9   t	   TypeErrorR   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_xmlrpc.pyt   test_dump_bad_dictl   s    c         C   sK   d d d g } d d d | g } | j  | ƒ |  j t t j | f ƒ d  S(   Ni   i   i   i   i   (   t   appendR9   R<   R   R   (   R   t   lR6   (    (    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_xmlrpc.pyt   test_dump_recursive_seqo   s    c         C   sO   i d d 6d d 6} i d d 6| d 6} | | d <|  j  t t j | f ƒ d  S(   Ni   t   1t   2i   t   3R*   R6   (   R9   R<   R   R   (   R   R*   R6   (    (    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_xmlrpc.pyt   test_dump_recursive_dictu   s    
c         C   s	  t  j d k r1 |  j t t j t d ƒ f ƒ n  t j t j t j f ƒ |  j t t j t j d f ƒ |  j t t j t j d f ƒ d „  } t j	 ƒ  } | j
 t j | ƒ | j
 t j | ƒ |  j t | j
 t j d | ƒ |  j t | j
 t j d | ƒ d  S(	   Nl    i   i   i"   c         S   s   d  S(   N(    (   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_xmlrpc.pyt   dummy_write„   s    l        l   ÿÿ l        (   t   syst   maxintR9   R:   R   R   t   intt   MAXINTt   MININTt
   Marshallert   dump_int(   R   RE   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_xmlrpc.pyt   test_dump_big_int{   s      	 c         C   sp   t  d  g } t  d  g f } t j | d t ƒ} |  j | t j | ƒ d d ƒ |  j t t j | f ƒ d  S(   Nt
   allow_nonei    (	   R   R   R   R   R&   R   R   R9   R<   (   R   R(   t   arg1t   strg(    (    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_xmlrpc.pyt   test_dump_noneŽ   s    	c         C   s  i t  j d ƒ t  j d ƒ 6} t j | f d d ƒ} d | } |  j t j | ƒ d d | ƒ t j | f d d d t ƒ} |  j t j | ƒ d d | ƒ t  j d ƒ } t j | f d d d	 | ƒ} |  j t j | ƒ d d | ƒ |  j t j | ƒ d
 | ƒ d  S(   Ns   value\u20ac\xa4s   key\u20ac\xa4t   encodings   iso-8859-15s,   <?xml version='1.0' encoding='iso-8859-15'?>i    R%   s   method\u20ac\xa4t
   methodnamei   (   R    t   uR   R   R   R   R&   (   R   R(   RP   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_xmlrpc.pyt   test_dump_encoding–   s    
!	!	!c      	   C   s  d } t  j ƒ  } t j d ƒ �N d d  l  } | j d ƒ z t j | ƒ \ \ } } } Wd  | j | ƒ XWd  QX| j ƒ  } t j rì |  j	 | d ƒ |  j
 | t ƒ |  j	 | d g ƒ |  j
 | d d t ƒ |  j
 | d d	 t ƒ n# |  j	 | d
 ƒ |  j	 | d g ƒ d  S(   Ns)  <?xml version='1.0' encoding='iso-8859-1'?>
                  <params>
                    <param><value>
                      <string>abc •</string>
                      </value></param>
                    <param><value>
                      <struct>
                        <member>
                          <name>def –</name>
                          <value><string>ghi —</string></value>
                          </member>
                        </struct>
                      </value></param>
                  </params>
                  RF   iÿÿÿÿs
   iso-8859-1u   abc Â•u   def Â–u   ghi Â—i    i   s   abc Â•s   def Â–s   ghi Â—(   u   def Â–u   ghi Â—(   s   def Â–s   ghi Â—(   RF   t   getdefaultencodingR    t   CleanImportt   setdefaultencodingR   R   t   itemst   have_unicodeR   R'   R   (   R   t   utf8t   old_encodingt   temp_sysR   R*   R   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/test_xmlrpc.pyt   test_default_encoding_issues¨   s"    	c         C   sa   t  j } d } |  j | t  j | ƒ d } |  j | t  j | ƒ d } |  j | t  j | ƒ d  S(   Ns6   <params><param><value><spam/></value></param></params>sT   <params><param><value><array><value><spam/></value></array></value></param></params>sª   <params><param><value><struct><member><name>a</name><value><spam/></value></member><member><name>b</name><value><spam/></value></member></struct></value></param></params>(   R   t   ResponseErrorR9   R   (   R   R_   t   data(    (    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_xmlrpc.pyt   test_loads_unsupportedÓ   s    	(   R/   R0   R   R   R   R$   R-   R8   R;   R=   R@   RD   RM   RQ   R    t   requires_unicodeRU   R^   Ra   (    (    (    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_xmlrpc.pyR   .   s   						
								+t   HelperTestCasec           B   s   e  Z d  „  Z RS(   c         C   sO   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(   Ns   a&bs   a&amp;bs   a<bs   a&lt;bs   a>bs   a&gt;b(   R   R   t   escape(   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_xmlrpc.pyt   test_escapeã   s    (   R/   R0   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_xmlrpc.pyRc   â   s   t   FaultTestCasec           B   s   e  Z d  „  Z d „  Z RS(   c         C   sH   t  j d d ƒ } |  j t | ƒ d ƒ |  j t | ƒ t | ƒ ƒ d  S(   Ni*   s
   Test Faults   <Fault 42: 'Test Fault'>(   R   t   FaultR   t   reprR)   (   R   t   f(    (    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_xmlrpc.pyt	   test_repré   s    c         C   sœ   t  j d d ƒ } t  j | f ƒ } t  j | ƒ \ \ } } |  j | i d d 6d d 6ƒ |  j | d  ƒ t  j ƒ  j | ƒ } |  j t  j t  j | ƒ d  S(   Ni*   s
   Test Faultt	   faultCodet   faultString(   R   Rg   R   R   R   R   RK   R9   (   R   Ri   R   t   newfR   (    (    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_xmlrpc.pyt   test_dump_faultî   s    (   R/   R0   Rj   Rn   (    (    (    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_xmlrpc.pyRf   è   s   	t   DateTimeTestCasec           B   sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   t  j ƒ  } d  S(   N(   R   R   (   R   R6   (    (    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_xmlrpc.pyt   test_defaultú   s    c         C   sD   d } t  j | ƒ } |  j t | ƒ t j d t j | ƒ ƒ ƒ d  S(   Ngl]‚Þ®šÑAs   %Y%m%dT%H:%M:%S(   R   R   R   R)   t   timet   strftimet	   localtime(   R   R*   R6   (    (    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_xmlrpc.pyt	   test_timeý   s    c      	   C   s/   d } t  j | ƒ } |  j t | ƒ d
 ƒ d  S(   Ni×  i   i	   i
   i&   i2   i   i    i    s   20070609T10:38:50(	   i×  i   i	   i
   i&   i2   i   i    i    (   R   R   R   R)   (   R   R*   R6   (    (    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_xmlrpc.pyt   test_time_tuple  s    c         C   sD   t  j d ƒ } t j | ƒ } |  j t | ƒ t  j d | ƒ ƒ d  S(   Ngl]‚Þ®šÑAs   %Y%m%dT%H:%M:%S(   Rq   Rs   R   R   R   R)   Rr   (   R   R*   R6   (    (    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_xmlrpc.pyt   test_time_struct  s    c         C   sG   t  j  d d d d d d ƒ } t j | ƒ } |  j t | ƒ d ƒ d  S(   Ni×  i   i   i   i   i   s   20070102T03:04:05(   R   R   R   R   R)   (   R   R*   R6   (    (    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_xmlrpc.pyt   test_datetime_datetime  s    c         C   sW   t  j  d d d d d d ƒ } t j | ƒ } d t | ƒ } |  j t | ƒ | ƒ d  S(   Ni×  i   i   i   i   i   s$   <DateTime '20070102T03:04:05' at %x>(   R   R   R   t   idR   Rh   (   R   R*   R6   t   val(    (    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_xmlrpc.pyRj     s    c         C   sy   d } t  j ƒ  } | j | ƒ t  j t j d d d d d d ƒ ƒ } |  j | | ƒ t  j | ƒ } |  j | | ƒ d  S(   Ns    20070908T07:11:13  i×  i	   i   i   i   i   (   R   R   t   decodeR   R   t	   _datetime(   R   R*   t   t1t   trefR7   (    (    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_xmlrpc.pyt   test_decode  s    '(	   R/   R0   Rp   Rt   Ru   Rv   Rw   Rj   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_xmlrpc.pyRo   ù   s   						t   BinaryTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s&   t  j ƒ  } |  j t | ƒ d ƒ d  S(   Nt    (   R   t   BinaryR   R)   (   R   R6   (    (    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_xmlrpc.pyRp   "  s    c         C   s/   d } t  j | ƒ } |  j t | ƒ | ƒ d  S(   Ns   abc123ÿþ(   R   R�   R   R)   (   R   R*   R6   (    (    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_xmlrpc.pyt   test_string&  s    c         C   sm   d } t  j | ƒ } t j ƒ  } | j | ƒ |  j t | ƒ | ƒ t j | ƒ } |  j t | ƒ | ƒ d  S(   Ns   abc123ÿþ(   t   base64t   encodestringR   R�   Rz   R   R)   t   _binary(   R   R*   t   deR|   R7   (    (    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_xmlrpc.pyR~   +  s    (   R/   R0   Rp   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_xmlrpc.pyR   !  s   		c      	   C   s“  d d d „  ƒ  Y} d „  } d t  j  f d „  ƒ  Y} | sG t  j } n  | d | d | d	 t d
 t ƒ} zyë | j j d ƒ | j ƒ  | j j ƒ  \ a a d t t f a	 | j
 ƒ  | j ƒ  | j ƒ  | j t ƒ | j d „  d ƒ | j d „  t j d ƒ ƒ | j | ƒ | j | ƒ  ƒ |  j ƒ  x$ | d k rT| j ƒ  | d 8} q1WWn t j k
 rln XWd  | j j ƒ  d  a |  j ƒ  Xd  S(   Nt   TestInstanceClassc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | | S(   N(    (   R   R3   R4   (    (    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_xmlrpc.pyt   div=  s    c         S   s   | d k r d Sd  S(   NRˆ   s   This is the div function(    (   R   t   name(    (    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_xmlrpc.pyt   _methodHelp@  s    (   R/   R0   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_xmlrpc.pyR‡   <  s   	c           S   s   t  S(   s   This is my function(   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_xmlrpc.pyt   my_functionD  s    t   MyXMLRPCServerc           B   s   e  Z d  „  Z RS(   c         S   s,   |  j  j ƒ  \ } } | j t ƒ | | f S(   N(   t   sockett   acceptt   setblockingR&   (   R   R   t   port(    (    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_xmlrpc.pyt   get_requestI  s    (   R/   R0   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_xmlrpc.pyRŒ   H  s   t	   localhosti    RR   t   logRequestst   bind_and_activatei   s   http://%s:%dc         S   s   |  | S(   N(    (   R3   R4   (    (    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_xmlrpc.pyt   <lambda>c  R€   t   addc         S   s   |  S(   N(    (   R3   (    (    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_xmlrpc.pyR•   d  R€   s   t\xea\u0161ti   (    (   R’   i    (   t   SimpleXMLRPCServert   SimpleXMLRPCRequestHandlert   FalseR�   t
   settimeoutt   server_bindt   getsocknamet   ADDRt   PORTt   URLt   server_activatet    register_introspection_functionst   register_multicall_functionst   register_functiont   powR    RT   t   register_instancet   sett   handle_requestt   timeoutt   closeR   (   t   evtt   numrequestst   requestHandlerRR   R‡   R‹   RŒ   t   serv(    (    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_xmlrpc.pyt   http_server;  s>    	 





c         C   s¹  d d d „  ƒ  Y} d „  } d t  j f d „  ƒ  Y} | sG t  j } n  d | f d „  ƒ  Y} | d | d
 t d t ƒ} | j j d ƒ | j ƒ  zyç | j j ƒ  \ a a	 d t t	 f a
 | j ƒ  d d g } x: | D]2 }	 | j |	 t  j ƒ  ƒ }
 |
 j ƒ  |
 j ƒ  qÚ W| j | d	 ƒ j t ƒ | j | d ƒ j d „  d ƒ |  j ƒ  x$ | d	 k rz| j ƒ  | d 8} qWWWn t j k
 r’n XWd  | j j ƒ  d  a	 |  j ƒ  Xd  S(   NR‡   c           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | | S(   N(    (   R   R3   R4   (    (    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_xmlrpc.pyRˆ   w  s    c         S   s   | d k r d Sd  S(   NRˆ   s   This is the div function(    (   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_xmlrpc.pyRŠ   z  s    (   R/   R0   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_xmlrpc.pyR‡   v  s   	c           S   s   t  S(   s   This is my function(   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_xmlrpc.pyR‹   ~  s    RŒ   c           B   s   e  Z d  „  Z RS(   c         S   s,   |  j  j ƒ  \ } } | j t ƒ | | f S(   N(   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_xmlrpc.pyR‘   ƒ  s    (   R/   R0   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_xmlrpc.pyRŒ   ‚  s   t   MyRequestHandlerc           B   s   e  Z g  Z RS(    (   R/   R0   t	   rpc_paths(    (    (    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_xmlrpc.pyR¯   Œ  s   R’   i    R“   R”   i   s   http://%s:%ds   /foos   /foo/bari   c         S   s   |  | S(   N(    (   R3   R4   (    (    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_xmlrpc.pyR•   ¢  R€   R–   (    (   R’   i    (   R—   t   MultiPathXMLRPCServerR˜   R™   R�   Rš   R›   Rœ   R�   Rž   RŸ   R    t   add_dispatchert   SimpleXMLRPCDispatcherR¡   R¢   t   get_dispatcherR£   R¤   R¦   R§   R¨   R©   R   (   Rª   R«   R¬   R‡   R‹   RŒ   R¯   R­   t   pathst   pathR*   (    (    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_xmlrpc.pyt   http_multi_serveru  s>    	
 

 

c         C   sx   y8 |  j  d k s! |  j d k r% t S|  j j d ƒ } Wn t k
 rW t |  ƒ } n X| rt d | j ƒ  k rt t St S(   sÇ   Returns True if the given ProtocolError is the product of a server-side
       exception caused by the 'temporarily unavailable' response sometimes
       given by operations on non-blocking sockets.iÿÿÿÿs   X-exceptions   temporarily unavailableN(	   t   errcodet   headersR   R&   t   gett   AttributeErrorR)   t   lowerR™   (   t   et   exc_mess(    (    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_xmlrpc.pyt   is_unavailable_exception³  s    s!   Threading required for this test.t   BaseServerTestCasec           B   s2   e  Z d Z d  Z e e ƒ Z d „  Z d „  Z	 RS(   i   c         C   ss   t  t j _ t j ƒ  |  _ |  j |  j |  j f } t j d |  j	 d | ƒ j
 ƒ  |  j j d ƒ |  j j ƒ  d  S(   Nt   targett   argsi
   (   R&   R—   t   _send_traceback_headert	   threadingt   EventRª   t   request_countR¬   t   Threadt
   threadFunct   startt   waitt   clear(   R   t	   serv_args(    (    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_xmlrpc.pyt   setUpÌ  s    c         C   s    |  j  j d ƒ t t j _ d  S(   Ni
   (   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_xmlrpc.pyt   tearDownÙ  s    N(
   R/   R0   R   R¬   RÆ   t   staticmethodR®   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_xmlrpc.pyRÀ   Æ  s
   	t   SimpleServerTestCasec           B   sÈ   e  Z d  „  Z e j d „  ƒ Z e j d „  ƒ Z e j d „  ƒ Z e j d „  ƒ Z d „  Z	 d „  Z
 d „  Z e j e j j d k d	 ƒ d
 „  ƒ Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s‡   y/ t  j t ƒ } |  j | j d d ƒ d ƒ WnQ t  j t j f k
 r‚ } t | ƒ sƒ |  j	 d | t
 | d d ƒ f ƒ qƒ n Xd  S(   Ni   i   s   %s
%sR¹   R€   i ¡ (   R   t   ServerProxyRŸ   R   R¤   t   ProtocolErrorR�   t   errorR¿   t   failt   getattr(   R   t   pR½   (    (    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_xmlrpc.pyt   test_simple1è  s     c         C   s©   t  j d ƒ } t  j d ƒ } y3 t j t ƒ } |  j | j | | ƒ | | ƒ WnQ t j t j	 f k
 r¤ } t
 | ƒ s¥ |  j d | t | d d ƒ f ƒ q¥ n Xd  S(   Ns*   P\N{LATIN SMALL LETTER Y WITH CIRCUMFLEX}ts$   h\N{LATIN SMALL LETTER O WITH HORN}ns   %s
%sR¹   R€   (   R    RT   R   RÑ   RŸ   R   R–   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   t   start_stringt
   end_stringRÖ   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_xmlrpc.pyt   test_nonasciiò  s    c         C   s9   t  j d t t f ƒ } |  j | j d d ƒ d ƒ d  S(   Nu   http://%s:%d/RPC2t   au   Ã©u   aÃ©(   R   RÑ   R�   Rž   R   R–   (   R   t   server(    (    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_xmlrpc.pyt   test_unicode_host  s    c         C   s©   t  d ƒ } t  d ƒ } y9 t j t d d ƒ} |  j | j | | ƒ | | ƒ WnQ t j t j f k
 r¤ } t	 | ƒ s¥ |  j
 d | t | d d ƒ f ƒ q¥ n Xd  S(   Ni¬   i¤   RR   s   iso-8859-15s   %s
%sR¹   R€   (   t   unichrR   RÑ   RŸ   R   R–   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/test_xmlrpc.pyt   test_client_encoding  s    c         C   s–   y> t  j t d d ƒ} t | d ƒ } |  j | d ƒ d ƒ WnQ t  j t j f k
 r‘ } t | ƒ s’ |  j	 d | t | d d ƒ f ƒ q’ n Xd  S(   NRR   s   iso-8859-15s   tê¨ti*   s   %s
%sR¹   R€   (
   R   RÑ   RŸ   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/test_xmlrpc.pyt   test_nonascii_methodname  s    c         C   sb   t  j t t ƒ } | j d d ƒ | j ƒ  } | j ƒ  |  j | j d ƒ |  j | j	 d ƒ d  S(   Nt   POSTs   /this-is-not-validi”  s	   Not Found(
   t   httplibt   HTTPConnectionR�   Rž   t   requestt   getresponseR©   R   t   statust   reason(   R   t   connt   response(    (    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_xmlrpc.pyt   XXXtest_404"  s    
c      
   C   sÀ   yh t  j t ƒ } | j j ƒ  } t d d d d t j d ƒ d d d d	 g	 ƒ } |  j t | ƒ | ƒ WnQ t  j	 t
 j f k
 r» } t | ƒ s¼ |  j d
 | t | d d ƒ f ƒ q¼ n Xd  S(   NR¤   Rˆ   R‹   R–   s   t\xea\u0161ts   system.listMethodss   system.methodHelps   system.methodSignatures   system.multicalls   %s
%sR¹   R€   (   R   RÑ   RŸ   t   systemt   listMethodsR¦   R    RT   R   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   RÖ   t   metht   expected_methodsR½   (    (    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_xmlrpc.pyt   test_introspection1-  s    c         C   s�   y5 t  j t ƒ } | j j d ƒ } |  j | d ƒ WnQ t  j t j f k
 rˆ } t	 | ƒ s‰ |  j
 d | t | d d ƒ f ƒ q‰ n Xd  S(   NRˆ   s   This is the div functions   %s
%sR¹   R€   (   R   RÑ   RŸ   Rë   t
   methodHelpR   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   RÖ   t   divhelpR½   (    (    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_xmlrpc.pyt   test_introspection2<  s    i   s)   Docstrings are omitted with -O2 and abovec         C   s�   y5 t  j t ƒ } | j j d ƒ } |  j | d ƒ WnQ t  j t j f k
 rˆ } t	 | ƒ s‰ |  j
 d | t | d d ƒ f ƒ q‰ n Xd  S(   NR‹   s   This is my functions   %s
%sR¹   R€   (   R   RÑ   RŸ   Rë   Rð   R   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   RÖ   t
   myfunctionR½   (    (    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_xmlrpc.pyt   test_introspection3H  s    c         C   s�   y5 t  j t ƒ } | j j d ƒ } |  j | d ƒ WnQ t  j t j f k
 rˆ } t	 | ƒ s‰ |  j
 d | t | d d ƒ f ƒ q‰ n Xd  S(   NRˆ   s   signatures not supporteds   %s
%sR¹   R€   (   R   RÑ   RŸ   Rë   t   methodSignatureR   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   RÖ   t   divsigR½   (    (    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_xmlrpc.pyt   test_introspection4V  s    c         C   sì   y” t  j t ƒ } t  j | ƒ } | j d d ƒ | j d d ƒ | j d d ƒ | ƒ  \ } } } |  j | d
 ƒ |  j | d ƒ |  j | d ƒ WnQ t  j t	 j
 f k
 rç } t | ƒ sè |  j d | t | d d	 ƒ f ƒ qè n Xd  S(   Ni   i   i   i   i   i*   s   %s
%sR¹   R€   i   i ¡ i   (   R   RÑ   RŸ   t	   MultiCallR–   R¤   Rˆ   R   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   RÖ   t	   multicallt
   add_resultt
   pow_resultt
   div_resultR½   (    (    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_xmlrpc.pyt   test_multicallc  s    c         C   sÃ   yk t  j t ƒ } t  j | ƒ } | j ƒ  | ƒ  } |  j | j d d d ƒ |  j | j d d d ƒ WnQ t  j t j	 f k
 r¾ } t
 | ƒ s¿ |  j d | t | d d ƒ f ƒ q¿ n Xd  S(	   Ni    Rk   i   Rl   sJ   <type 'exceptions.Exception'>:method "this_is_not_exists" is not supporteds   %s
%sR¹   R€   (   R   RÑ   RŸ   Rø   t   this_is_not_existsR   t   resultsRÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   RÖ   Rù   t   resultR½   (    (    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_xmlrpc.pyt   test_non_existing_multicallt  s    
	c         C   s@   |  j  t t j t d ƒ |  j t j t d ƒ ƒ |  j ƒ  d  S(   Nt   __addt   title(   R9   R»   R—   t   resolve_dotted_attributeR)   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_xmlrpc.pyt   test_dotted_attribute‰  s    	c         C   s7   t  j t t ƒ } | j d t t f ƒ | j ƒ  d  S(   Nsw   POST /RPC2 HTTP/1.0
Content-Length: 100

bye HTTP/1.1
Host: %s:%s
Accept-Encoding: identity
Content-Length: 0

(   Râ   Rã   R�   Rž   t   sendR©   (   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_xmlrpc.pyt   test_partial_post“  s    	(   R/   R0   R×   R    Rb   RÚ   RÝ   Rß   Rà   Rê   Rï   Rò   t   unittestt   skipIfRF   t   flagst   optimizeRô   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_xmlrpc.pyRÐ   ç  s   	
							
t   SimpleServerEncodingTestCasec           B   s/   e  Z e d d d  „ ƒ Z e j d „  ƒ Z RS(   c         C   s   t  |  | | d ƒ d  S(   Ns   iso-8859-15(   R®   (   Rª   R«   R¬   RR   (    (    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_xmlrpc.pyRÈ      s    c         C   s£   t  d ƒ } t  d ƒ } y3 t j t ƒ } |  j | j | | ƒ | | ƒ WnQ t j t j f k
 rž } t	 | ƒ sŸ |  j
 d | t | d d ƒ f ƒ qŸ n Xd  S(   Ni¬   i¤   s   %s
%sR¹   R€   (   RÞ   R   RÑ   RŸ   R   R–   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/test_xmlrpc.pyt   test_server_encoding¤  s    N(   R/   R0   RÏ   R   RÈ   R    Rb   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_xmlrpc.pyR  Ÿ  s   t   MultiPathServerTestCasec           B   s,   e  Z e e ƒ Z d  Z d „  Z d „  Z RS(   i   c         C   sO   t  j t d ƒ } |  j | j d d ƒ d ƒ |  j t  j | j d d ƒ d  S(   Ns   /fooi   i   i ¡ (   R   RÑ   RŸ   R   R¤   R9   Rg   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_xmlrpc.pyt
   test_path1·  s    c         C   sO   t  j t d ƒ } |  j | j d d ƒ d ƒ |  j t  j | j d d ƒ d  S(   Ns   /foo/bari   i   i   (   R   RÑ   RŸ   R   R–   R9   Rg   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_xmlrpc.pyt
   test_path2»  s    (   R/   R0   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_xmlrpc.pyR  ´  s   	t   BaseKeepaliveServerTestCasec           B   s0   e  Z d  e j f d „  ƒ  YZ e Z d „  Z RS(   t   RequestHandlerc           B   s/   e  Z e j Z d  Z g  Z d „  Z d „  Z RS(   s   HTTP/1.1c         C   s6   |  j  j g  ƒ t |  j  ƒ d |  _ |  j j |  ƒ S(   Ni   (   t
   myRequestsR>   t   lent   reqidxt   parentClasst   handle(   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_xmlrpc.pyR  É  s    c         C   s0   |  j  j |  ƒ } |  j |  j j |  j ƒ | S(   N(   R  t   handle_one_requestR  R  R>   t   raw_requestline(   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_xmlrpc.pyR  Í  s    (	   R/   R0   R—   R˜   R  t   protocol_versionR  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_xmlrpc.pyR  Å  s
   		c         C   s   g  |  j  _ t j |  ƒ S(   N(   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_xmlrpc.pyRÍ   Ó  s    (   R/   R0   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_xmlrpc.pyR  Â  s   t   KeepaliveServerTestCase1c           B   s   e  Z d  „  Z RS(   c         C   s£   t  j t ƒ } |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j t |  j j ƒ d ƒ |  j t |  j j d ƒ d ƒ d  S(	   Ni   i   i   iÿÿÿÿi   i ¡ i ¡ i ¡ (	   R   RÑ   RŸ   R   R¤   R  R  R  t   assertGreaterEqual(   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_xmlrpc.pyt   test_twoÛ  s    (   R/   R0   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_xmlrpc.pyR  Ú  s   t   KeepaliveServerTestCase2c           B   s    e  Z d  Z d „  Z d „  Z RS(   i   c         C   s$  t  j t ƒ } |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d	 ƒ | d ƒ ƒ  |  j | j d d ƒ d
 ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j t |  j j ƒ d ƒ |  j t |  j j d ƒ d ƒ |  j t |  j j d ƒ d ƒ d  S(   Ni   i   R©   i   iÿÿÿÿiþÿÿÿi ¡ i ¡ i ¡ i ¡ i ¡ i ¡ (	   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/test_xmlrpc.pyt
   test_closeï  s     c         C   sw   t  j t ƒ } |  j | j d d ƒ d ƒ | d ƒ j ƒ  |  j | j d d ƒ d ƒ |  j t |  j j ƒ d ƒ d  S(   Ni   i   t	   transporti   i ¡ i ¡ (	   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/test_xmlrpc.pyt   test_transport   s
    (   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/test_xmlrpc.pyR  ë  s   	s   gzip not availablet   GzipServerTestCasec           B   sm   e  Z d  e j f d „  ƒ  YZ e Z d e j f d „  ƒ  YZ d „  Z d „  Z	 d „  Z
 d „  Z d „  Z RS(	   R  c           B   s    e  Z e j Z d  Z d „  Z RS(   s   HTTP/1.1c         C   s)   t  |  j d ƒ |  j _ |  j j |  ƒ S(   Ns   content-length(   RH   R¹   t	   __class__t   content_lengthR  t   do_POST(   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_xmlrpc.pyR%    s    (   R/   R0   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_xmlrpc.pyR    s   	t	   Transportc           B   s    e  Z e Z d  „  Z d „  Z RS(   c         C   s.   t  | j d d ƒ ƒ |  _ t j j |  | ƒ S(   Ns   content-lengthi    (   RH   t	   getheadert   response_lengthR   R&  t   parse_response(   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_xmlrpc.pyR)    s    c         C   s2   |  j  r | j d d ƒ n  t j j |  | | ƒ S(   Ns   Content-Encodingt   gzip(   t	   fake_gzipt	   putheaderR   R&  t   send_content(   R   t
   connectiont   body(    (    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_xmlrpc.pyR-    s    	(   R/   R0   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_xmlrpc.pyR&    s   	c         C   s   t  j |  ƒ d  S(   N(   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_xmlrpc.pyRÍ   %  s    c         C   sš   |  j  ƒ  } d  | _ t j t d | ƒ} |  j | j d d ƒ d ƒ |  j j	 } d | _ |  j | j d d ƒ d ƒ |  j j	 } |  j
 | | k ƒ d  S(   NR   i   i   i    i ¡ i ¡ (   R&  R   t   encode_thresholdR   RÑ   RŸ   R   R¤   R  R$  R!   (   R   R6   RÖ   RÛ   t   b(    (    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_xmlrpc.pyt   test_gzip_request(  s    		c         C   sr   |  j  ƒ  } d  | _ t | _ t j t d | ƒ} |  j t j	 t
 j d ƒ ƒ } | � | j d d ƒ Wd  QXd  S(   NR   s   \b400\bi   i   (   R&  R   R0  R&   R+  R   RÑ   RŸ   t   assertRaisesRegexpRÒ   t   ret   compileR¤   (   R   R6   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/test_xmlrpc.pyt   test_bad_gzip_request3  s    		c         C   s²   |  j  ƒ  } t j t d | ƒ} |  j j } d  |  j _ |  j | j d d ƒ d ƒ | j	 } d |  j _ |  j | j d d ƒ d ƒ | j	 } | |  j _ |  j
 | | k ƒ d  S(   NR   i   i   i    i ¡ i ¡ (   R&  R   RÑ   RŸ   R¬   R0  R   R   R¤   R(  R!   (   R   R6   RÖ   t   oldRÛ   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_xmlrpc.pyt   test_gzip_response=  s    		c         C   sž   d	 } d | } t  j | ƒ } t  j | ƒ } |  j t | ƒ | ƒ d | d } t  j | ƒ } |  j t d ƒ � t  j | ƒ Wd  QXt  j | d d ƒd  S(
   Ni   i   s    i   s#   max gzipped payload length exceededt
   max_decodeiÿÿÿÿi P  i  @(   R   t   gzip_encodet   gzip_decodeR   R  R3  t
   ValueError(   R   t   max_gzip_decodeR`   t   encodedt   decoded(    (    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_xmlrpc.pyt   test_gzip_decode_limitJ  s    
	
(   R/   R0   R—   R˜   R  R¬   R   R&  RÍ   R2  R7  R9  RA  (    (    (    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_xmlrpc.pyR"  
  s   			
	t   ServerProxyTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   t  j j |  ƒ d |  _ d  S(   Ns   http://fake.localhost(   R  t   TestCaseRÍ   t   url(   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_xmlrpc.pyRÍ   ]  s    c         C   s/   t  j |  j ƒ } |  j | d ƒ ƒ  d  ƒ d  S(   NR©   (   R   RÑ   RD  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_xmlrpc.pyR  c  s    c         C   s>   t  j ƒ  } t  j |  j d | ƒ} |  j | d ƒ | ƒ d  S(   NR   (   R   R&  RÑ   RD  R   (   R   R6   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_xmlrpc.pyR!  g  s    (   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/test_xmlrpc.pyRB  \  s   		t   FailingMessageClassc           B   s   e  Z d  „  Z RS(   c         C   s/   | j  ƒ  } | d k r d St j j |  | ƒ S(   Ns   content-lengths   I am broken(   R¼   t	   mimetoolst   Messaget   __getitem__(   R   t   key(    (    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_xmlrpc.pyRH  o  s    (   R/   R0   RH  (    (    (    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_xmlrpc.pyRE  n  s   t   FailingServerTestCasec           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sX   t  j ƒ  |  _ |  j d f } t  j d t d | ƒ j ƒ  |  j j ƒ  |  j j ƒ  d  S(   Ni   RÁ   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/test_xmlrpc.pyRÍ   x  s
    c         C   s,   |  j  j ƒ  t t j _ t j t j _ d  S(   N(	   Rª   RÊ   R™   R—   RÃ   RF  RG  R˜   t   MessageClass(   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_xmlrpc.pyRÎ   ‚  s    c         C   s¯   t  j  j } |  j | t ƒ t t  j  _ y/ t j t ƒ } |  j | j d d ƒ d ƒ WnQ t j	 t
 j f k
 rª } t | ƒ s« |  j d | t | d d ƒ f ƒ q« n Xd  S(   Ni   i   s   %s
%sR¹   R€   i ¡ (   R—   RÃ   R   R™   R&   R   RÑ   RŸ   R¤   RÒ   R�   RÓ   R¿   RÔ   RÕ   (   R   t   flagvalRÖ   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_xmlrpc.pyt
   test_basicŠ  s     c         C   s¿   t  t j _ y# t j t ƒ } | j d d ƒ Wn| t j t	 j
 f k
 r­ } t | ƒ r» t | d ƒ r» |  j | j j d ƒ d  k ƒ |  j | j j d ƒ d  k ƒ q» n X|  j d ƒ d  S(   Ni   i   R¹   s   X-exceptions   X-tracebacks   ProtocolError not raised(   RE  R—   R˜   RK  R   RÑ   RŸ   R¤   RÒ   R�   RÓ   R¿   t   hasattrR!   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_xmlrpc.pyt   test_fail_no_infoœ  s    &c         C   sÎ   t  t j _ t t j _ y# t j t ƒ } | j	 d d ƒ Wn t j
 t j f k
 r¼ } t | ƒ rÊ t | d ƒ rÊ d } |  j | j j d ƒ | ƒ |  j | j j d ƒ d  k	 ƒ qÊ n X|  j d ƒ d  S(   Ni   i   R¹   s5   invalid literal for int() with base 10: 'I am broken's   x-exceptions   x-tracebacks   ProtocolError not raised(   RE  R—   R˜   RK  R&   RÃ   R   RÑ   RŸ   R¤   RÒ   R�   RÓ   R¿   RN  R   R¹   Rº   R!   R   RÔ   (   R   RÖ   R½   t   expected_err(    (    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_xmlrpc.pyt   test_fail_with_info¬  s    &(   R/   R0   RÍ   RÎ   RM  RO  RQ  (    (    (    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_xmlrpc.pyRJ  v  s
   	
			t   CGIHandlerTestCasec           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   t  j ƒ  |  _ d  S(   N(   R—   t   CGIXMLRPCRequestHandlert   cgi(   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_xmlrpc.pyRÍ   Â  s    c         C   s   d  |  _ d  S(   N(   R   RT  (   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_xmlrpc.pyRÎ   Å  s    c      	   C   sª   t  j ƒ  �˜ } d | d <t  j ƒ  � } |  j j ƒ  Wd  QX| j d ƒ | j ƒ  } | j ƒ  d } d j | j ƒ  d d !ƒ } |  j	 | d ƒ |  j	 | d	 ƒ Wd  QXd  S(
   Nt   GETt   REQUEST_METHODi    i   t    i   i   t   400s   Bad Request(
   R    t   EnvironmentVarGuardt   captured_stdoutRT  R§   t   seekt   readt   splitt   joinR   (   R   t   envt   data_outR  Ræ   t   message(    (    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_xmlrpc.pyt   test_cgi_getÈ  s    
c         C   s   d } t  j ƒ  �n } t  j ƒ  �Y } t  j ƒ  �D } | j | ƒ | j d ƒ t t | ƒ ƒ | d <|  j j	 ƒ  Wd  QXWd  QXWd  QX| j d ƒ | j
 ƒ  } |  j t j t j | d ƒ | | j d ƒ } |  j t t j d | ƒ j d ƒ ƒ t | ƒ ƒ d  S(   Nsw  <?xml version='1.0'?>
        <methodCall>
            <methodName>test_method</methodName>
            <params>
                <param>
                    <value><string>foo</string></value>
                </param>
                <param>
                    <value><string>bar</string></value>
                </param>
            </params>
        </methodCall>
        i    t   CONTENT_LENGTHi,   s   <?xmls   Content-Length: (\d+)i   (   R    RY  RZ  t   captured_stdint   writeR[  R)   R  RT  R§   R\  R9   R   Rg   R   t   findR   RH   R4  t   searcht   group(   R   R`   R_  R`  t   data_inR  t   content(    (    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_xmlrpc.pyt   test_cgi_xmlrpc_responseÚ  s    (   R/   R0   RÍ   RÎ   Rb  Rk  (    (    (    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_xmlrpc.pyRR  Á  s   			t
   FakeSocketc           B   sD   e  Z d  „  Z d „  Z d „  Z d „  Z d d d „ Z d „  Z RS(   c         C   s   t  j  ƒ  |  _ d  S(   N(   t   StringIOR`   (   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_xmlrpc.pyt   __init__  s    c         C   s   |  j  j | ƒ t | ƒ S(   N(   R`   Re  R  (   R   t   buf(    (    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_xmlrpc.pyR  	  s    c         C   s   |  j  j | ƒ d  S(   N(   R`   Re  (   R   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_xmlrpc.pyt   sendall  s    c         C   s   |  j  j ƒ  S(   N(   R`   t   getvalue(   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_xmlrpc.pyRq    s    t   riÿÿÿÿc         C   s
   t  ‚ d  S(   N(   t   RuntimeError(   R   R3   R4   (    (    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_xmlrpc.pyt   makefile  s    c         C   s   d  S(   N(    (   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_xmlrpc.pyR©     s    (   R/   R0   Rn  R  Rp  Rq  Rt  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_xmlrpc.pyRl    s   				t   FakeTransportc           B   s   e  Z d  Z d „  Z RS(   sÚ   A Transport instance that records instead of sending a request.

    This class replaces the actual socket used by httplib with a
    FakeSocket object that records the request.  It doesn't provide a
    response.
    c         C   s,   t  j j |  | ƒ } t ƒ  | _ |  _ | S(   N(   R   R&  t   make_connectionRl  t   sockt   fake_socket(   R   t   hostRè   (    (    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_xmlrpc.pyRv  !  s    (   R/   R0   t   __doc__Rv  (    (    (    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_xmlrpc.pyRu    s   t   TransportSubclassTestCasec           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sT   | ƒ  } t  j d d | ƒ} y | j d d ƒ Wn t k
 rO | j j ƒ  SXd S(   s0   Return an HTTP request made via transport_class.s   http://example.com/R   i   i   N(   R   RÑ   R¤   Rs  Rx  Rq  R   (   R   t   transport_classR   t   proxy(    (    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_xmlrpc.pyt   issue_request(  s    		c         C   s9   d t  f d „  ƒ  Y} |  j | ƒ } |  j d | ƒ d  S(   Nt   TestTransportc           B   s   e  Z d  „  Z RS(   c         S   s'   t  j j |  | ƒ | j d d ƒ d  S(   Ns   X-Testt   test_custom_user_agent(   R   R&  t   send_user_agentR,  (   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_xmlrpc.pyR�  6  s    (   R/   R0   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_xmlrpc.pyR  4  s   s    X-Test: test_custom_user_agent
(   Ru  R~  t   assertIn(   R   R  t   req(    (    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_xmlrpc.pyR€  3  s    c         C   s9   d t  f d „  ƒ  Y} |  j | ƒ } |  j d | ƒ d  S(   NR  c           B   s   e  Z d  „  Z RS(   c         S   s*   t  j j |  | | ƒ | j d d ƒ d  S(   Ns   X-Testt   test_send_host(   R   R&  t	   send_hostR,  (   R   Rè   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/test_xmlrpc.pyR…  @  s    (   R/   R0   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_xmlrpc.pyR  >  s   s   X-Test: test_send_host
(   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_xmlrpc.pyR„  =  s    c         C   s9   d t  f d „  ƒ  Y} |  j | ƒ } |  j d | ƒ d  S(   NR  c           B   s   e  Z d  „  Z RS(   c         S   s-   t  j j |  | | | ƒ | j d d ƒ d  S(   Ns   X-Testt   test_send_request(   R   R&  t   send_requestR,  (   R   Rè   RD  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_xmlrpc.pyR‡  J  s    (   R/   R0   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_xmlrpc.pyR  H  s   s   X-Test: test_send_request
(   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_xmlrpc.pyR†  G  s    c         C   s9   d t  f d „  ƒ  Y} |  j | ƒ } |  j d | ƒ d  S(   NR  c           B   s   e  Z d  „  Z RS(   c         S   s*   | j  d d ƒ t j j |  | | ƒ d  S(   Ns   X-Testt   test_send_content(   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_xmlrpc.pyR-  T  s    (   R/   R0   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_xmlrpc.pyR  R  s   s   X-Test: test_send_content
(   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_xmlrpc.pyRˆ  Q  s    (   R/   R0   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_xmlrpc.pyR{  &  s
   		
	
	
c          C   sž   t  t t t t t g }  |  j t ƒ |  j t ƒ |  j t	 ƒ |  j t
 ƒ |  j t ƒ |  j t ƒ |  j t ƒ |  j t ƒ |  j t ƒ t j |  Œ  d  S(   N(   R   Rc   Ro   R   Rf   R{  R>   RÐ   R  R  R  R"  R  RB  RJ  RR  R    t   run_unittest(   t   xmlrpc_tests(    (    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_xmlrpc.pyt	   test_main[  s    	t   __main__i   (	   iÕ  i   i
   i   i)   i   i    i   iÿÿÿÿ(    (;   Rƒ   R   RF   Rq   R  R   R—   RF  Râ   R�   Rm  t   osR4  t   testR    RÄ   t   ImportErrorR   R*  R�   R™   R   R   RZ   t   updateRT   RC  R   Rc   Rf   Ro   R   R�   Rž   RŸ   R®   R·   R¿   t
   skipUnlessRÀ   RÐ   R  R  R  R  R  R"  RB  RG  RE  RJ  RR  Rl  R&  Ru  R{  t   reap_threadsR‹  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_xmlrpc.pyt   <module>   s†   





(	´(:>	 ¸QJC5