403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_docxmlrpc.cpython-313.opt-1.pyc
�

��iG%����SSKJr SSKrSSKrSSKrSSKrSSKrSSKJ	r	 \	R"SS9 SrSr"SS	\R5r\S
:Xa\R "5 gg)�)�DocXMLRPCServerN)�supportT)�modulec�(^�U(dS$U4SjnU$)Nc��U$�N�)�funcs �(C:\Python313\\Lib\test\test_docxmlrpc.py�<lambda>�)make_request_and_skipIf.<locals>.<lambda>s��D�c�>�U4SjnU$)Nc�>�URRSS5 URR5 [R"T5e)N�GET�/)�client�request�getresponse�unittest�SkipTest)�self�reasons �r�make_request_and_skip�Imake_request_and_skipIf.<locals>.decorator.<locals>.make_request_and_skips8����K�K����s�+��K�K�#�#�%��#�#�F�+�+rr	)r
rrs  �r�	decorator�*make_request_and_skipIf.<locals>.decorators���	,�%�$rr	)�	conditionrrs ` r�make_request_and_skipIfrs���� � �%��rc���[SSS9nURS5 URS5 URS5 "SS[5nUR5 UR
U"55 S	nS
[4Sjn"SS
5nURU5 URS5 URU5 UR
U"55 U$! UR5 e=f)N)�	localhostrF)�logRequestsz"DocXMLRPCServer Test DocumentationzDocXMLRPCServer Test DocszmThis is an XML-RPC server's documentation, but the server can be used by POSTing to /RPC2. Try self.add, too.c��\rSrSrSrSrg)�make_server.<locals>.TestClass�%c��Xlg)z7Test method's docs. This method truly does very little.N��arg)rr(s  r�test_method�*make_server.<locals>.TestClass.test_method&s���rr'N)�__name__�
__module__�__qualname__�__firstlineno__r)�__static_attributes__r	rr�	TestClassr$%s��
rr0c�
�X-$)z�Add two instances together. This follows PEP008, but has nothing
to do with RFC1952. Case should matter: pEp008 and rFC1952.  Things
that start with http and ftp should be auto-linked, too:
http://google.com.
r	��x�ys  r�add�make_server.<locals>.add-s���5�Lrr3c��U$)zUse function annotations. r	)r3s r�
annotation�make_server.<locals>.annotation5s���Hrc�"�\rSrSrS\4SjrSrg)�(make_server.<locals>.ClassWithAnnotation�9r3c�"�UR5$r)�decode)rr3s  r�method_annotation�:make_server.<locals>.ClassWithAnnotation.method_annotation:s���x�x�z�!rr	N)r+r,r-r.�bytesr?r/r	rr�ClassWithAnnotationr;9s��
"�5�
"rrBc�
�X-
$rr	r2s  rr�make_server.<locals>.<lambda>>s��A�Cr)
r�set_server_title�set_server_name�set_server_documentation�object� register_introspection_functions�register_instance�int�register_function�server_close)�servr0r5r8rBs     r�make_serverrOs����+��?�D�(����B�C����8�9��%�%�
B�	C�
	��	�
	
�-�-�/����y�{�+�	�	�#�	�	"�	"�	
���s�#����/�0����z�*����2�4�5���������
�s�CC�C+c���\rSrSrSrSrSrSrSrSr	\
"\RRS:�S	5S
5r\
"\RRS:�S	5S5rSrS
rSrSrg)�DocXMLRPCHTTPGETServer�Fc�F�S[l[5Ul[R
"URRS9UlURR5 URRSn[RRSU-5Ulg)NT)�target�zlocalhost:%d)
r�_send_traceback_headerrOrN�	threading�Thread�
serve_forever�thread�start�server_address�httpr�HTTPConnection)r�PORTs  r�setUp�DocXMLRPCHTTPGETServer.setUpGsn��15��.��M��	��&�&�d�i�i�.E�.E�F����������y�y�'�'��*���k�k�0�0��$�1F�G��rc���URR5 S[lURR5 URR5 URR5 g)NF)	r�closerrVrN�shutdownrZ�joinrM)rs r�tearDown�DocXMLRPCHTTPGETServer.tearDownRsL��������27��.��	�	�����������	�	��� rc�
�URRSS5 URR5nURURS5 URURS5S5 UR
5 g)Nrr���Content-typeztext/html; charset=UTF-8�rrr�assertEqual�status�	getheader�read�r�responses  r�test_valid_get_response�.DocXMLRPCHTTPGETServer.test_valid_get_response[sc�������E�3�'��;�;�*�*�,��������#�.�����+�+�N�;�=W�X�	�
�
�rc�
�URRSS5 URR5nURURS5 URURS5S5 UR
5 g)Nrz
/pydoc.cssrirjztext/css; charset=UTF-8rkrps  r�test_get_css�#DocXMLRPCHTTPGETServer.test_get_cssesc�������E�<�0��;�;�*�*�,��������#�.�����+�+�N�;�=V�W�	�
�
�rc�
�URRSS5 URR5nURURS5 URURS5S5 UR
5 g)Nrz/spami�rjz
text/plainrkrps  r�test_invalid_get_response�0DocXMLRPCHTTPGETServer.test_invalid_get_responseos`�������E�7�+��;�;�*�*�,��������#�.�����+�+�N�;�\�J��
�
�rc��URRSS5 URR5nURSUR	55 g)z�Test that lambda functionality stays the same.  The output produced
currently is, I suspect invalid because of the unencoded brackets in the
HTML, "<lambda>".

