def METHOD_NAME(svc_client_with_user):
    """Test getting lock status for a locked project."""
    svc_client, headers, _, _ = svc_client_with_user
    headers["Authorization"] = "Bearer 123abc"
    response = svc_client.post(
        "/project.show",
        data=json.dumps({"migrate_project": True, "git_url": IT_PROTECTED_REMOTE_REPO_URL}),
        headers=headers,
    )
    assert_rpc_response(response, "error")
    assert UserRepoNoAccessError.code == response.json["error"]["code"]