diff --git a/zerver/tests/test_reactions.py b/zerver/tests/test_reactions.py index 684f2100bc..cf3ed33e6f 100644 --- a/zerver/tests/test_reactions.py +++ b/zerver/tests/test_reactions.py @@ -320,7 +320,7 @@ class ReactionEventTest(ZulipTestCase): "to": pm_recipient.email}, **self.api_auth(pm_sender.email)) self.assert_json_success(result) - content = ujson.loads(result.content) + content = result.json() pm_id = content['id'] expected_recipient_ids = set([pm_sender.id, pm_recipient.id])