HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/__pycache__/test_xmlrpc.cpython-310.pyc
o

�i���@s8ddlZddlZddlZddlZddlZddlZddlmZddlmZ	ddl
ZddlZ
ddl
Z
ddlZ
ddlZddlZddlZddlZddlZddlmZddlmZddlmZddlmZddlmZmZmZzddlZWney{dZYnwdd	d
ddge	�d
�d
e d
�ddde	�!d�e	�!d�e	�!e�dddddd��d�gZ"Gdd�dej#�Z$Gdd�dej#�Z%Gdd�dej#�Z&Gdd �d ej#�Z'Gd!d"�d"ej#�Z(Gd#d$�d$ej#�Z)da*a+a,dRd%d&�Z-dSd'd(�Z.d)d*�Z/d+d,�Z0Gd-d.�d.ej#�Z1Gd/d0�d0e1�Z2Gd1d2�d2e1�Z3Gd3d4�d4e1�Z4Gd5d6�d6e1�Z5Gd7d8�d8e5�Z6Gd9d:�d:e5�Z7e�8edud;�Gd<d=�d=e1��Z9e�8edud;�Gd>d?�d?ej#��Z:Gd@dA�dAe1�Z;GdBdC�dCej#�Z<GdDdE�dEe
jj=�Z>GdFdG�dGej#�Z?ej@dTdIdJ��ZAGdKdL�dLej#�ZBGdMdN�dNej#�ZCdOdP�ZDeEdQk�r�e�F�dSdS)U�N)�mock)�support)�	os_helper)�
socket_helper)�threading_helper)�	ALWAYS_EQ�LARGEST�SMALLESTzfoo@bar.baz.spamgH�zns�@i�z.zyx.41�my dog has fleasFu	䀀怀耀z
regular value�20050210T11:41:23)	��r
�
��)�r����r
rrrr)ZastringZafloatZanintZ
ashortlongZanotherlistZabase64Zb64bytesZb64bytearrayZboolean�unicodeuukey䀀Z	datetime1Z	datetime2Z	datetime3c@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-S).�XMLRPCTestCasecCs.t�tf�}t�|�}|�t|dd�dS)Nr)�	xmlrpclib�dumps�alist�loads�assertEqual)�self�dump�load�r�-/usr/local/lib/python3.10/test/test_xmlrpc.py�test_dump_load0s
zXMLRPCTestCase.test_dump_loadcCs6t�dddddd�}|�|t�d��t�|f�}tj|dd	�\}}|\}|�||�|�t|�tj�|�|�tj|d
d	�\}}|\}|�||�|�t|�tj�|�|�tj|dd�\}}|\}|�||�|�t|�tj�|�|�tj|d
d�\}}|\}|�||�|�t|�tj�|�|�dS)Nr
r
rrrrrT��use_builtin_typesF)Zuse_datetime�	�datetimerr�DateTimerr�assertIs�type�assertIsNone�rZdt�s�result�mZnewdtrrr�test_dump_bare_datetime5s.


z&XMLRPCTestCase.test_dump_bare_datetimecCs�t�dddddd�}|�|t�d��t�|f�}tj|dd	�\}}|\}|�||�|�t|�tj�|�|�tj|d
d	�\}}|\}|�||�|�t|�tj�|�|�dS)Nrr
rrrrz00010210T11:41:23Tr!Fr#r)rrr�test_datetime_before_1900Ws
z(XMLRPCTestCase.test_datetime_before_1900cCsRt��}t�tj|fdd��\\}}|�|jt�tj|fdd�}|�|t�dS)NT��methodresponse)rr%rrZassertIsInstance�value�str)r�dZnew_d�dummyr*rrr�test_bug_1164912is�zXMLRPCTestCase.test_bug_1164912cCsLGdd�dt�}|�}d|_d|_t�t�|f��\\}}|�||j�dS)Nc@seZdZdS)z-XMLRPCTestCase.test_newstyle_class.<locals>.TN)�__name__�
__module__�__qualname__rrrr�Ttsr9�dZHello)�object�x�yrrrr�__dict__)rr9�t�t2r4rrr�test_newstyle_classssz"XMLRPCTestCase.test_newstyle_classcCs|�ttjddf�dS)Nr
�c)�assertRaises�
OverflowErrorrr�rrrr�test_dump_big_long|�z!XMLRPCTestCase.test_dump_big_longcCs|�ttjddif�dS)N�rr
�r�rC�	TypeErrorrrrErrr�test_dump_bad_dictrGz!XMLRPCTestCase.test_dump_bad_dictcCs4gd�}ddd|g}|�|�|�ttj|f�dS)NrHrI��)�appendrCrKrr)r�lr?rrr�test_dump_recursive_seq�s
z&XMLRPCTestCase.test_dump_recursive_seqcCs2ddd�}d|d�}||d<|�ttj|f�dS)Nr)�1�2rI)�3r3r?rJ�rr3r?rrr�test_dump_recursive_dict�s

