HEX
Server: LiteSpeed
System: Linux altar40.supremepanel40.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: sescorpcl (4477)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib64/python3.6/site-packages/simplejson/tests/__pycache__/test_indent.cpython-36.pyc
3

�8�]
�@s<ddlmZddlZddlZddlmZGdd�de�ZdS)�)�TestCaseN)�StringIOc@s$eZdZdd�Zdd�Zdd�ZdS)�
TestIndentc
Cs�dgdggdddddidd	d
�g}tjd�}tj|�}tj|dd
dd�}tj|dd
dd�}tj|dd
dd�}tj|�}tj|�}tj|�}	tj|�}
|j||�|j||�|j|	|�|j|
|�|j||jdd��|j||jdd��|j||�dS)NZblorpieZwhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthZnifty�W�yesF)ZfieldZ	morefielda3        [
        	[
        		"blorpie"
        	],
        	[
        		"whoops"
        	],
        	[],
        	"d-shtaeou",
        	"d-nthiouh",
        	"i-vhbjkhnth",
        	{
        		"nifty": 87
        	},
        	{
        		"field": "yes",
        		"morefield": false
        	}
        ]�	T�,�: )�indentZ	sort_keys�
separatorsz  �)rr	)rr	)rr	)�textwrap�dedent�json�dumps�loads�assertEqual�replace)�self�h�expect�d1Zd2Zd3Zd4Zh1Zh2Zh3Zh4�r�#/usr/lib64/python3.6/test_indent.py�test_indents(




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