mock_funct.assert_called_once_with(mock.ANY)
call = mock_funct.call_args
call_args, call_kwargs = call
self.assertEqual(json.loads(call_args[0]), expected)
Assert mocked function called with json string in python