def test_subdomain_homepage(self) -> None:
    email = self.example_email('hamlet')
    self.login(email)
    with self.settings(ROOT_DOMAIN_LANDING_PAGE=True):
        with patch('zerver.views.home.get_subdomain', return_value=''):
            result = self._get_home_page()
        self.assertEqual(result.status_code, 200)
        self.assert_in_response('most productive group chat', result)
        with patch('zerver.views.home.get_subdomain', return_value='subdomain'):
            result = self._get_home_page()
        self._sanity_check(result)
def test_subdomain_homepage(self) -> None:
    email = self.example_email('hamlet')
    self.login(email)
    with self.settings(ROOT_DOMAIN_LANDING_PAGE=True):
        with patch('zerver.views.home.get_subdomain', return_value=):
            result = self._get_home_page()
        self.assertEqual(result.status_code, 200)
        self.assert_in_response('most productive group chat', result)
        with patch('zerver.views.home.get_subdomain', return_value='subdomain'):
            result = self._get_home_page()
        self._sanity_check(result)