def test_query_term_version(self, db_request):
    journals = [JournalEntryFactory.create() for _ in range(10)]
    db_request.GET['q'] = 'version:{}'.format(journals[0].version)
    result = views.journals_list(db_request)
    assert (result == {'journals': [journals[0]], 'query': 'version:{}'.format(journals[0].version)})
def test_query_term_version(self, db_request):
    journals = [JournalEntryFactory.create() for _ in range(10)]
    db_request.GET['q'] = 'version:{}'.format(journals[0].version)
    result = views.journals_list(db_request)
    assert (result == {'journals': [journals[0]], 'query': 'version:{}'.format(journals[0].version)})