z'XMLRPCTestCase.test_dump_recursive_dictcCs�tjdkr|�ttjtd�f�t�tjtjf�|�ttjtjdf�|�ttjtjdf�dd�}t�	�}|�
tj|�|�
tj|�|�t|j
tjd|�|�t|j
tjd|�dS)Ni����rcS�dS�Nr�r*rrr�dummy_write��z5XMLRPCTestCase.test_dump_big_int.<locals>.dummy_write)�sys�maxsizerCrDrr�int�MAXINT�MININT�
MarshallerZdump_int�rr[r,rrr�test_dump_big_int�s*

�

�

�

�

�z XMLRPCTestCase.test_dump_big_intcCs�t�td�f�t�ttj�ttj�f�t�ttjd�ttjd�f�dd�}t��}|�tj|�|�tj|�|�tjd|�|�tjd|�dS)NrW�*cSrXrYrrZrrrr[�r\z4XMLRPCTestCase.test_dump_double.<locals>.dummy_write)rr�floatr`rarbZdump_doublercrrr�test_dump_double�s��zXMLRPCTestCase.test_dump_doublecCsTtdg}tdgf}tj|dd�}|�|t�|�dd�|�ttj|f�dS)NT)�
allow_noner)rrrrrrCrK)rr1Zarg1�strgrrr�test_dump_none�s
�zXMLRPCTestCase.test_dump_nonecCs�ddi}tj|fdd�}d|}|�t�|�dd|�|�dd�}|�t�|�dd|�tj|fddd	�}|�t�|�dd|�|�dd�}|�t�|�dd|�d
}tj|fd|d�}|�t�|�dd|�|�t�|�d|�dS)
Nukey€¤u
value€¤�iso-8859-15��encodingz,<?xml version='1.0' encoding='iso-8859-15'?>r�xmlcharrefreplaceT)rmr0umethod€¤)rm�
methodnamer)rrrr�encode)rr1rirorrr�test_dump_encoding�s(�
�
�z!XMLRPCTestCase.test_dump_encodingcCs�d}|�|t�|��tttjfD]K}||�}t�|f�}tj|dd�\}}|\}|�||�|�t|�t�|�	|�tj|dd�\}}|\}|�||�|�t|�tj�|�	|�qdS)NrTr!F)
rr�Binary�bytes�	bytearrayrrr&r'r()r�sampleZtype_r1r*r+r,�newvaluerrr�test_dump_bytes�s 
�zXMLRPCTestCase.test_dump_bytescCsFtj}d}|�|tj|�d}|�|tj|�d}|�|tj|�dS)Nz6<params><param><value><spam/></value></param></params>zT<params><param><value><array><value><spam/></value></array></value></param></params>z�<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�
ResponseErrorrCr)rrx�datarrr�test_loads_unsupported�sz%XMLRPCTestCase.test_loads_unsupportedcKsRd|}tj|fi|��\}}|\}|�||�|�t|�t|��|�|�dS)Nz1<params><param><value>%s</value></param></params>)rrrr&r'r()rr*r1�kwargsrr+r,rvrrr�check_loads�szXMLRPCTestCase.check_loadsc
Cs�|j}|dd�|dd�|dd�|dd�|dd�|d	d�|d
d�|dd
�|dt�d��|dddd�|dt�d��|dt�dddddd�dd�|dddg�|dddd��dS)N�stringz<string>string</string>u4<string>𝔘𝔫𝔦𝔠𝔬𝔡𝔢 string</string>u#𝔘𝔫𝔦𝔠𝔬𝔡𝔢 stringz<int>2056183947</int>i��zz<int>-2056183947</int>iuq�z<i4>2056183947</i4>z<double>46093.78125</double>g���@z<boolean>0</boolean>Fz%<base64>AGJ5dGUgc3RyaW5n/w==</base64>s
byte string�Tr!z6<dateTime.iso8601>20050210T11:41:23</dateTime.iso8601>rr
r
rrrrzR<array><data><value><int>1</int></value><value><int>2</int></value></data></array>rz�<struct><member><name>b</name><value><int>2</int></value></member><member><name>a</name><value><int>1</int></value></member></struct>)�a�b)r|rrrr%r$�r�checkrrr�test_load_standard_types�s8







������z'XMLRPCTestCase.test_load_standard_typescCs`|j}|dd�|dd�|dd�|dd�|dd�|d	d
�|dd�|d
t�d��dS)Nz<nil/>z	<ex:nil/>z<i1>205</i1>��z<i2>20561</i2>iQPz<i8>9876543210</i8>l�`	z-<biginteger>98765432100123456789</biginteger>l5�?�4*UUz<float>93.78125</float>grW@z.<bigdecimal>9876543210.0123456789</bigdecimal>z9876543210.0123456789)r|�decimalZDecimalr�rrr�test_load_extension_typess




�
�z(XMLRPCTestCase.test_load_extension_typesc	Cs�|j}d}t�|��Sd|d}|�t��|d|�d�d�Wd�n1s*wY|�t��|d|�d�d�Wd�n1sHwYWd�dSWd�dS1s`wYdS)Ni�rRrz<int>z</int>z<biginteger>z
</biginteger>)r|rZadjust_int_max_str_digitsrC�
ValueError)rr�Z	maxdigitsr*rrr�test_limit_int"s���"�zXMLRPCTestCase.test_limit_intcCs(tj��}|�|�d�ddgif�dS)Nz
user@host.tldzhost.tld)Z
AuthorizationzBasic dXNlcg==)�xmlrpc�client�	TransportrZ
get_host_info)rZtransprrr�test_get_host_info,s
��z!XMLRPCTestCase.test_get_host_infocCs|zddl}Wntyd}Ynwd}ztj�d���WdSty/|�|d�YdSty=|�	|�YdSw)NrFTzhttps://localhost:9999z&xmlrpc client's error with SSL support)
�ssl�ImportErrorr�r��ServerProxyZbad_function�NotImplementedError�assertFalse�OSError�
assertTrue)rr�Zhas_sslrrr�test_ssl_presence3s��z XMLRPCTestCase.test_ssl_presencecs�Gdd�dtjj�}�fdd�}tj�tjdf|��|��j�tj	|d�}|�
�|�|j�dj�j
�}t�|��}|�|��d�|�|��d�Wd�dS1sWwYdS)	Nc@s$eZdZdZdZdd�Zdd�ZdS)z@XMLRPCTestCase.test_keepalive_disconnect.<locals>.RequestHandler�HTTP/1.1FcSs�t|j�d��}|j�|�|jrd|_dStjddd�}|�	�}|�
tjj
�|�dt|��|��|j�|�d|_d|_dS)N�Content-LengthT)rNr/F)r_�headers�getZrfile�read�handledZclose_connectionrrrpZ
send_response�httpZ
HTTPStatusZOKZsend_header�lenZend_headersZwfile�write)r�length�responserrr�do_POSTFs
zHXMLRPCTestCase.test_keepalive_disconnect.<locals>.RequestHandler.do_POSTcWrXrYr)r�format�argsrrr�log_messageU�zLXMLRPCTestCase.test_keepalive_disconnect.<locals>.RequestHandler.log_messageN)r6r7r8�protocol_versionr�r�r�rrrr�RequestHandlerBs
r�cs$�j�td��������dS�Nr)�socket�
settimeoutrf�handle_requestr��serverrr�
run_serverYsz<XMLRPCTestCase.test_keepalive_disconnect.<locals>.run_serverr)�targetz
http://{}:{}/rN)r�r�ZBaseHTTPRequestHandlerZ
HTTPServerrZHOST�
addCleanup�server_close�	threading�Thread�start�joinr�Zserver_addressrr�r�method)rr�r��thread�url�prr�r�test_keepalive_disconnectAs"�z(XMLRPCTestCase.test_keepalive_disconnectN)r6r7r8r r-r.r5rArFrLrQrVrdrgrjrqrwrzr|r�r�r�r�r�r�rrrrr.s."
	

