test_subdomain_restrictions: Update to assume subdomains.

This commit is contained in:
Tim Abbott 2017-10-02 15:31:35 -07:00
parent e3c395f247
commit bd066fe0f1
1 changed files with 2 additions and 1 deletions

View File

@ -1175,6 +1175,7 @@ class RealmCreationTest(ZulipTestCase):
result = self.client_post('/create_realm/', {'email': "hi@mailinator.com"}) result = self.client_post('/create_realm/', {'email': "hi@mailinator.com"})
self.assert_in_response('Please use your real email address.', result) self.assert_in_response('Please use your real email address.', result)
@override_settings(REALMS_HAVE_SUBDOMAINS=True)
@override_settings(OPEN_REALM_CREATION=True) @override_settings(OPEN_REALM_CREATION=True)
def test_subdomain_restrictions(self): def test_subdomain_restrictions(self):
# type: () -> None # type: () -> None
@ -1187,7 +1188,7 @@ class RealmCreationTest(ZulipTestCase):
confirmation_url = self.get_confirmation_url_from_outbox(email) confirmation_url = self.get_confirmation_url_from_outbox(email)
self.client_get(confirmation_url) self.client_get(confirmation_url)
errors = {'id': "at least 3 characters", errors = {'id': "length 3 or greater",
'-id': "cannot start or end with a", '-id': "cannot start or end with a",
'string-ID': "lowercase letters", 'string-ID': "lowercase letters",
'string_id': "lowercase letters", 'string_id': "lowercase letters",