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:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_urllibnet.cpython-315.opt-1.pyc
R
>lqj�%c�J�]PHs]QHGs]QHGs]QHGs]PHs]PHs]PH s	]PH(s	]PH,s	]PH0s]PH4s]PH<s\O Q2QQ\O"2sQQ\O"2sQ	Q
\O"2s\Q6Xc\O,2P!P!)�)�support)�	os_helper)�
socket_helper�networkc�4`�\sQs]snQsQsQsQsUsP!)�URLTimeoutTestc�P�[O[O2P!�N)�socket�setdefaulttimeoutr�INTERNET_TIMEOUT��selfs&�(C:\Python315\\Lib\test\test_urllibnet.py�setUp�URLTimeoutTest.setUps��� � ��!9�!9�:�c�4�[OP2P!r	)r
rr
s&r�tearDown�URLTimeoutTest.tearDowns��� � ��&rc��UO[OO2[OO[O2Oo[OU29^tt^2[OO[O2oUO2PPP2P!)%fhP!9hr	)
�
addCleanup�urllib�request�
urlcleanup�parse�urlparser�
TEST_HTTP_URL�netlocr�transient_internet�urlopen�read)r�domain�fs&  r�testURLread�URLTimeoutTest.testURLreads{��������1�1�2����&�&�w�'<�'<�=�D�D��
�
-�
-�f�
5�
5����&�&�w�'<�'<�=�A�
�F�F�H�6�
5�
5�
5�s�>C�C	�C	�)	�__name__�
__module__�__qualname__�__firstlineno__rrr$�__static_attributes__�__classdictcell__��
__classdict__s@rrrs����;�'��rrc�`�\sQs]&snQsQsQs\OQ2s	Qs
QsQsQs
Q	s\O Q
2Q2sQsUsP!)
�urlopenNetworkTestsaTests urllib.request.urlopen using the network.

These tests are not exhaustive.  Assuming that testing using files does a
good job overall of some of the basic interface features.  There are no
tests exercising the optional 'data' and 'proxies' arguments.  No tests
for transparent redirection have been written.

setUp is not used for always constructing a connection to
http://www.pythontest.net/ since there a few tests that don't use that address
and making a connection is expensive enough to warrant minimizing unneeded
connections.

