from {{package}}.tests import *
from {{package}}.tests import Session, Page, TestModel

class TestPages(TestModel):

    def test_index(self):
        q = Session.query(Page).all()
        print(q)
        assert q == []
        page = Page()
        page.title = 'FrontPage'
        page.content = 'Welcome to the QuickWiki front page.'
        Session.add(page)
        Session.commit()
        q = Session.query(Page).all()
        print(q)
        assert q == [page]
        assert response == False