Your IP : 216.73.217.32


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_separators.cpython-36.opt-1.pyc

3

� f'�@sNddlZddlmZmZGdd�d�ZGdd�dee�ZGdd�dee�ZdS)	�N)�PyTest�CTestc@seZdZdd�Zdd�ZdS)�TestSeparatorsc
Cs�dgdggdddddidd	d
�g}tjd�}|j|�}|j|dd
dd�}|j|�}|j|�}|j||�|j||�|j||�dS)NZblorpieZwhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthZnifty�W�yesF)ZfieldZ	morefieldaT        [
          [
            "blorpie"
          ] ,
          [
            "whoops"
          ] ,
          [] ,
          "d-shtaeou" ,
          "d-nthiouh" ,
          "i-vhbjkhnth" ,
          {
            "nifty" : 87
          } ,
          {
            "field" : "yes" ,
            "morefield" : false
          }
        ]�T� ,� : )�indentZ	sort_keys�
separators)rr	)�textwrap�dedent�dumps�loadsZassertEqual)�self�hZexpectZd1Zd2Zh1Zh2�r�C/opt/alt/python36/lib64/python3.6/test/test_json/test_separators.py�test_separatorss


zTestSeparators.test_separatorscCsJddd�}|jt|j|d	d�|jt|j|d
d�|jt|j|dd�dS)Nr�)���, �: )r�, �: )rr)rr)rr)ZassertRaises�	TypeErrorr)rrrrr�test_illegal_separators*s
z&TestSeparators.test_illegal_separatorsN)�__name__�
__module__�__qualname__rrrrrrrs$rc@seZdZdS)�TestPySeparatorsN)rrr rrrrr!1sr!c@seZdZdS)�TestCSeparatorsN)rrr rrrrr"2sr")rZtest.test_jsonrrrr!r"rrrr�<module>s,