Your IP : 216.73.216.213


Current Path : /opt/alt/python36/lib64/python3.6/test/test_json/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/test/test_json/__pycache__/test_indent.cpython-36.opt-1.pyc

3

� f �@sZddlZddlmZddlmZmZGdd�d�ZGdd�dee�ZGdd	�d	ee�ZdS)
�N)�StringIO)�PyTest�CTestc@seZdZdd�Zdd�ZdS)�
TestIndentc
Cs�dgdggdddddidd	d
�g}tjd�}|j|�}|j|dd
dd�}|j|dd
dd�}|j|dd
d�}|j|dd
d�}|j|�}|j|�}	|j|�}
|j||�|j|	|�|j|
|�|j||jd��|j||�|j||�|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�,�: )�indent�	sort_keysZ
separators�	)rr)r	r
)r	r
)�textwrap�dedent�dumps�loads�assertEqual�
expandtabs)�self�hZexpect�d1Zd2Zd3Zd4Zd5Zh1Zh2Zh3�r�?/opt/alt/python36/lib64/python3.6/test/test_json/test_indent.py�test_indents&



zTestIndent.test_indentcs.ddi���fdd�}|dd�|dd�dS)N��csF�j�|d�}�j||�t�}�jj�||d��j|j�|�dS)N)r)rrrZjson�dump�getvalue)rZexpectedrZsio)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)r r!r"rrrrr#Bsr#c@seZdZdS)�TestCIndentN)r r!r"rrrrr$Csr$)	r�iorZtest.test_jsonrrrr#r$rrrr�<module>s
<