rc@sLeZdZGdd�de�Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dS)�SimpleXMLRPCDispatcherTestCasec@seZdZdZdS)z*SimpleXMLRPCDispatcherTestCase.DispatchExczSRaised inside the dispatched functions when checking for
        chained exceptionsN)r6r7r8�__doc__rrrr�DispatchExcj�r�cs�d}�fdd�}tj��}|�|����j��}|�d|�Wd�n1s)wY��|jj	|f���
|jj���
|jj�dS)z$Calls explicitly registered functionrHcs
��|��rY)r�)�paramsrErr�dispatched_funcu�
zQSimpleXMLRPCDispatcherTestCase.test_call_registered_func.<locals>.dispatched_funcr�N)
r�r��SimpleXMLRPCDispatcher�register_functionrCr��	_dispatchr�	exceptionr�r(�	__cause__�__context__)r�
exp_paramsr��
dispatcher�exc_ctxrrEr�test_call_registered_funcns

�z8SimpleXMLRPCDispatcherTestCase.test_call_registered_funccCs�d}Gdd�d�}tj��}|�|��|�|j��}|�d|�Wd�n1s+wY|�|jj	|f�|�
|jj�|�
|jj�dS)z3Calls a registered instance attribute as a functionrHc@�eZdZdd�ZdS)zOSimpleXMLRPCDispatcherTestCase.test_call_instance_func.<locals>.DispatchedClasscWs
t�|��rY�r�r�)rr�rrrr��r�z_SimpleXMLRPCDispatcherTestCase.test_call_instance_func.<locals>.DispatchedClass.dispatched_funcN)r6r7r8r�rrrr�DispatchedClass��r�r�N�
r�r�r��register_instancerCr�r�rr�r�r(r�r�)rr�r�r�r�rrr�test_call_instance_func�s
�z6SimpleXMLRPCDispatcherTestCase.test_call_instance_funccCs�d}d}Gdd�d�}tj��}|�|��|�|j��}|�||�Wd�n1s-wY|�|jj	||f�|�
|jj�|�
|jj�dS)z4Calls the registered instance's `_dispatch` functionr�rHc@r�)zLSimpleXMLRPCDispatcherTestCase.test_call_dispatch_func.<locals>.TestInstancecSst�||��rYr�)rr�r�rrrr��s�zVSimpleXMLRPCDispatcherTestCase.test_call_dispatch_func.<locals>.TestInstance._dispatchN)r6r7r8r�rrrr�TestInstance�r�r�Nr�)rZ
exp_methodr�r�r�r�rrr�test_call_dispatch_func�s
�z6SimpleXMLRPCDispatcherTestCase.test_call_dispatch_funccCsVtj��}|jddd�|�td��|�dd�Wd�dS1s$wYdS)z2Calls explicitly registered function which is NoneNr���name�Zparam)r�r�r�r��assertRaisesRegex�	Exceptionr��rr�rrr�test_registered_func_is_none�s

"�z;SimpleXMLRPCDispatcherTestCase.test_registered_func_is_nonecCsTtj��}|�t��|�td��|�dd�Wd�dS1s#wYdS)z>Attempts to call nonexistent function on a registered instancer�r�N)r�r�r�r�r;r�r�r�r�rrr�test_instance_has_no_func�s

"�z8SimpleXMLRPCDispatcherTestCase.test_instance_has_no_funccCsHtj��}|�td��|�dd�Wd�dS1swYdS)z2Calls a function that the dispatcher cannot locater�r�N)r�r�r�r�r�r�r�rrr�test_cannot_locate_func�s
"�z6SimpleXMLRPCDispatcherTestCase.test_cannot_locate_funcN)r6r7r8r�r�r�r�r�r�r�r�rrrrr�isr�c@r�)�HelperTestCasecCs:|�t�d�d�|�t�d�d�|�t�d�d�dS)Nza&bza&amp;bza<bza&lt;bza>bza&gt;b)rr�escaperErrr�test_escape�szHelperTestCase.test_escapeN)r6r7r8r�rrrrr��r�r�c@�$eZdZdd�Zdd�Zdd�ZdS)�
FaultTestCasecCs4t�dd�}|�t|�d�|�t|�t|��dS)Nre�
Test Faultz<Fault 42: 'Test Fault'>)r�Faultr�reprr2)r�frrr�	test_repr�szFaultTestCase.test_reprcCsjt�dd�}t�|f�}t�|�\\}}|�|ddd��|�|d�t���|�}|�tjtj|�dS)Nrer�)�	faultCode�faultString)rr�rrrrbrC)rr�r*Znewfr,rrr�test_dump_fault�szFaultTestCase.test_dump_faultcCs,|�ttjjtd�|�tj�td��dS�NZ__add�title)rC�AttributeErrorr�r��resolve_dotted_attributer2r�rErrr�test_dotted_attribute�s
�z#FaultTestCase.test_dotted_attributeN)r6r7r8r�r�r�rrrrr��s
r�c@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�DateTimeTestCasecCslt�d��'}t�gd��}||_t��}t��}|�t	|�t�
d|��Wd�dS1s/wYdS)Nztime.localtime)	i���r��1r��r�%Y%m%dT%H:%M:%S)rZpatch�time�struct_timeZreturn_value�	localtimerr%rr2�strftime)rZlocaltime_mockZtime_structr�r?rrr�test_default�s�

�"�zDateTimeTestCase.test_defaultc	Cs0d}t�|�}|�t|�t�dt�|���dS�Ngl]�ޮ��Ar�)rr%rr2r�r�r�rUrrr�	test_time�s


�zDateTimeTestCase.test_timecCs"d}t�|�}|�t|�d�dS)N)	����	r�&�2rN�rz20070609T10:38:50)rr%rr2rUrrr�test_time_tuple�s
z DateTimeTestCase.test_time_tuplecCs0t�d�}t�|�}|�t|�t�d|��dSr�)r�r�rr%rr2r�rUrrr�test_time_struct�s

