def METHOD_NAME(db, client, username, password, project_id):
    client.login(username=username, password=password)
    url = reverse(urlnames['list'], args=[project_id])
    response = client.post(url)
    if project_id in add_issue_permission_map.get(username, []):
        assert response.status_code == 405
    elif project_id in view_issue_permission_map.get(username, []):
        assert response.status_code == 403
    else:
        assert response.status_code == 404