Your IP : 216.73.216.60


Current Path : /opt/alt/python37/lib64/python3.7/test/test_json/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/test/test_json/__pycache__/test_indent.cpython-37.pyc

B

� f �@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�hZexpect�d1Zd2Zd3Zd4Zd5Zh1Zh2Zh3�r�?/opt/alt/python37/lib64/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)rrr rrrrr!Bsr!c@seZdZdS)�TestCIndentN)rrr rrrrr"Csr")	r�iorZtest.test_jsonrrrr!r"rrrr�<module>s
<