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_separators.cpython-35.opt-2.pyc



���]'�@skddlZddlmZmZGdd�d�ZGdd�dee�ZGdd�dee�ZdS)	�N)�PyTest�CTestc@s(eZdZdd�Zdd�ZdS)�TestSeparatorscCs�dgdggdddddidd	d
dig}tjd�}|j|�}|j|d
ddddd�}|j|�}|j|�}|j||�|j||�|j||�dS)NZblorpieZwhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthZnifty�WZfield�yesZ	morefieldFaT        [
          [
            "blorpie"
          ] ,
          [
            "whoops"
          ] ,
          [] ,
          "d-shtaeou" ,
          "d-nthiouh" ,
          "i-vhbjkhnth" ,
          {
            "nifty" : 87
          } ,
          {
            "field" : "yes" ,
            "morefield" : false
          }
        ]�indent�Z	sort_keysT�
separators� ,� : )r
r)�textwrap�dedent�dumps�loadsZassertEqual)�self�h�expectZd1Zd2Zh1Zh2�r�4/opt/alt/python35/lib64/python3.5/test_separators.py�test_separatorss	!zTestSeparators.test_separatorscCsjddddi}|jt|j|dd
�|jt|j|dd�|jt|j|dd�dS)
N�r��r	�, �: �, �: )rr)rr)rr)ZassertRaises�	TypeErrorr)rrrrr�test_illegal_separators*sz&TestSeparators.test_illegal_separatorsN)�__name__�
__module__�__qualname__rrrrrrrs$rc@seZdZdS)�TestPySeparatorsN)rr r!rrrrr"1sr"c@seZdZdS)�TestCSeparatorsN)rr r!rrrrr#2sr#)rZtest.test_jsonrrrr"r#rrrr�<module>s,