The subtraction lambda method is tested.
rrsU<dl><dt><a name="-&lt;lambda&gt;"><strong>&lt;lambda&gt;</strong></a>(x, y)</dt></dl>N�rrr�assertInrorps  r�test_lambda�"DocXMLRPCHTTPGETServer.test_lambdaxsE��	
�����E�3�'��;�;�*�*�,���
�
�F��m�m�o�	'r�z)Docstrings are omitted with -O2 and abovec��URRSS5 URR5R5nUR	SU5 g)z�Test that the server correctly automatically wraps references to
PEPS and RFCs with links, and that it linkifies text starting with
http or ftp protocol prefixes.

The documentation for the "add" method contains the test material.
rrsG<dl><dt><a name="-add"><strong>add</strong></a>(x, y)</dt><dd><tt>Add&nbsp;two&nbsp;instances&nbsp;together.&nbsp;This&nbsp;follows&nbsp;<a href="https://peps.python.org/pep-0008/">PEP008</a>,&nbsp;but&nbsp;has&nbsp;nothing<br>
to&nbsp;do&nbsp;with&nbsp;<a href="https://www.rfc-editor.org/rfc/rfc1952.txt">RFC1952</a>.&nbsp;Case&nbsp;should&nbsp;matter:&nbsp;pEp008&nbsp;and&nbsp;rFC1952.&nbsp;&nbsp;Things<br>
that&nbsp;start&nbsp;with&nbsp;http&nbsp;and&nbsp;ftp&nbsp;should&nbsp;be&nbsp;auto-linked,&nbsp;too:<br>
<a href="http://google.com">http://google.com</a>.</tt></dd></dl>N�rrrror|rps  r�test_autolinking�'DocXMLRPCHTTPGETServer.test_autolinking�sK��	
�����E�3�'��;�;�*�*�,�1�1�3���
�
�	6�9A�
	Brc��URRSS5 URR5R5nUR	SU5 g)z�Test the presence of three consecutive system.* methods.

