HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/simplejson/tests/__pycache__/test_for_json.cpython-310.pyc
o

\Փa�
�@svddlZddlZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de	�Z
Gdd
�d
ej�ZdS)�Nc@�eZdZdd�ZdS)�ForJsoncC�ddiS)N�for_json����selfrr�@/usr/lib/python3/dist-packages/simplejson/tests/test_for_json.pyr�zForJson.for_jsonN��__name__�
__module__�__qualname__rrrrr
r�rc@r)�
NestedForJsoncCs
dt�iS�N�nested)rrrrr
rs
zNestedForJson.for_jsonNrrrrr
r
rrc@r)�ForJsonListcC�dgS�N�listrrrrr
r�zForJsonList.for_jsonNrrrrr
rrrc@r)�DictForJsoncCr)N�alpharrrrrr
rrzDictForJson.for_jsonNrrrrr
rrrc@r)�ListForJsoncCrrrrrrr
rrzListForJson.for_jsonNrrrrr
rrrc@sneZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS)�TestForJsonTcCs8|dur
t�|�}ntj||d�}|�t�|�|�dS)N�r)�json�dumps�assertEqual�loads)r	�obj�otherr�srrr
�assertRoundTrips�zTestForJson.assertRoundTripcC�|�t�t����dS�N�r%rrrrrr
�(test_for_json_encodes_stand_alone_object)��z4TestForJson.test_for_json_encodes_stand_alone_objectcC� |�dt�idt���i�dS)N�hoorayr(rrrr
�+test_for_json_encodes_object_nested_in_dict.��z7TestForJson.test_for_json_encodes_object_nested_in_dictcCs0|�ddt�ddgiddt���ddgi�dS)Nrr��r(rrrr
�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)r%rrrrr
�1test_for_json_encodes_object_nested_within_object8s
�z=TestForJson.test_for_json_encodes_object_nested_within_objectcCr&r'�r%rrrrrr
�test_for_json_encodes_list=r*z&TestForJson.test_for_json_encodes_listcCr+rr3rrrr
�(test_for_json_encodes_list_within_objectBr.z4TestForJson.test_for_json_encodes_list_within_objectcCs |�tdd�tdd����dS)Nr��a)r%rrrrrr
�#test_for_json_encodes_dict_subclassGr.z/TestForJson.test_for_json_encodes_dict_subclasscCs |�tdg�tdg����dS)N�l)r%rrrrrr
�#test_for_json_encodes_list_subclassLr.z/TestForJson.test_for_json_encodes_list_subclasscCs(dD]}|jtdd�ddi|d�qdS)N�NFrr6r7r)r%r�r	rrrr
�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;r9r)r%rr<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)�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
rrr%r)r-r1r2r4r5r8r:r=r>rArrrr
rs

r)
�unittest�
simplejsonr�objectrrr�dictrrr�TestCaserrrrr
�<module>s