test.SimpleTestCase.assertJSONEqual()

SimpleTestCase.assertJSONEqual(raw, expected_data, msg=None) [source]

Asserts that the JSON fragments raw and expected_data are equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library.

Output in case of error can be customized with the msg argument.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.