Add ZulipTestCase.example_email and ZulipTestCase.mit_email function.

This commit is contained in:
Vishnu Ks 2017-05-23 14:35:03 -07:00 committed by Tim Abbott
parent 075b0cae70
commit f5d8e256aa
1 changed files with 8 additions and 0 deletions

View File

@ -234,6 +234,14 @@ class ZulipTestCase(TestCase):
email = self.mit_user_map[name]
return get_user_profile_by_email(email)
def example_email(self, name):
# type: (str) -> str
return self.example_user_map[name]
def mit_email(self, name):
# type: (str) -> str
return self.mit_user_map[name]
def notification_bot(self):
# type: () -> UserProfile
return get_user_profile_by_email('notification-bot@zulip.com')