def test_publish_home(self):
        name = self._testMethodName
        page = self.create_page(name, published=False)
        self.assertFalse(page.publisher_public_id)
        self.assertEqual(Page.objects.all().count(), 1)
        superuser = self.get_superuser()
        with self.login_user_context(superuser):
            response = self.client.post(admin_reverse("cms_page_publish_page", args=[page.pk, 'en']))
            self.assertEqual(response.status_code, 302)
            self.assertTrue(response['Location'].endswith("/en/?%s" % get_cms_setting('CMS_TOOLBAR_URL__EDIT_OFF')))
dataset/ETHPy150Open divio/django-cms/cms/tests/test_publisher.py/PublishingTests.test_publish_home/original