z!DateTimeTestCase.test_time_structcCs2t�dddddd�}t�|�}|�t|�d�dS)Nr�rr
rIrMrNz20070102T03:04:05)r$rr%rr2rUrrr�test_datetime_datetime�s
z'DateTimeTestCase.test_datetime_datetimecCs>t�dddddd�}t�|�}dt|�}|�t|�|�dS)Nr�rr
rIrMrNz%<DateTime '20070102T03:04:05' at %#x>)r$rr%�idrr�)rr3r?�valrrrr��s
zDateTimeTestCase.test_reprc
CsVd}t��}|�|�t�t�dddddd��}|�||�t�|�}|�||�dS)Nz 20070908T07:11:13  r�r��r�r�
)rr%�decoder$rZ	_datetime)rr3�t1Ztrefr@rrr�test_decodes

zDateTimeTestCase.test_decodecCs^tj��}t�|���}|�||k�|�||k�|tjdd�}|�||k�|�||k�|�d�}|�||k�|�||k�t�|���}|�||k�|�||k�|�d�}|��}|�	|dk�|�||k�|�	|t
|�k�|�||k�|�t��|t
d�kWd�n1s�wY|�t��||kWd�n1s�wY|�t��|t
|�kWd�n1s�wY|�t��||kWd�n1s�wY|�|tk�|�	|tk�|�|tk�|�	|tk�|�|tk�|�	|tk�|�	|tk�|�|tk�|�	|tk�|�|tk�dS)NrM)Zsecondsr��asciii�)r$�nowrr%Z	timetupler�Z	timedeltar�rpr�rtrCrKrfrrr	)rr
ZdtimeZthenZdstrZ
dtime_thenZdbytesZdtuplerrr�test_comparison
sR


�
��
�z DateTimeTestCase.test_comparisonN)r6r7r8r�r�rrrr�rrrrrrr��s

r�c@r�)�BinaryTestCasecCst��}|�t|�d�dS)N��rrrrr2)rr?rrrr�CszBinaryTestCase.test_defaultcCs(d}t�|�}|�t|�t|d��dS�Nsabc123��zlatin-1rrUrrr�test_stringGs
zBinaryTestCase.test_stringcCsZd}t�|�}t��}|�|�|�t|�t|d��t�|�}|�t|�t|d��dSr)�base64Zencodebytesrrrr	rr2Z_binary)rr3�der
r@rrrrLs


zBinaryTestCase.test_decodeN)r6r7r8r�rrrrrrr<src
Cs\Gdd�d�}Gdd�dtjj�}|stjj}|d||ddd�}z�z[|��|j��\aadttfa	|�
�|��|��|�
t�|�
d	d
�d�|j
dd
��}|j
dd�dd��}|�}	|j|	dd�|��|dkr{|��|d8}|dksoWn	ty�YnwW|j��da|��dSW|j��da|��dS|j��da|��w)Nc@s*eZdZdd�Zdd�ZGdd�d�ZdS)z&http_server.<locals>.TestInstanceClasscS�||SrYr�rr<r=rrr�div^�z*http_server.<locals>.TestInstanceClass.divcS�|dkrdSdS�Nr�This is the div functionr�rr�rrr�_methodHelpa��z2http_server.<locals>.TestInstanceClass._methodHelpc@seZdZedd��ZdS)z.http_server.<locals>.TestInstanceClass.FixturecS�dS)N�42rrrrr�getDatafr�z6http_server.<locals>.TestInstanceClass.Fixture.getDataN)r6r7r8�staticmethodr"rrrr�Fixtureesr$N)r6r7r8rrr$rrrr�TestInstanceClass]sr%c@r�)z#http_server.<locals>.MyXMLRPCServercS� |j��\}}|�d�||fS�NT�r��accept�setblocking�rr*�portrrr�get_requestk�
z/http_server.<locals>.MyXMLRPCServer.get_requestN�r6r7r8r-rrrr�MyXMLRPCServerjr�r0��	localhostrF)rm�logRequests�bind_and_activate�http://%s:%dcS�|SrYr)r<rrr�<lambda>��zhttp_server.<locals>.<lambda>�têštcSr ��This is my functionTrrrrr�my_function�sz http_server.<locals>.my_function�addr�cS�||SrYr�r<r=rrr�_�szhttp_server.<locals>._T)Zallow_dotted_namesrr)r�r��SimpleXMLRPCServer�SimpleXMLRPCRequestHandler�server_bindr��getsockname�ADDR�PORT�URL�server_activate� register_introspection_functions�register_multicall_functionsr��powr��setr��TimeoutError�close)
�evt�numrequests�requestHandlerrmr%r0�servr<r@ZtestInstancerrr�http_server\sV
�



����
�

�
rScCs�Gdd�d�}dd�}Gdd�dtjj�}|stjj}Gdd�d|�}Gd	d
�d
�}|d|ddd
�}|j�d�|��z�zi|j��\aa	dtt	fa
|��gd�}	|	D]}
|�|
tj�
��}|��|��|�|
fdd�d�qU|�|	d��t�|�|	d��dd�d�|�d|��|��|dkr�|��|d8}|dks�Wn	ty�YnwW|j��da	|��dSW|j��da	|��dS|j��da	|��w)Nc@seZdZdd�Zdd�ZdS)z,http_multi_server.<locals>.TestInstanceClasscSrrYrrrrrr�rz0http_multi_server.<locals>.TestInstanceClass.divcSrrrrrrrr�rz8http_multi_server.<locals>.TestInstanceClass._methodHelpN)r6r7r8rrrrrrr%�sr%cSr r:rrrrrr<�r�z&http_multi_server.<locals>.my_functionc@r�)z)http_multi_server.<locals>.MyXMLRPCServercSr&r'r(r+rrrr-�r.z5http_multi_server.<locals>.MyXMLRPCServer.get_requestNr/rrrrr0�r�r0c@seZdZgZdS)z+http_multi_server.<locals>.MyRequestHandlerN)r6r7r8Z	rpc_pathsrrrr�MyRequestHandler�r�rTc@seZdZddd�ZdS)z+http_multi_server.<locals>.BrokenDispatcherNcSstd��)Nzbroken dispatcher)�RuntimeError)rryZdispatch_method�pathrrr�_marshaled_dispatch�rz?http_multi_server.<locals>.BrokenDispatcher._marshaled_dispatch�NN)r6r7r8rWrrrr�BrokenDispatcher�srYr1F)r3r4rIr5)
�/foo�/foo/bar�/foo?k=v�	/foo#frag�
/foo?k=v#fragr�/�/RPC2�?k=v�#fragcSr6rYr)r�rrrr7�r8z#http_multi_server.<locals>.<lambda>�testrrcSr>rYrr?rrrr7�sr=�
/is/broken)r�r�ZMultiPathXMLRPCServerrBr�r�rCrDrErFrGrHZadd_dispatcherr�rIrJr�Zget_dispatcherrKrLr�rMrN)rOrPrQr%r<r0rTrYrR�pathsrVr3rrr�http_multi_server�sZ�����
�

�
rfcCsbz|jdks|jdurWdS|j�d�}Wn
ty"t|�}Ynw|r-d|��vr/dSdSdS)z�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.rNT�X-exceptionztemporarily unavailable)Zerrcoder�r�r�r2�lower)�eZexc_messrrr�is_unavailable_exception�s��rjcs|sdd�S�fdd�}|S)NcSr6rYr)�funcrrrr7�r8z)make_request_and_skipIf.<locals>.<lambda>cs�fdd�}|S)Nc
sRz	t�t���Wntjtfy#}zt|�s�WYd}~nd}~wwt����rY)	rr�rGr<�
ProtocolErrorr�rj�unittestZSkipTest)rri��reasonrr�make_request_and_skip�s���
zImake_request_and_skipIf.<locals>.decorator.<locals>.make_request_and_skipr)rkrprnrr�	decorator�sz*make_request_and_skipIf.<locals>.decoratorr)Z	conditionrorqrrnr�make_request_and_skipIf�s	rrc@s,eZdZdZdZee�Zdd�Zdd�Z	dS)�BaseServerTestCaseNrcCs`dtjj_t��|_|j|j|jf}tj	|j
|d�}|��|�|j
�|j��|j��dS)NT�r�r�)r�r�rA�_send_traceback_headerr��EventrO�
request_countrQr��
threadFuncr�r�r��wait�clear�rZ	serv_argsr�rrr�setUp
s


zBaseServerTestCase.setUpcCs|j��dtjj_dS�NF)rOryr�r�rArurErrr�tearDowns
zBaseServerTestCase.tearDown)
r6r7r8rQrwr#rSrxr|r~rrrrrssrsc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	e
ejj
dkd�dd��Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%S)&�SimpleServerTestCasecCs�zt�t�}|�|�dd�d�WdStjtfy@}zt|�s5|�d|t	|dd�f�WYd}~dSWYd}~dSd}~ww)Nr�r���%s
%sr�r)
rr�rGrrKrlr�rj�fail�getattr�rr�rirrr�test_simple1!s
(���z!SimpleServerTestCase.test_simple1cCs�d}d}zt�t�}|�|�||�||�WdStjtfyF}zt|�s;|�d|t	|dd�f�WYd}~dSWYd}~dSd}~ww)NuPŷtuhơnr�r�r)
rr�rGrr=rlr�rjr�r��rZstart_stringZ
end_stringr�rirrr�
test_nonascii+s

�(���z"SimpleServerTestCase.test_nonasciicCs�d}d}ztjtdd�}|�|�||�||�WdStjtjfyI}zt|�s>|�	d|t
|dd�f�WYd}~dSWYd}~dSd}~ww)N�€�¤rkrlr�r�r�rr�rGrr=rlr��errorrjr�r�r�rrr�test_client_encoding8s
�(���z)SimpleServerTestCase.test_client_encodingcCs�ztjtdd�}|�|�d�d�WdStjtjfyB}zt|�s7|�	d|t
|dd�f�WYd}~dSWYd}~dSd}~ww)Nrrlrer�r�r)rr�rGrttêštrlr�r�rjr�r�r�rrr�test_nonascii_methodnameFs(���z-SimpleServerTestCase.test_nonascii_methodnamecCsht�tj�tt���}|�dd�|��}Wd�n1swY|�	|j
d�|�	|jd�dS)NZPOSTz/this-is-not-validi�z	Not Found)�
contextlib�closingr�r�ZHTTPConnectionrErFZrequestZgetresponser�statusro)r�connr�rrr�test_404Ps
�zSimpleServerTestCase.test_404cCs�tgd��}zt�t�}|j��}|�t|�|�WdStjtfyI}zt	|�s>|�
d|t|dd�f�WYd}~dSWYd}~dSd}~ww)N)
rKrr<r=r9zsystem.listMethodszsystem.methodHelpzsystem.methodSignaturezsystem.multicallr$r�r�r)rLrr�rG�systemZlistMethodsrrlr�rjr�r�)rZexpected_methodsr��methrirrr�test_introspection1Zs

(���z(SimpleServerTestCase.test_introspection1cC�zt�t�}|j�d�}|�|d�WdStjtfyB}zt|�s7|�	d|t
|dd�f�WYd}~dSWYd}~dSd}~ww)Nrrr�r�r�rr�rGr�Z
methodHelprrlr�rjr�r�)rr�Zdivhelprirrr�test_introspection2js
(���z(SimpleServerTestCase.test_introspection2r
z)Docstrings are omitted with -O2 and abovecCr�)Nr<r;r�r�rr�)rr�Z
myfunctionrirrr�test_introspection3vs
(���z(SimpleServerTestCase.test_introspection3cCr�)Nrzsignatures not supportedr�r�r)rr�rGr�ZmethodSignaturerrlr�rjr�r�)rr�Zdivsigrirrr�test_introspection4�s
(���z(SimpleServerTestCase.test_introspection4cCs�z7t�t�}t�|�}|�dd�|�dd�|�dd�|�\}}}|�|d�|�|d�|�|d�WdStjt	fye}zt
|�sZ|�d	|t|d
d�f�WYd}~dSWYd}~dSd}~ww)Nr
rIr�r�rerNr�r�r�r)
rr�rG�	MultiCallr=rKrrrlr�rjr�r�)rr��	multicall�
add_resultZ
pow_resultZ
div_resultrirrr�test_multicall�s 

(���z#SimpleServerTestCase.test_multicallcCs�z*t�t�}t�|�}|��|�}|�|jddd�|�|jddd�WdStjtfyX}zt	|�sM|�
d|t|dd�f�WYd}~dSWYd}~dSd}~ww)	Nrr�rr�z@<class 'Exception'>:method "this_is_not_exists" is not supportedr�r�r)rr�rGr�Zthis_is_not_existsr�resultsrlr�rjr�r�)rr�r�r+rirrr�test_non_existing_multicall�s


�(���z0SimpleServerTestCase.test_non_existing_multicallcCs4|�ttjjtd�|�tj�td��|��dSr�)rCr�r�r�r�r2r�r�rErrrr��s

�z*SimpleServerTestCase.test_dotted_attributecCs,t�dttf�}|j��}|�|d�dS)N�http://%s:%d/RPC2r!)rr�rErFr$r"r)rr�ryrrr�test_allow_dotted_names_true�s
z1SimpleServerTestCase.test_allow_dotted_names_truecCs*t�dttf�}|�|�dd�d�dS)Nr�r~�éuaé)rr�rErFrr=�rr�rrr�test_unicode_host�sz&SimpleServerTestCase.test_unicode_hostcCsXt�t�ttf���}|�dt�dt�d��d��Wd�dS1s%wYdS)Nz@POST /RPC2 HTTP/1.0
Content-Length: 100

bye HTTP/1.1
Host: �:z2
Accept-Encoding: identity
Content-Length: 0

r)r�r�r��create_connectionrErF�sendrp)rr�rrr�test_partial_post�s���"�z&SimpleServerTestCase.test_partial_postcCs^t�t��}|�dd�|�|d�jd�Wd�n1swY|�|d�jd�dS)Nr
rI�	transportrX)rr�rGr=ZassertNotEqual�_connectionrr�rrr�test_context_manager�s���z)SimpleServerTestCase.test_context_managercCsfzt�t��}|�dd�Wd�n1swYWn
tjy'Ynw|�|d�jd�dS)Nr
r~r�rX)rr�rGr=r�rr�r�rrr�!test_context_manager_method_error�s����z6SimpleServerTestCase.test_context_manager_method_errorN)r6r7r8r�r�r�r�r�r�r�rrr]�flags�optimizer�r�r�r�r�r�r�r�r�r�rrrrr s*



�



rc@s"eZdZeddd��Zdd�ZdS)�SimpleServerEncodingTestCaseNcCst|||d�dS)Nrk)rS)rOrPrQrmrrrrx�sz'SimpleServerEncodingTestCase.threadFunccCs�d}d}zt�t�}|�|�||�||�WdStjtjfyG}zt|�s<|�	d|t
|dd�f�WYd}~dSWYd}~dSd}~ww)Nr�r�r�r�rr�r�rrr�test_server_encoding�s

�(���z1SimpleServerEncodingTestCase.test_server_encodingrX)r6r7r8r#rxr�rrrrr��sr�c@speZdZee�ZdZdd�Zdd�Zdd�Z	dd	�Z
d
d�Zdd
�Zdd�Z
dd�Zdd�Zdd�Zdd�ZdS)�MultiPathServerTestCaser
cC�:t�td�}|�|�dd�d�|�tj|jdd�dS)NrZr�rr�)rr�rGrrKrCr�r=�rr�rrr�
test_path1��z"MultiPathServerTestCase.test_path1cCr�)Nr[r�r�)rr�rGrr=rCr�rKr�rrr�
test_path2r�z"MultiPathServerTestCase.test_path2cC�&t�td�}|�tj|jdd�dS)Nrdr�r�rr�rGrCr�r=r�rrr�
test_path3�z"MultiPathServerTestCase.test_path3cCr�)Nz/invalidr�rr�r�rrr�test_invalid_pathr�z)MultiPathServerTestCase.test_invalid_pathcC�"t�td�}|�|��d�dS)Nr^�rr�rGrrcr�rrr�test_path_query_fragment�z0MultiPathServerTestCase.test_path_query_fragmentcCr�)Nr]r�r�rrr�test_path_fragmentr�z*MultiPathServerTestCase.test_path_fragmentcCr�)Nr\r�r�rrr�test_path_queryr�z'MultiPathServerTestCase.test_path_querycCst�t�}|�|��d�dS)Nr`r�r�rrr�test_empty_paths
z'MultiPathServerTestCase.test_empty_pathcCr�)Nr_r�r�rrr�test_root_path r�z&MultiPathServerTestCase.test_root_pathcCr�)Nrar�r�rrr�test_empty_path_query$r�z-MultiPathServerTestCase.test_empty_path_querycCr�)Nrbr�r�rrr�test_empty_path_fragment(r�z0MultiPathServerTestCase.test_empty_path_fragmentN)r6r7r8r#rfrxrwr�r�r�r�r�r�r�r�r�r�r�rrrrr��sr�c@s,eZdZGdd�dejj�ZeZdd�ZdS)�BaseKeepaliveServerTestCasec@s,eZdZejjZdZgZdd�Z	dd�Z
dS)z*BaseKeepaliveServerTestCase.RequestHandlerr�cCs(|j�g�t|j�d|_|j�|�Sr�)�
myRequestsrOr��reqidx�parentClass�handlerErrrr�6sz1BaseKeepaliveServerTestCase.RequestHandler.handlecCs$|j�|�}|j|j�|j�|SrY)r��handle_one_requestr�r�rOZraw_requestline)rr+rrrr�:sz=BaseKeepaliveServerTestCase.RequestHandler.handle_one_requestN)r6r7r8r�r�rBr�r�r�r�r�rrrrr�2sr�cCsg|j_t�|�SrY)r�r�rsr|rErrrr|@s
z!BaseKeepaliveServerTestCase.setUpN)	r6r7r8r�r�rBr�rQr|rrrrr�/s
r�c@r�)�KeepaliveServerTestCase1cCs�t�t�}|�|�dd�d�|�|�dd�d�|�|�dd�d�|d��|�t|jj�d�|�t|jjd�d�dS)Nr�rr�rNrrr
�	rr�rGrrKr�r�r�ZassertGreaterEqualr�rrr�test_twoHs

