Slide 29
Slide 29 text
CREATING DATA
DJANGO CMS PAGES
class MyTestCase(BaseTestCase):
_pages_data = (
{'en': {'title': 'page one', 'template': 'page_meta.html',
'publish': True},
'fr_FR': {'title': 'page un', 'publish': True},
'it': {'title': 'pagina uno', 'publish': True}},
{'en': {'title': 'page two', 'template': 'page_meta.html',
'publish': True},
'fr_FR': {'title': 'page deux', 'publish': True},
'it': {'title': 'pagina due', 'publish': True}},
)
...
def test_method(self):
pages = self.get_pages()
Built on top of django CMS API