From 90099ffeb2ebaab5c195435e0a4f3f6a14223bf4 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Thu, 17 Aug 2017 11:42:19 +0500 Subject: [PATCH] result.json: Upgrade test_reactions. --- zerver/tests/test_reactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])