Example #1
0
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
Example #2
0
def test_make_roles():
    h.set_context('test', 'wiki', neighborhood='Projects')
    pr = M.ProjectRole.anonymous()
    assert next(h.make_roles([pr._id])) == pr
Example #3
0
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