cms/apps/pages/tests/test_admin.py
def _make_page(self, title, content_type):
        ''' Little helper to create a page whose parent is the homepage. '''
        content_page = Page.objects.create(
            title=title,
            slug=slugify(title),
            parent=self.homepage,
            content_type=content_type,
        )

        content_type.model_class().objects.create(
            page=content_page,
        )
 Little helper to create a page whose parent is the homepage. 
Little helper to create a page whose parent is the homepage.
Little helper to create a page whose parent is the homepage .
def _make_page(self, title, content_type):
        content_page = Page.objects.create(
            title=title,
            slug=slugify(title),
            parent=self.homepage,
            content_type=content_type,
        )
        content_type.model_class().objects.create(
            page=content_page,
        )
def _make_page ( self , title , content_type ) : content_page = Page . objects . create ( title = title , slug = slugify ( title ) , parent = self . homepage , content_type = content_type , ) content_type . model_class ( ) . objects . create ( page = content_page , )
Little helper to create a page whose parent is the homepage.
Little helper to create a page whose parent is the homepage .
''' Little helper to create a page whose parent is the homepage. '''
self
title
content_type