def METHOD_NAME(self, apibase, server_config, current_user_drb):
    with pytest.raises(UnauthorizedAccess) as exc:
        apibase._check_authorization(
            ApiAuthorization(ApiAuthorizationType.ADMIN, OperationCode.CREATE)
        )
    assert (
        str(exc.value)
        == "User drb is not authorized to CREATE a server administrative resource"
    )