From 7950f5242a69a525bdeaa64eece9f84905280817 Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Tue, 23 May 2017 14:11:29 -0700 Subject: [PATCH] test_unread.py: Replace get_user_profile_by_email with get_user. --- zerver/tests/test_unread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/tests/test_unread.py b/zerver/tests/test_unread.py index b7f2da7ebe..828667183f 100644 --- a/zerver/tests/test_unread.py +++ b/zerver/tests/test_unread.py @@ -4,7 +4,7 @@ from __future__ import absolute_import from typing import Any, Dict, List from zerver.models import ( - get_user_profile_by_email, Recipient, UserMessage + get_user, Recipient, UserMessage ) from zerver.lib.test_helpers import tornado_redirected_to_list @@ -40,7 +40,7 @@ class PointerTest(ZulipTestCase): result = self.client_post("/api/v1/users/me/pointer", {"pointer": msg_id}, **self.api_auth(email)) self.assert_json_success(result) - self.assertEqual(get_user_profile_by_email(email).pointer, msg_id) + self.assertEqual(get_user(email, user.realm).pointer, msg_id) def test_missing_pointer(self): # type: () -> None