test_classes: Use get_user in mit_user function.

This commit is contained in:
Vishnu Ks
2017-07-12 15:27:34 +05:30
parent 0b701b52df
commit f28b29177b

View File

@@ -237,7 +237,7 @@ class ZulipTestCase(TestCase):
def mit_user(self, name):
# type: (str) -> UserProfile
email = self.mit_user_map[name]
return get_user_profile_by_email(email)
return get_user(email, get_realm('zephyr'))
def nonreg_email(self, name):
# type: (str) -> Text