z!KeepaliveServerTestCase1.test_twoN)r6r7r8r�rrrrr�Gr�r�c@� eZdZdZdd�Zdd�ZdS)�KeepaliveServerTestCase2r
cCs�t�t�}|�|�dd�d�|�|�dd�d�|�|�dd�d�|d��|�|�dd�d�|�|�dd�d�|�|�dd�d�|d��|�t|jj�d�|�t|jjd�d�|�t|jjd�d�dS)Nr�rr�rNr
r���r�r�rrr�
test_close^s


z#KeepaliveServerTestCase2.test_closecCs`t�t�}|�|�dd�d�|d���|�|�dd�d�|d��|�t|jj�d�dS)Nr�rr�r�rNr
)	rr�rGrrKrNr�r�r�r�rrr�test_transportqs

z'KeepaliveServerTestCase2.test_transportN)r6r7r8rwr�r�rrrrr�Zsr�z
requires gzipc@sVeZdZGdd�dejj�ZeZGdd�dej	�Z	dd�Z
dd�Zd	d
�Zdd�Z
d
S)�GzipServerTestCasec@s eZdZejjZdZdd�ZdS)z!GzipServerTestCase.RequestHandlerr�cCst|jd�|j_|j�|�S)N�content-length)r_r��	__class__�content_lengthr�r�rErrrr��sz)GzipServerTestCase.RequestHandler.do_POSTN)	r6r7r8r�r�rBr�r�r�rrrrr��sr�c@r�)zGzipServerTestCase.TransportFcCs t|�dd��|_tj�||�S)Nr�r)r_Z	getheader�response_lengthrr��parse_response)rr�rrrr��sz+GzipServerTestCase.Transport.parse_responsecCs"|jr	|�dd�tj�|||�S)NzContent-Encoding�gzip)�	fake_gzipZ	putheaderrr��send_content)r�
connection�bodyrrrr��sz)GzipServerTestCase.Transport.send_contentN)r6r7r8r�r�r�rrrrr��sr�cCst�|�dSrY)rsr|rErrrr|�szGzipServerTestCase.setUpcCsv|��}d|_tjt|d�}|�|�dd�d�|jj}d|_|�|�dd�d�|jj}|�	||k�|d��dS�N�r�r�rr�rrN)
r��encode_thresholdrr�rGrrKr�r�r�)rr?r�r~rrrr�test_gzip_request�sz$GzipServerTestCase.test_gzip_requestcCst|��}d|_d|_tjt|d�}|�tjt�	d��}|�|�
dd�Wd�n1s.wY|d��dS)NTr�z\b400\br�rrN)r�r�r�rr�rGr�rl�re�compilerK)rr?r��cmrrr�test_bad_gzip_request�s��z(GzipServerTestCase.test_bad_gzip_requestcCs�|��}tjt|d�}|jj}d|j_|�|�dd�d�|j}d|j_|�|�dd�d�|d��|j}||j_|�	||k�dSr�)
r�rr�rGrQr�rrKr�r�)rr?r��oldr~rrrr�test_gzip_response�s
z%GzipServerTestCase.test_gzip_responseN)r6r7r8r�r�rBr�rQrr�r|r�r�r�rrrrr�|s
r�c@r�)�GzipUtilTestCasecCs�d}d|}t�|�}t�|�}|�t|�|�d|d}t�|�}|�td��
t�|�Wd�n1s9wYtj|dd�dS)Ni@�rz#max gzipped payload length exceededr)Z
max_decode)rZgzip_encodeZgzip_decoderr�r�r�)rZmax_gzip_decodery�encodedZdecodedrrr�test_gzip_decode_limit�s


