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