Your IP : 216.73.216.213


Current Path : /opt/alt/python39/lib64/python3.9/test/test_json/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/test/test_json/__pycache__/test_separators.cpython-39.opt-2.pyc

a

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



zTestSeparators.test_separatorscCsJddd�}|jt|j|dd�|jt|j|dd�|jt|j|dd�dS)Nr�)��)�, z: )r)z, �: )rr)ZassertRaises�	TypeErrorr)r
rrrr�test_illegal_separators*s
z&TestSeparators.test_illegal_separatorsN)�__name__�
__module__�__qualname__rrrrrrrs$rc@seZdZdS)�TestPySeparatorsN�rrrrrrrr1�rc@seZdZdS)�TestCSeparatorsNrrrrrr2rr)r	Ztest.test_jsonrrrrrrrrr�<module>s,