from pyramid.httpexceptions import HTTPFound from pyramid.testing import DummyRequest from ... import ( # noqa: F401 app_config, dbsession, get_example_user, get_post_request ) # test for account resource root def test_account_redirect(dbsession): # noqa: F811 ''' redirect on root of account resource ''' from ordr.views.account import account request = DummyRequest(dbsession=dbsession) result = account(None, request) assert isinstance(result, HTTPFound) assert result.location == 'http://example.com//'