�http://www.pythontest.net/c�Z�UO[OO2P!r	�rrrrr
s&rr�urlopenNetworkTests.setUp7���������1�1�2rc/�2 �U]*o[OU29^tt^2[OOU-U@oUw�UO2PPP2P!SO2h9h)%fhP!9h3h�r)rrrrr �close)r�args�kwargs�resource�rs&*,  rr �urlopenNetworkTests.urlopen;sk�����7��
�
-�
-�h�
7�
7����&�&��7��7�A�
������	�8�
7��
���	��8�
7�
7�s:�)B�"B�A.�B�$
B�.B�B�B	�B	�	Bc��UOUO29^tt^2oQFDoUOV2J	UOUO	2Q2PPP2P!)%fhP!9h)r!zcalling 'read' failed)r!�readline�	readlines�filenor8�info�geturl)r �url�
assertHasAttr�
assertTruer!)r�open_url�attrs&  r�
test_basic�urlopenNetworkTests.test_basicEsW��
�\�\�$�(�(�
#�
#�x�+���"�"�8�2�+�
�O�O�H�M�M�O�-D�E�	$�
#�
#�
#�s�<A+�+A<	�4A<	c��UOUO29^tt^2oUOUO2[Q2UOUO2[Q2PPP2P!)%fhP!9h)z readline did not return a stringzreadlines did not return a list)r rD�assertIsInstancer?�bytesr@�list)rrGs& r�test_readlines�"urlopenNetworkTests.test_readlinesMsd��
�\�\�$�(�(�
#�
#�x��!�!�(�"3�"3�"5�u�"D�
F��!�!�(�"4�"4�"6��"C�
E�$�
#�
#�
#�s�AA:�:B	�B	c�>�UOUO29^tt^2oUO2oUOU[O
OQ2UOUO2Q2PPP2P!)%fhP!9h)zEobject returned by 'info' is not an instance of email.message.Message�html)	r rDrBrL�email�message�Message�assertEqual�get_content_subtype)rrG�info_objs&  r�	test_info�urlopenNetworkTests.test_infoUso��
�\�\�$�(�(�
#�
#�x��}�}��H��!�!�(�E�M�M�,A�,A�#F�
G�
���X�9�9�;�V�D�$�
#�
#�
#�s�AB�B	�B	c���UOUO29^tt^2oUO2oUOV O2PPP2P!)%fhP!9hr	)r rDrCrV)rrG�
gotten_urls&  r�test_geturl�urlopenNetworkTests.test_geturl^sD��
�\�\�$�(�(�
#�
#�x�!���*�J����Z���2�$�
#�
#�
#�s�,A�A,	�$A,	c�F�UOQ*o[OU29^tt^2UO[O
O29^tt^2o[OOU29^tt^2PPP2PPP2UOWOOQ2UOO2PPP2P!)%fhKb9h)%fhKm9h)%fhP!9h)�
XXXinvalidXXX�)
rDrr�assertRaisesr�error�URLErrorrr rV�	exception�coder8)r�URL�es&  r�test_getcode� urlopenNetworkTests.test_getcodeds����h�h��(��
�
-�
-�c�
2�
2��"�"�6�<�<�#8�#8�9�9�Q��^�^�+�+�C�0�0��1�:�
���Q�[�[�-�-�s�3�
�K�K����3�
2�0�0��:�9��3�
2�
2�sN�2D�%(C<	�
C)
�C<	�AD�)C9�2C9�4C<	�<D
�D
�D�D 	�D 	�walltimec�d�Qo[OU2UOQU*2QoUO	[UQ59^tt^2[
OOQOU22PPP2P![cKgh9h)%fhP!9h)zsadflkjsasf.i.nvali.d.z&%r should not resolve for test to workzuopening an invalid URL did not raise OSError; can be caused by a broken DNS server (e.g. returns 404 or hijacks page)��msgz
http://{}/)	r
�
gethostbyname�skipTest�OSErrorrbrrr �format)r�bogus_domain�failure_explanations&  r�test_bad_address�$urlopenNetworkTests.test_bad_addressns���,0��		S�� � ��.�
�M�M�B�\�Q�R� D���
�
�w�,?�
�
@�
@��N�N�"�"�<�#6�#6�|�#D�E�A�
@���	�
�		��A�
@�
@�s)�B
�/B�
	B�B�B�B/	�'B/	r&)r'r(r)r*�__doc__rDr�
contextlib�contextmanagerr rIrOrYr]rir�requires_resourcerur+r,r-s@rr0r0&sm�����'�C�3�������F�E�E�3� �
���z�*�$F�+�$Frr0c�`�\sQs]�snQsQs\OQ2sQs	Qs
QsQs\
OQ2Q	2sQ
sQsUsP!)�urlretrieveNetworkTestsz3Tests urllib.request.urlretrieve using the network.c�Z�UO[OO2P!r	r3r
s&rr�urlretrieveNetworkTests.setUp�r5rc/�P �U]*o[OU29^tt^2[OOU-U@vqEVE1w�[
OU2PPP2P![
OS2h9h)%fhP!9h3hr7)rrrr�urlretriever�unlink)rr9r:r;�
file_locationrBs&*,   rr��#urlretrieveNetworkTests.urlretrieve�s|�����7��
�
-�
-�h�
7�
7�"(�.�.�"<�"<�d�"M�f�"M��M�
0�#�)�)�� � ��/�8�
7��
� � ��/��8�
7�
7�s:�)B&�$B�A7�B�-
B&�7B�B�B#	�B#	�	B&c	��UOUO29^tt^2vqUO[OOU2Q2[
UQ29^tt^2oUOUO2Q2PPP2PPP2P!)%fhK9h)%fhP!9h)z9file location returned by urlretrieve is not a valid path�rbz=reading from the file location returned by urlretrieve failed)r��logorF�os�path�exists�openr!�rr�rBr#s&   rrI�"urlretrieveNetworkTests.test_basic�s���
�
�
�d�i�i�
(�
(�,A�]��O�O�B�G�G�N�N�=�9�<?�
@��m�T�*�*�a��������+9�:�+�)�
(�+�*��)�
(�
(�s0�AB1�+!B	�B1�B.
�'B.
�)B1�1C	�:C	c	���UOUO[O29^tt^2vqUO	U[O2UO[OOU22[UQ29^tt^2oUOUO2Q2PPP2PPP2P!)%fhK9h)%fhP!9h)r�z"reading from temporary file failed)r�r�r�TESTFNrVrFr�r�r�r�r!r�s&   r�test_specified_path�+urlretrieveNetworkTests.test_specified_path�s���
�
�
�d�i�i�'�.�.�0�0�3H�M����]�I�,<�,<�=��O�O�B�G�G�N�N�=�9�:��m�T�*�*�a��������*N�O�+�	0�0�+�*��	0�0�0�s0�A%C�!C	�:C�C
�C
�C�C0	�(C0	c���UOUO29^tt^2vqUOU[OO
Q2PPP2P!)%fhP!9h)z0info is not an instance of email.message.Message)r�r�rLrSrTrU)rr�rBs&  r�test_header�#urlretrieveNetworkTests.test_header�sK��
�
�
�d�i�i�
(�
(�,A�]��!�!�$��
�
�(=�(=�"T�
V�)�
(�
(�
(�s�.A�A.	�&A.	r1rkc�2�UOUO29^tt^2vqUOQ2oQo[OV42PPP2P![
cSO
QS*2K/h9h)%fhP!9h)�Datez%a, %d %b %Y %H:%M:%S GMTzDate value not in %r format)r�r��get�time�strptime�
ValueError�fail)rr��fileheaders�	datevalue�
dateformats&    r�test_data_header�(urlretrieveNetworkTests.test_data_header�sz��
�
�
�d�i�i�
(�
(�,H�]�#����/�I�4�J�
F��
�
�i�4�	)�
(��
�
F��	�	�7�*�D�E�
F��)�
(�
(�s4�B�A�	B�&B�?B�B�B�B	�B	c�0`	�,n	U	1QkoUOUOUQ59^tt^2vq#[UQ*2oPPP2[R	2oUO	[R	2]QQ5UO
R	]*]*]2UO	R	]*]*]QU*Q5UO
R	]*]*W2UO
R	P*]*U2R	TTt.tFDvqgpgjJ		oooUO
R	]*]*.UQU*Q5UOR	P*]*R	]*]**UQU*Q5P!)%fhCKB9httooh)c�0:�ROVU12P!r	)�append)�blocks�
block_size�
total_size�recordss&&&�r�recording_reporthook�EurlretrieveNetworkTests.test_reporthook.<locals>.recording_reporthook�s����N�N�F�
�;�<r)�
reporthookzContent-LengthzKThere should always be two calls; the first one before the transfer starts.rmzblock size can't be 0 in %szblock sizes in %s must be equalz9number of blocks * block size must be >= total size in %s)r�r��int�repr�
assertGreater�lenrV�assertGreaterEqual)
rr�r�r��
expected_size�records_repr�_r��block_sizesr�s
&        @r�test_reporthook�'urlretrieveNetworkTests.test_reporthook�st�����	=��
�
�d�i�i�4H�
�
I�
I�N,����,<� =�>�M�J��G�}�����3�w�<��1N��	O�������A���*����7�1�:�a�=�!�<�|�K�	�	M�������A��
�6�������Q���7�:A�B�'�&6�a�Q�z�'��B����'�!�*�Q�-��+�>��M�	�	O�������A��w�q�z�!�}� <�m�%7�9E�%F�	 �	G�!J�
I�
I��Cs�E>�F�>F	�F	r&)r'r(r)r*rwrrxryr�rIr�r�r�rrzr�r�r+r,r-s@rr|r|�sj����=�3����0��0�:�P�V�(�D����z�*�F�+�F�G�Grr|�__main__)�unittest�testr�test.supportrrrxr
�urllib.errorr�urllib.parse�urllib.requestr��
email.messagerSr��requires�TestCaserr0r|r'�mainr&rr�<module>r�s�����"�&��
����	���������X�&�&��&mF�(�+�+�mF�`MG�h�/�/�MG�`�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit