# Path: incuna_test_utils/factories/feincms_page.py
# class PageFactory(factory.DjangoModelFactory):
#     title = factory.Sequence('Page {0}'.format)
#     slug = factory.Sequence('page-{0}'.format)
# 
#     class Meta:
#         model = Page


from feincms.module.page.models import Page
from incuna_test_utils.factories.feincms_page import PageFactory



def test_pagefactory():
    page = PageFactory.build()
    assert isinstance(page, Page)
    assert 'Page' in page.title

# Path: incuna_test_utils/factories/feincms_page.py
# class PageFactory(factory.DjangoModelFactory):
#     title = factory.Sequence('Page {0}'.format)
#     slug = factory.Sequence('page-{0}'.format)
# 
#     class Meta:
#         model = Page


# Path: tests/factory_tests/test_feincms_page.py
from feincms.module.page.models import Page
from incuna_test_utils.factories.feincms_page import PageFactory




def test_pagefactory():
    page = PageFactory.build()
    assert isinstance(page, Page)
    assert 'Page' in page.title

    assert 'page' in page.slug