test_classes: Remove domain from ZulipTestCase.register.

This commit is contained in:
Rishi Gupta
2017-01-04 00:00:26 -08:00
committed by Tim Abbott
parent 021c65a656
commit 89af775e03
4 changed files with 10 additions and 12 deletions

View File

@@ -188,9 +188,8 @@ class ZulipTestCase(TestCase):
else:
self.assertFalse(self.client.login(username=email, password=password))
def register(self, username, password, domain="zulip.com"):
# type: (Text, Text, Text) -> HttpResponse
email = username + "@" + domain
def register(self, email, password):
# type: (Text, Text) -> HttpResponse
self.client_post('/accounts/home/', {'email': email})
return self.submit_reg_form_for_user(email, password)