403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.74
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/simplejson/tests/__pycache__/test_unicode.cpython-312.pyc
�

"Ie���V�ddlZddlZddlmZddlZddlmZmZm	Z	m
Z
Gd�de�Zy)�N)�TestCase)�unichr�	text_type�b�BytesIOc�x�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zy)�TestUnicodec��tjd��}d}|jd�}|j|�}|j|�}|j||�y)N�utf-8��encoding�αΩ)�json�JSONEncoder�encode�assertEqual)�self�encoder�u�s�ju�jss      �?/usr/lib/python3/dist-packages/simplejson/tests/test_unicode.py�test_encoding1zTestUnicode.test_encoding1	sQ���"�"�G�4��I��
�H�H�W���
�^�^�A�
��
�^�^�A�
������R� �c��d}|jd�}tj|d��}tj|d��}|j||�y)Nrrr)rr�dumpsr)rrrrrs     r�test_encoding2zTestUnicode.test_encoding2sE��I��
�H�H�W���
�Z�Z��G�
,��
�Z�Z��G�
,������R� rc�V�d}tj|�}|j|d�y)Nrz"\u03b1\u03a9"�rrr�rr�js   r�test_encoding3zTestUnicode.test_encoding3s%��I���J�J�q�M������.�/rc�X�d}tj|g�}|j|d�y)Nrz["\u03b1\u03a9"]r r!s   r�test_encoding4zTestUnicode.test_encoding4s'��I���J�J��s�O������0�1rc�f�d}tj|d��}|j|d|zdz�y)NrF��ensure_ascii�"r r!s   r�test_encoding5zTestUnicode.test_encoding5"s/��I���J�J�q�u�-������D�1�H�t�O�,rc�h�d}tj|gd��}|j|d|zdz�y)NrFr'z["z"]r r!s   r�test_encoding6zTestUnicode.test_encoding6's2��I���J�J��s��/������E�A�I��-�.rc��d}|jtj|�d�|jtj|d��d�y)Nu𝄠z"\ud834\udd20"Fr'u"𝄠")rrr�rrs  r�test_big_unicode_encodez#TestUnicode.test_big_unicode_encode,s;����������A��(:�;�������A�E�:�O�Lrc��d}|jtjd|zdz�|�|jtjd�|�y)Nuz𝄠xr)z"z\ud834\udd20x")rr�loadsr.s  r�test_big_unicode_decodez#TestUnicode.test_big_unicode_decode1sB����������C�!�G�c�M�2�A�6�������$8�9�1�=rc��tdd�D]8}t|�}d|fz}|jtj|�|��:y)Nri��z"\u%04x")�rangerrrr1)r�irrs    r�test_unicode_decodezTestUnicode.test_unicode_decode6sE���q�&�!�	/�A��q�	�A��q�d�"�A����T�Z�Z��]�A�.�		/rc�6�d}gd�}|jtj|�t|��|jtj|d���|�tj|tj��}|j|tj|��|jt|�tj�|jtj|tjd���tj|��y)Nz?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}))�xkd�)�kcw�)�art�)�hxm�)�qrt�)�pad�)�hoy�c��|S�N���xs r�<lambda>zATestUnicode.test_object_pairs_hook_with_unicode.<locals>.<lambda>Bs��1�r)�object_pairs_hookc��yrGrHrIs rrKzATestUnicode.test_object_pairs_hook_with_unicode.<locals>.<lambda>Is�r)rL�object_hook)rrr1�eval�OrderedDict�type)rr�p�ods    r�#test_object_pairs_hook_with_unicodez/TestUnicode.test_object_pairs_hook_with_unicode=s���N��
4��������A���Q��0�������A��E�q�I�
�Z�Z��T�-=�-=�
>������T�-�-�a�0�1�����b��4�#3�#3�4�������A�6:�6F�6F�0>�@��)�)�!�,�	.rc�p�|jtjdjd��ddi�y)Nu{"a": "é"}r�a�é)rrr1r�rs r�test_default_encodingz!TestUnicode.test_default_encodingMs.��������$4�$;�$;�G�$D�E�
�'�N�	rc�6�|jttjd��t�|jttjd��t�|jttjd�d�t�y)Nz""z"a"z["a"]r)rrQrr1rrXs r�test_unicode_preservationz%TestUnicode.test_unicode_preservationQsa������d�j�j��/�0�)�<�����d�j�j��0�1�9�=�����d�j�j��2�1�5�6�	�Brc��|jttjgd���t�|jttjdd���t�|jttjid���t�|jttjdd���t�y)NFr'r�)rrQrrrrXs r�'test_ensure_ascii_false_returns_unicodez3TestUnicode.test_ensure_ascii_false_returns_unicodeVs�������d�j�j��%�@�A�9�M�����d�j�j���?�@�)�L�����d�j�j��%�@�A�9�M�����d�j�j��%�@�A�9�Mrc�^�dtd�i}ddi}d}d}|jtj|�|�|jtj|�|�|jtj|d��|�|jtj|d��|�y)N�quuxuArrêt sur imagesuArrêt sur imagesz!{"quux": "Arr\u00eat sur images"}u{"quux": "Arrêt sur images"}Fr')rrrr)r�doc1�doc2�	doc_ascii�doc_unicodes     r�+test_ensure_ascii_false_bytestring_encodingz7TestUnicode.test_ensure_ascii_false_bytestring_encoding]s�����4�5�6���/�0��8�	�8��������D�)�9�5�������D�)�9�5�������D�u�=�{�K�������D�u�=�{�Krc�b�d}|jd�}d}d}|jtj|�|�|jtj|�|�|jtj|d��|�|jtj|d��|�y)Nu

�utf8z"\u2029\u2028"u"

"Fr')rrrr)r�s1�s2�expect�expect_non_asciis     r�$test_ensure_ascii_linebreak_encodingz0TestUnicode.test_ensure_ascii_linebreak_encodinghs���
��
�Y�Y�v�
��#��,��������B���0�������B���0�������B�U�;�=M�N�������B�U�;�=M�Nrc�l�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd	�tj
d
kD�ry|jtjtjd�|jtjtjd�|jtjtjd
�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�|jtjtjd�yy)Nz"\uz"\u1z"\u12z"\u123z"\u1234z"\u123x"z"\u12x4"z"\u1x34"z"\ux234"i��z
"\ud800\u"z"\ud800\u0"z"\ud800\u00"z
"\ud800\u000"z"\ud800\u000x"z"\ud800\u00x0"z"\ud800\u0x00"z"\ud800\ux000")�assertRaisesr�JSONDecodeErrorr1�sys�
maxunicoderXs r�test_invalid_escape_sequencesz)TestUnicode.test_invalid_escape_sequencesss������$�.�.��
�
�F�C����$�.�.��
�
�G�D����$�.�.��
�
�H�E����$�.�.��
�
�I�F����$�.�.��
�
�J�G����$�.�.��
�
�K�H����$�.�.��
�
�K�H����$�.�.��
�
�K�H����$�.�.��
�
�K�H��>�>�E�!����d�2�2�D�J�J��O����d�2�2�D�J�J��P����d�2�2�D�J�J�@P�Q����d�2�2�D�J�J�@Q�R����d�2�2�D�J�J�@R�S����d�2�2�D�J�J�@R�S����d�2�2�D�J�J�@R�S����d�2�2�D�J�J�@R�S�"rc��tttdd��D]<}|jt	j
|d��t	j
|���>d}|jt	j
d��d|zdz�y)Nr�Fr'u☃r))�maprr4rrr)r�c�snowmans   r�test_ensure_ascii_still_worksz)TestUnicode.test_ensure_ascii_still_works�ss���V�U�1�c�]�+�	�A�����
�
�1�5�1��
�
�1�
�
�	�!������J�J�q�u�-��!�G�c�M�	rc�<�d}tjttj|��z}|jtjt|��|�||jd�fD]'}|jtj|�|��)y)Nuこんにちわrg)
�codecs�BOM_UTF8rrrr�loadr�decoder1)r�content�json_doc�docs    r�test_strip_bomzTestUnicode.test_strip_bom�sv��3���?�?�Q�t�z�z�'�':�%;�;��������7�8�#4�5�w�?��X�_�_�V�4�4�	7�C����T�Z�Z��_�g�6�	7rN)�__name__�
__module__�__qualname__rrr#r%r*r,r/r2r6rTrYr[r^rerlrrrxr�rHrrr	r	sb��!�!�0�
2�
-�
/�
M�
>�
/�
.� �C�
N�	L�	O�T�.	�7rr	)rprz�unittestr�
simplejsonr�simplejson.compatrrrrr	rHrr�<module>r�s%��
�
���;�;�R7�(�R7r

Youez - 2016 - github.com/yon3zu
LinuXploit