def test_with_page(self, db_request):
    journals = sorted([JournalEntryFactory.create() for _ in range(30)], key=(lambda j: (j.submitted_date, j.id)), reverse=True)
    db_request.GET['page'] = '2'
    result = views.journals_list(db_request)
    assert (result == {'journals': journals[25:], 'query': None})
def test_with_page(self, db_request):
    journals = sorted([JournalEntryFactory.create() for _ in range(30)], key=(lambda j: (j.submitted_date, j.id)), reverse=True)
    db_request.GET['page'] = '2'
    result = views.journals_list(db_request)
    assert (result == {'journals': journals[25:], 'query': None})