��z'GzipUtilTestCase.test_gzip_decode_limitN)r6r7r8r�rrrrr��sr�csleZdZGdd�dejj�ZeZgd�Z�fdd�Z	dd�Z
dd	�Zd
d�Zdd
�Z
dd�Zdd�Z�ZS)�HeadersServerTestCasecs eZdZdZ�fdd�Z�ZS)z$HeadersServerTestCase.RequestHandlerNcs|j|j_t���SrY)r�r��test_headers�superr�rE�r�rrr��s

z,HeadersServerTestCase.RequestHandler.do_POST)r6r7r8r�r��
__classcell__rrr�rr��sr�)ZHostzAccept-EncodingzContent-Typez
User-Agentr�csd|j_t���SrY)r�r�r�r|rEr�rrr|�s
zHeadersServerTestCase.setUpcCsRt|jt|����}|�t|���|�|��D]
\}}|�|�|�|�qdSrY)�sorted�standard_headers�list�keysZassertListEqual�itemsrr�)rr��
additionalZ
expected_keys�keyr1rrr�assertContainsAdditionalHeaders�s
�z5HeadersServerTestCase.assertContainsAdditionalHeaderscCs@tjtdgd�}|�|�dd�d�|jj}|�|ddi�dS)N��X-Test�foo�r�r�rr�r�r��rr�rGrrKr�r�r��rr�r�rrr�test_header�sz!HeadersServerTestCase.test_headercCsDtjtddgd�}|�|�dd�d�|jj}|�|ddd	��dS)
Nr�)�
X-Test-Second�barrr�rr�r�r)r�rrrrrr�test_header_many�s�
�z&HeadersServerTestCase.test_header_manycCs:tjtgd�}|�|�dd�d�|jj}|�|i�dS)Nrr�rr�rrrrr�test_header_empty�sz'HeadersServerTestCase.test_header_emptycCs>tjtdd�}|�|�dd�d�|jj}|�|ddi�dS)N)r�rr�rr�r�r�rrrrr�test_header_tuplesz'HeadersServerTestCase.test_header_tuplecCsFtjtddi��d�}|�|�dd�d�|jj}|�|ddi�dS)Nr�r�rr�rr�)	rr�rGr�rrKr�r�r�rrrr�test_header_items	sz'HeadersServerTestCase.test_header_items)r6r7r8r�r�rBr�rQr�r|r�rrrrr	r�rrr�rr��s	r�c@r�)�ServerProxyTestCasecCstj�|�d|_dS)Nzhttp://fake.localhost)rm�TestCaser|r�rErrrr|s
zServerProxyTestCase.setUpcCs"t�|j�}|�|d��d�dS)NrN)rr�r�rr�rrrr�szServerProxyTestCase.test_closecCs,t��}tj|j|d�}|�|d�|�dS)Nr�r�)rr�r�r�r)rr?r�rrrr�sz"ServerProxyTestCase.test_transportN)r6r7r8r|r�r�rrrrr
sr
cseZdZd�fdd�	Z�ZS)�FailingMessageClassNcs"|��}|dkr
dSt��||�S)Nr�zI am broken)rhr�r�)rr�Zfailobjr�rrr�&szFailingMessageClass.getrY)r6r7r8r�r�rrr�rr%src@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�FailingServerTestCasecCsNt��|_|jdf}tjt|d�}|��|�|j�|j��|j�	�dS)Nrrt)
r�rvrOr�rSr�r�r�ryrzr{rrrr|.s


zFailingServerTestCase.setUpcCs*|j��dtjj_tjj}|tjj	_
dSr})rOryr�r�rArur�r��HTTPMessagerB�MessageClass)rZ
default_classrrrr~:s

