I am using assertIn to test that a part of the result in JSON string is correct.
test_json = some_function_returning_a_dict()
self.assertIn(expected_json, test_json, "did not match expected output")
The error is
AssertionError: "'abc': '1.0012'," not found in [{'abc': '1.0012',...
I used Ctrl + F over the inner string, and it was in the resulting string.
I'm using Python 3.0