HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/simplejson/tests/__pycache__/test_for_json.cpython-38.pyc
U

�O5[�
�@svddlZddlZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de	�Z
Gdd
�d
ej�ZdS)�Nc@seZdZdd�ZdS)�ForJsoncCsddiS)N�for_json����selfrr�@/usr/lib/python3/dist-packages/simplejson/tests/test_for_json.pyrszForJson.for_jsonN��__name__�
__module__�__qualname__rrrrrrsrc@seZdZdd�ZdS)�
NestedForJsoncCs
dt�iS�N�nested)rrrrrrszNestedForJson.for_jsonNr	rrrrr

sr
c@seZdZdd�ZdS)�ForJsonListcCsdgS�N�listrrrrrrszForJsonList.for_jsonNr	rrrrrsrc@seZdZdd�ZdS)�DictForJsoncCsddiS)NZalpharrrrrrrszDictForJson.for_jsonNr	rrrrrsrc@seZdZdd�ZdS)�ListForJsoncCsdgSrrrrrrrszListForJson.for_jsonNr	rrrrrsrc@sneZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS)�TestForJsonTcCs8|dkrt�|�}ntj||d�}|�t�|�|�dS)N�r)�json�dumpsZassertEqual�loads)r�obj�otherr�srrr�assertRoundTrips�zTestForJson.assertRoundTripcCs|�t�t����dS�N�rrrrrrr�(test_for_json_encodes_stand_alone_object)s�z4TestForJson.test_for_json_encodes_stand_alone_objectcCs |�dt�idt���i�dS)NZhoorayrrrrr�+test_for_json_encodes_object_nested_in_dict.s�z7TestForJson.test_for_json_encodes_object_nested_in_dictcCs0|�ddt�ddgiddt���ddgi�dS)Nrr��rrrrr�7test_for_json_encodes_object_nested_in_list_within_dict3s�zCTestForJson.test_for_json_encodes_object_nested_in_list_within_dictcCs|�t�dddii�dS)Nrrr)rr
rrrr�1test_for_json_encodes_object_nested_within_object8s
�z=TestForJson.test_for_json_encodes_object_nested_within_objectcCs|�t�t����dSr�rrrrrrr�test_for_json_encodes_list=s�z&TestForJson.test_for_json_encodes_listcCs |�dt�idt���i�dSrr&rrrr�(test_for_json_encodes_list_within_objectBs�z4TestForJson.test_for_json_encodes_list_within_objectcCs |�tdd�tdd����dS)Nr��a)rrrrrrr�#test_for_json_encodes_dict_subclassGs�z/TestForJson.test_for_json_encodes_dict_subclasscCs |�tdg�tdg����dS)N�l)rrrrrrr�#test_for_json_encodes_list_subclassLs�z/TestForJson.test_for_json_encodes_list_subclasscCs(dD]}|jtdd�ddi|d�qdS)N�NFrr)r*r)rr�rrrrr�4test_for_json_ignored_if_not_true_with_dict_subclassQs�z@TestForJson.test_for_json_ignored_if_not_true_with_dict_subclasscCs&dD]}|jtdg�dg|d�qdS)Nr.r,r)rrr/rrr�4test_for_json_ignored_if_not_true_with_list_subclassXs�z@TestForJson.test_for_json_ignored_if_not_true_with_list_subclasscCs,|�ttjt��|jttjt�dd�dS)NFr)ZassertRaises�	TypeErrorrrrrrrr�6test_raises_typeerror_if_for_json_not_true_with_object_szBTestForJson.test_raises_typeerror_if_for_json_not_true_with_objectN)T)r
rrrr r!r$r%r'r(r+r-r0r1r3rrrrrs

r)
ZunittestZ
simplejsonr�objectrr
r�dictrrrZTestCaserrrrr�<module>s