This also tests their use of parameter type recognition and the
systems related to that process.
rrs�<dl><dt><a name="-system.methodHelp"><strong>system.methodHelp</strong></a>(method_name)</dt><dd><tt><a href="#-system.methodHelp">system.methodHelp</a>('add')&nbsp;=&gt;&nbsp;"Adds&nbsp;two&nbsp;integers&nbsp;together"<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;string&nbsp;containing&nbsp;documentation&nbsp;for&nbsp;the&nbsp;specified&nbsp;method.</tt></dd></dl>
<dl><dt><a name="-system.methodSignature"><strong>system.methodSignature</strong></a>(method_name)</dt><dd><tt><a href="#-system.methodSignature">system.methodSignature</a>('add')&nbsp;=&gt;&nbsp;[double,&nbsp;int,&nbsp;int]<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;list&nbsp;describing&nbsp;the&nbsp;signature&nbsp;of&nbsp;the&nbsp;method.&nbsp;In&nbsp;the<br>
above&nbsp;example,&nbsp;the&nbsp;add&nbsp;method&nbsp;takes&nbsp;two&nbsp;integers&nbsp;as&nbsp;arguments<br>
and&nbsp;returns&nbsp;a&nbsp;double&nbsp;result.<br>
&nbsp;<br>
This&nbsp;server&nbsp;does&nbsp;NOT&nbsp;support&nbsp;system.methodSignature.</tt></dd></dl>Nr�rps  r�test_system_methods�*DocXMLRPCHTTPGETServer.test_system_methods�sI��	
�����E�3�'��;�;�*�*�,�1�1�3���
�
�1�4<�!	=rc��URRSS5 URR5nURSUR	55 g)zLTest that selfdot values are made strong automatically in the
documentation.rrs-Try&nbsp;self.<strong>add</strong>,&nbsp;too.Nr{rps  r�test_autolink_dotted_methods�3DocXMLRPCHTTPGETServer.test_autolink_dotted_methods�sB��	
�����E�3�'��;�;�*�*�,���
�
�J��m�m�o�	'rc��URRSS5 URR5n[RR
S:�aSOSnUR
SU-S-UR55 g)	z(Test that annotations works as expected rrrrs5<dd><tt>Use&nbsp;function&nbsp;annotations.</tt></dd>sJ<dl><dt><a name="-annotation"><strong>annotation</strong></a>(x: int)</dt>se</dl>
<dl><dt><a name="-method_annotation"><strong>method_annotation</strong></a>(x: bytes)</dt></dl>N)rrr�sys�flags�optimizer|ro)rrq�	docstrings   r�test_annotations�'DocXMLRPCHTTPGETServer.test_annotations�st�������E�3�'��;�;�*�*�,���I�I�.�.�!�3�S�M�	��
�
�� )�*�-C�C�
�M�M�O�	rc��URRS5 URRS5 URSURR5 URSURR
5 URR
5n[R"SU5R5n[R"SU5R5nURSU5 URSU5 g)Nztest_title<script>ztest_documentation<script>z<title>(.+?)</title>z<p><tt>(.+?)</tt></p>z/<title>Python: test_title&lt;script&gt;</title>z0<p><tt>test_documentation&lt;script&gt;</tt></p>)
rNrErGrl�server_title�server_documentation�generate_html_documentation�re�search�group)r�	generated�title�
documentations    r�test_server_title_escape�/DocXMLRPCHTTPGETServer.test_server_title_escape�s���	
�	�	�"�"�#7�8��	�	�*�*�+G�H����-�t�y�y�/E�/E�F����5��	�	�.�.�	0��I�I�9�9�;�	��	�	�1�9�=�C�C�E���	�	�":�I�F�L�L�N�
����J�E�R����K�]�[r)rrNrZN)r+r,r-r.r`rfrrrurxr}rr�r�r�r�r�r�r�r�r/r	rrrQrQFs���	H�!����'��S�Y�Y�/�/�1�4�@�B�B�B�B�,�S�Y�Y�/�/�1�4�@�B�=�B�=�6'��
\rrQ�__main__)�
xmlrpc.serverr�http.clientr]r�r�rWr�testr�requires_working_socketrrO�TestCaserQr+�mainr	rr�<module>r�sb��)��	�
�������t�,��+�ZX\�X�.�.�X\�v�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit