HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/test_json/__pycache__/test_indent.cpython-37.pyc
B

��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�6/usr/local/lib/python3.7/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	ZexpectedrZsio)rrrr�check4s
z&TestIndent.test_indent0.<locals>.checkrz
{
"3": 1
}z{"3": 1}r)rrr)rrr�test_indent02s	
zTestIndent.test_indent0N)�__name__�
__module__�__qualname__rrrrrrrs+rc@seZdZdS)�TestPyIndentN)rr r!rrrrr"Bsr"c@seZdZdS)�TestCIndentN)rr r!rrrrr#Csr#)	r�iorZtest.test_jsonrrrr"r#rrrr�<module>s
<