HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/test_json/__pycache__/test_indent.cpython-38.opt-2.pyc
U

0D�g �@sZddlZddlmZddlmZmZGdd�d�ZGdd�dee�ZGdd	�d	ee�ZdS)
�N)�StringIO)�PyTest�CTestc@seZdZdd�Zdd�ZdS)�
TestIndentc
Cs�dgdggdddddidd	d
�g}t�d�}|�|�}|j|dd
dd�}|j|dd
dd�}|j|dd
d�}|j|dd
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)�,z: )�indent�	sort_keysZ
separators�	)r	r
)�textwrap�dedent�dumps�loads�assertEqual�
expandtabs)�self�h�expect�d1Zd2Zd3Zd4Zd5Zh1Zh2Zh3�r�9/opt/cppython/lib/python3.8/test/test_json/test_indent.py�test_indents(�




zTestIndent.test_indentcs.ddi���fdd�}|dd�|dd�dS)N��csF�j�|d�}��||�t�}�jj�||d���|��|�dS)N)r	)rrrZjson�dump�getvalue)r	Zexpectedr�sio�rrrr�check4s
z&TestIndent.test_indent0.<locals>.checkrz
{
"3": 1
}z{"3": 1}r)rrrrr�test_indent02s	
zTestIndent.test_indent0N)�__name__�
__module__�__qualname__rr rrrrrs+rc@seZdZdS)�TestPyIndentN�r!r"r#rrrrr$Bsr$c@seZdZdS)�TestCIndentNr%rrrrr&Csr&)	r�iorZtest.test_jsonrrrr$r&rrrr�<module>s
<