Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/test/test_json/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/test_json/__pycache__/test_indent.cpython-35.opt-1.pyc



��Yf �@s{ddlZddlmZddlmZmZGdd�d�ZGdd�dee�ZGdd	�d	ee�ZdS)
�N)�StringIO)�PyTest�CTestc@s(eZdZdd�Zdd�ZdS)�
TestIndentcCsvdgdggdddddidd	d
dig}tjd�}|j|�}|j|d
ddddd�}|j|d
ddddd�}|j|d
ddd�}|j|d
ddd�}|j|�}|j|�}	|j|�}
|j||�|j|	|�|j|
|�|j||jd��|j||�|j||�|j||�dS)NZblorpieZwhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthZnifty�WZfield�yesZ	morefieldFa3        [
        	[
        		"blorpie"
        	],
        	[
        		"whoops"
        	],
        	[],
        	"d-shtaeou",
        	"d-nthiouh",
        	"i-vhbjkhnth",
        	{
        		"nifty": 87
        	},
        	{
        		"field": "yes",
        		"morefield": false
        	}
        ]�indent�Z	sort_keysTZ
separators�,�: �	)r
r)r
r)�textwrap�dedent�dumps�loads�assertEqual�
expandtabs)�self�hZexpect�d1Zd2Zd3Zd4Zd5Zh1Zh2Zh3�r�?/opt/alt/python35/lib64/python3.5/test/test_json/test_indent.py�test_indents&	!!zTestIndent.test_indentcs?ddi���fdd�}|dd�|dd�dS)N��csa�j�d|�}�j||�t�}�jj�|d|��j|j�|�dS)Nr)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@seZdZdS)�TestPyIndentN)rr r!rrrrr"Bsr"c@seZdZdS)�TestCIndentN)rr r!rrrrr#Csr#)	r
�iorZtest.test_jsonrrrr"r#rrrr�<module>s
<