tests: Test get_prereg_user_by_email().

This commit is contained in:
Steve Howell 2016-10-03 16:15:24 -07:00 committed by Tim Abbott
parent ad149141f3
commit 69fa60080c
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ from zilencer.models import Deployment
from zerver.views import get_invitee_emails_set, do_change_password
from zerver.models import (
get_realm, get_user_profile_by_email,
get_realm, get_prereg_user_by_email, get_user_profile_by_email,
PreregistrationUser, Realm, Recipient, ScheduledJob, UserProfile, UserMessage,
)
@ -500,6 +500,9 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
# We only sent emails to the new users.
self.check_sent_emails(new)
prereg_user = get_prereg_user_by_email('foo-test@zulip.com')
self.assertEqual(prereg_user.email, 'foo-test@zulip.com')
def test_invite_outside_domain_in_closed_realm(self):
# type: () -> None
"""