zFailingServerTestCase.tearDowncCs�tjjj}|�|d�dtjj_zt�t�}|�|�dd�d�WdStj	t
fyP}zt|�sE|�d|t
|dd�f�WYd}~dSWYd}~dSd}~ww)	NFTr�rr�r�r�r)r�r�rArurrr�rGrKrlr�rjr�r�)rZflagvalr�rirrr�
test_basicCs


(���z FailingServerTestCase.test_basicc
Cs�ttjj_z
t�t�}|�dd�WnCtj	t
fyU}z4t|�sCt|d�rJ|�
|j�d�du�|�
|j�d�du�WYd}~dSWYd}~dSWYd}~dSd}~ww|�d�dS)Nr�rr�rg�X-traceback�ProtocolError not raised)rr�r�rBrrr�rGrKrlr�rj�hasattrr�r�r�r�r�rrr�test_fail_no_infoUs

$���z'FailingServerTestCase.test_fail_no_infoc
Cs�ttjj_dtjj_z
t�t	�}|�
dd�WnDtjtfy[}z5t
|�sIt|d�rPd}|�|j�d�|�|�|j�d�du�WYd}~dSWYd}~dSWYd}~dSd}~ww|�d�dS)	NTr�rr�z5invalid literal for int() with base 10: 'I am broken'rgrr)rr�r�rBrrArurr�rGrKrlr�rjrrr�r�r�r�)rr�riZexpected_errrrr�test_fail_with_infoes


$���z)FailingServerTestCase.test_fail_with_infoN)r6r7r8r|r~rrrrrrrr
-s	r
�utf-8ccs:�tj}tjt��|d�t_z
tjVW|t_dS|t_w)zhA variation on support.captured_stdout() which gives a text stream
    having a `buffer` attribute.
    rlN)r]�stdout�io�
TextIOWrapper�BytesIO)rmZorig_stdoutrrr�captured_stdout{s�
rc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�CGIHandlerTestCasecCstj��|_dSrY)r�r��CGIXMLRPCRequestHandler�cgirErrrr|��zCGIHandlerTestCase.setUpcCs
d|_dSrY)rrErrrr~�r�zCGIHandlerTestCase.tearDownc	Cs�t���O}d|d<t|jjd��
}|j��Wd�n1s wY|�d�|��}|��d}d�	|��dd��}|�
|d	�|�
|d
�Wd�dS1sVwYdS)N�GETZREQUEST_METHODrlrr� r
rMZ400zBad Request)r�EnvironmentVarGuardrrrmr��seekr��splitr�r)r�env�data_outr�r��messagerrr�test_cgi_get�s
�
"�zCGIHandlerTestCase.test_cgi_getc
Csd}t���J}t|jjd��3}t���}|�|�|�d�t	t
|��|d<|j��Wd�n1s5wYWd�n1sDwYWd�n1sSwY|�d�|��}|�
tjtj|dd��||�d�d�}|�tt�d|��d��t
|��dS)	Naw<?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>
        rlrZCONTENT_LENGTH�,z<?xmlzContent-Length: (\d+)r)rr"rrrmrZcaptured_stdinr�r#r2r�r�r�rCrr�r�findrr_r��search�group)rryr%r&Zdata_inr�Zcontentrrr�test_cgi_xmlrpc_response�s2
��

���
�z+CGIHandlerTestCase.test_cgi_xmlrpc_responseN)r6r7r8r|r~r(r-rrrrr�s
rc@r�)�UseBuiltinTypesTestCasecs�g�_d}t�dddddd�}t�||fd�}�fd	d
�}tjjdddd�}|�|�|�|���	t
�j�d
��j\}}��	�j||g���t|�tj���t|�t
�dS)Nri�rN�����foobarcs�j�|�dSrY)�log�extend)r�rErrr3�rz>UseBuiltinTypesTestCase.test_use_builtin_types.<locals>.foobarT)rhrmr"r
)r4r$rrr�r�r�r�rWrr�r&r'rs)rZexpected_bytesZ
expected_dateZ	marshaledr3�handlerZmybytesZmydaterrEr�test_use_builtin_types�s�


z.UseBuiltinTypesTestCase.test_use_builtin_typescCstjjdd�}|�|j�dS)NTr!)r�r�rr�r")rr6rrr�*test_cgihandler_has_use_builtin_types_flag�szBUseBuiltinTypesTestCase.test_cgihandler_has_use_builtin_types_flagcCs(tjjddd�}|��|�|j�dS)Nr1Tr!)r�r�rAr�r�r"r�rrr�,test_xmlrpcserver_has_use_builtin_types_flag�s
�zDUseBuiltinTypesTestCase.test_xmlrpcserver_has_use_builtin_types_flagN)r6r7r8r7r8r9rrrrr.�sr.cCs t��}tjtjg|�R�dSrY)rZthreading_setuprmZaddModuleCleanupZthreading_cleanup)�thread_inforrr�setUpModule�sr;�__main__rXrY)r)Grr$r�r]r�rmr�
xmlrpc.clientr�rZ
xmlrpc.serverr�Zhttp.clientr�Zhttp.serverr�r�r�rr�rcrZtest.supportrrrrrr	r�r�rrrtr%rrrr�r�r�r�rrErFrGrSrfrjrrrsrr�r�r�r�r�ZskipIfr�r�r�r
rrr
�contextmanagerrrr.r;r6�mainrrrr�<module>s�����=W_

@HH4"C>ND!
