result.json: Upgrade test_classes.

This commit is contained in:
Umair Khan
2017-08-17 11:46:39 +05:00
committed by Tim Abbott
parent cec45b0ae5
commit abed403a81

View File

@@ -381,7 +381,7 @@ class ZulipTestCase(TestCase):
"num_after": num_after,
"use_first_unread_anchor": ujson.dumps(use_first_unread_anchor)}
result = self.client_get("/json/messages", dict(post_params))
data = ujson.loads(result.content)
data = result.json()
return data['messages']
def users_subscribed_to_stream(self, stream_name, realm):