403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_docxmlrpc.cpython-315.opt-1.pyc
R
>lqjG%c���]QHGs]PHs]PHs]PHs]PHs]PHs]QH G	s	\	OP	Q5QsQsQQ\O2s\Q6Xc\O 2P!P!)	�)�DocXMLRPCServer)�support)�modulec�,`�U%fQ!U1QkoU!)c��U!�N�)�funcs&�(C:\Python315\\Lib\test\test_docxmlrpc.py�<lambda>�)make_request_and_skipIf.<locals>.<lambda>s��D�c�:�U1QkoU!)c�:�UOOQQ2UOO2[OR2g)�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�+�+r
r)r	rrs& �r
�	decorator�*make_request_and_skipIf.<locals>.decorators���	,�%�$r
r)�	conditionrrs&f r
�make_request_and_skipIfrs���� � �%��r
c���[Q
P
Q5oUOQ2UOQ2UOQ2QQ[2oUO2UO
U22QoQQ	koQ
Q2oUOU2UOQ2UOU2UO
U22U!SO2g9h)�	localhost)�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�(`�\sQs]%snQsQsUsP!)�make_server.<locals>.TestClassc��VmP!)z7Test method's docs. This method truly does very little.��arg)rr&s&&r
�test_method�*make_server.<locals>.TestClass.test_method&s���r
r%)�__name__�
__module__�__qualname__�__firstlineno__r'�__static_attributes__�__classdictcell__��
__classdict__s@r
�	TestClassr#%s����
�
r
r1c��V*!)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�Lr
c�&�U]6�cPgQ[-!��r4)�int)�formats"r
�__annotate__�,make_server.<locals>.annotation.__annotate__5s��	�	�#�	r
c��U!)zUse function annotations. r)r4s&r
�
annotation�make_server.<locals>.annotation5s���Hr
c�4`�\sQs]9snU1QkQksQsUsP!)�(make_server.<locals>.ClassWithAnnotationc�":�U]6�cPgQRZ-!r9)�bytes)r<r0s"�r
r=�Gmake_server.<locals>.ClassWithAnnotation.method_annotation.__annotate__:s���
"�
"�5�
"r
c�$�UO2!r)�decode)rr4s&&r
�method_annotation�:make_server.<locals>.ClassWithAnnotation.method_annotation:s���x�x�z�!r
r)r)r*r+r,rIr-r.r/s@r
�ClassWithAnnotationrC9s����
"�
"r
rKc��V*
!rrr3s&&r
r�make_server.<locals>.<lambda>>s��A�Cr
)r r)	r�set_server_title�set_server_name�set_server_documentation�object� register_introspection_functions�register_instance�register_function�server_close)�servr1r6r@rKs     r
�make_serverrWs����+��?�D�(����B�C����8�9��%�%�
B�	C�
	��	�
	
�-�-�/����y�{�+�	�	�	"�	"�	
���s�#����/�0����z�*����2�4�5���������
�s�CC�C*c��`�\sQs]FsnQsQsQsQsQsQs	\
\OO]6�Q2Q2s\
\OO]6�Q2Q	2sQ
sQsQsQ
sUsP!)�DocXMLRPCHTTPGETServerc�`�P	[m[2Um[O
UOOQ5UmUOO2UOO]*o[OOQU*2UmP!)T)�targetzlocalhost:%d)
r�_send_traceback_headerrWrV�	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��r
c���UOO2P
[mUOO2UOO2UOO2P!)F)	r�closerr\rV�shutdownr`�joinrU)rs&r
�tearDown�DocXMLRPCHTTPGETServer.tearDownRsL��������27��.��	�	�����������	�	��� r
c��UOOQQ2UOO2oUOUO]�2UOUOQ2Q2UO
2P!)rr�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�	�
�
�r
c��UOOQQ2UOO2oUOUO]�2UOUOQ2Q2UO
2P!)rz
/pydoc.cssroztext/css; charset=UTF-8rprus& r
�test_get_css�#DocXMLRPCHTTPGETServer.test_get_cssesc�������E�<�0��;�;�*�*�,��������#�.�����+�+�N�;�=V�W�	�
�
�r
c��UOOQQ2UOO2oUOUOQ2UOUOQ2Q2UO
2P!)rz/spam�roz
text/plainrprus& r
�test_invalid_get_response�0DocXMLRPCHTTPGETServer.test_invalid_get_responseos`�������E�7�+��;�;�*�*�,��������#�.�����+�+�N�;�\�J��
�
�r
c��UOOQQ2UOO2oUOQUO	22P!)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>�rrr�assertInrtrus& r
�test_lambda�"DocXMLRPCHTTPGETServer.test_lambdaxsE��	
�����E�3�'��;�;�*�*�,���
�
�F��m�m�o�	'r
z)Docstrings are omitted with -O2 and abovec��UOOQQ2UOO2O2oUO	QU2P!)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>�rrrrtr�rus& r
�test_autolinking�'DocXMLRPCHTTPGETServer.test_autolinking�sK��	
�����E�3�'��;�;�*�*�,�1�1�3���
�
�	6�9A�
	Br
c��UOOQQ2UOO2O2oUO	QU2P!)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>r�rus& r
�test_system_methods�*DocXMLRPCHTTPGETServer.test_system_methods�sI��	
�����E�3�'��;�;�*�*�,�1�1�3���
�
�1�4<�!	=r
c��UOOQQ2UOO2oUOQUO	22P!)zLTest that selfdot values are made strong automatically in the
documentation.rrs-Try&nbsp;self.<strong>add</strong>,&nbsp;too.r�rus& r
�test_autolink_dotted_methods�3DocXMLRPCHTTPGETServer.test_autolink_dotted_methods�sB��	
�����E�3�'��;�;�*�*�,���
�
�J��m�m�o�	'r
c��UOOQQ2UOO2o[OO
]6�cQLQoUO
QU*Q*UO22P!)z(Test that annotations works as expected rrr
s5<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>)rrr�sys�flags�optimizer�rt)rrv�	docstrings&  r
�test_annotations�'DocXMLRPCHTTPGETServer.test_annotations�st�������E�3�'��;�;�*�*�,���I�I�.�.�!�3�S�M�	��
�
�� )�*�-C�C�
�M�M�O�	r
c��UOOQ2UOOQ2UOQUOO2UOQUOO
2UOO
2o[OQU2O2o[OQU2O2oUOQU2UOQU2P!)ztest_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>)
rVrNrPrq�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
)rrVr`)r)r*r+r,rfrlrwrzr~r�rr�r�r�r�r�r�r�r�r-r.r/s@r
rYrYFs�����	H�!����'��S�Y�Y�/�/�1�4�@�B�B�B�B�,�S�Y�Y�/�/�1�4�@�B�=�B�=�6'��
\�
\r
rY�__main__)�
xmlrpc.serverr�http.clientrcr�r�r]r�testr�requires_working_socketrrW�TestCaserYr)�mainrr
r
�<module>r�sb��)��	�
�������t�,��+�ZX\�X�.�.�X\�v�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit