Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /lib64/python3.9/site-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.9/site-packages/simplejson/tests/__pycache__/test_indent.cpython-39.opt-1.pyc
a

\Փa
�@s<ddlmZddlZddlZddlmZGdd�de�ZdS)�)�TestCaseN)�StringIOc@s$eZdZdd�Zdd�Zdd�ZdS)�
TestIndentc
Cs�dgdggdddddidd	d
�g}t�d�}t�|�}tj|dd
dd�}tj|dd
dd�}tj|dd
dd�}t�|�}t�|�}t�|�}	t�|�}
|�||�|�||�|�|	|�|�|
|�|�||�dd��|�||�dd��|�||�dS)NZblorpieZwhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthZnifty�WZyesF)ZfieldZ	morefielda3        [
        	[
        		"blorpie"
        	],
        	[
        		"whoops"
        	],
        	[],
        	"d-shtaeou",
        	"d-nthiouh",
        	"i-vhbjkhnth",
        	{
        		"nifty": 87
        	},
        	{
        		"field": "yes",
        		"morefield": false
        	}
        ]�	T��,�: )�indentZ	sort_keys�
separatorsz  �)�textwrap�dedent�json�dumps�loads�assertEqual�replace)�self�h�expect�d1Zd2Zd3Zd4Zh1Zh2Zh3Zh4�r�B/usr/lib64/python3.9/site-packages/simplejson/tests/test_indent.py�test_indents(�





zTestIndent.test_indentcs.ddi���fdd�}|dd�|dd�dS)N��csDtj�|d�}��||�t�}tj�||d���|��|�dS)N�r
)rrrr�dump�getvalue)r
ZexpectedrZsio�rrrr�check:s
z&TestIndent.test_indent0.<locals>.checkrz
{
"3": 1
}z{"3": 1}r)rr!rr r�test_indent08s	
zTestIndent.test_indent0cCsZgd�}d}d}|�|tj|ddd��|�|tj|ddd��|�|tj|dd��dS)	N)rrr�z[
1,
2,
3,
4
]z[
1, 
2, 
3, 
4
]r)z, r	)r
rrr)rrr)rZlstrZ
expect_spacesrrr�test_separatorsGs���zTestIndent.test_separatorsN)�__name__�
__module__�__qualname__rr"r$rrrrrs0r)Zunittestrr
Z
simplejsonrZsimplejson.compatrrrrrr�<module>s

Yohohohohohooho | Sanrei Aya