def test_with_invalid_page(self):
    request = pretend.stub(params={'page': 'not an integer'})
    with pytest.raises(HTTPBadRequest):
        views.journals_list(request)
def test_with_invalid_page(self):
    request = pretend.stub(params={'page': 'not an integer'})
    with pytest.raises(HTTPBadRequest):
        views.journals_list(request)