def test_make_roles(): h.set_context('test', 'wiki', neighborhood='Projects') u = M.User.anonymous() pr = u.project_role() assert h.make_roles([pr._id]).next() == pr
def test_make_roles(): h.set_context('test', 'wiki', neighborhood='Projects') pr = M.ProjectRole.anonymous() assert next(h.make_roles([pr._id])) == pr
def test_make_roles(): h.set_context('test', 'wiki', neighborhood='Projects') pr = M.ProjectRole.anonymous() assert h.make_roles([pr._id]).next() == pr
def test_make_roles(): h.set_context("test", "wiki", neighborhood="Projects") pr = M.ProjectRole.anonymous() assert h.make_roles([pr._id]).next() == pr