def test_field(clients): illegalize( clients, "/api/{table}/item/{eid}/field/{field}", table=CONTRIB, eid=DUMMY_ID, field=TITLE, )
def test_insertDetail(clients): illegalize( clients, "/api/{table}/{eid}/{dtable}/insert", table=CONTRIB, eid=DUMMY_ID, dtable=CONTRIB, )
def test_itemDetail(clients): illegalize( clients, "/{table}/item/{eid}/open/{dtable}/{deid}", table=CONTRIB, eid=DUMMY_ID, dtable=CONTRIB, deid=DUMMY_ID, )
def test_deleteDetail(clients): illegalize( clients, "/api/{table}/{masterId}/{dtable}/delete/{eid}", table=CONTRIB, masterId=DUMMY_ID, dtable=CONTRIB, eid=DUMMY_ID, )
def test_itemPage(clients): illegalize(clients, "/{table}/item/{eid}", table=CONTRIB, eid=DUMMY_ID)
def test_itemTitle(clients): illegalize(clients, "/api/{table}/item/{eid}/title", table=CONTRIB, eid=DUMMY_ID)
def test_delete(clients): illegalize(clients, "/api/{table}/delete/{eid}", table=CONTRIB, eid=DUMMY_ID)
def test_list(clients): illegalize(clients, "/{table}/list", table=CONTRIB)
def test_listOpen(clients): illegalize(clients, "/{table}/list/{eid}", table=CONTRIB, eid=DUMMY_ID)
def test_insert(clients): illegalize(clients, "/api/{table}/insert", table=CONTRIB)
def test_task(clients): illegalize(clients, "/api/task/{task}/{eid}", task=SUBMIT_ASSESSMENT, eid=DUMMY_ID)
def test_workflow(clients): url = "/workflow" expect = {user: 302 if user in {SYSTEM, ROOT} else 303 for user in USERS} forall(clients, expect, assertStatus, url) illegalize(clients, url)
def test_info(clients): illegalize(clients, "/info") illegalize(clients, "/info.tsv")
def test_home(clients): for url in ["/", "/index", "/index.html"]: illegalize(clients, url)