test_home: Fix expected text in /hello page.

This commit is contained in:
Tim Abbott
2017-05-09 16:59:33 -07:00
parent 3fd3ae4199
commit df6dba9673

View File

@@ -253,7 +253,7 @@ class HomeTest(ZulipTestCase):
result = self.client_post('/accounts/accept_terms/')
self.assertEqual(result.status_code, 200)
self.assert_in_response("I agree to the", result)
self.assert_in_response("Finally, workplace chat", result)
self.assert_in_response("most productive group chat", result)
def test_accept_terms_of_service(self):
# type: () -> None
@@ -425,7 +425,7 @@ class HomeTest(ZulipTestCase):
with patch('zerver.views.home.get_subdomain', return_value=""):
result = self._get_home_page()
self.assertEqual(result.status_code, 200)
self.assert_in_response('Finally, workplace chat', result)
self.assert_in_response('most productive group chat', result)
with patch('zerver.views.home.get_subdomain', return_value="subdomain"):
result = self._get_home_page()