def METHOD_NAME(self):
    user_name = helpers.call_action("get_site_user")["name"]
    dataset = helpers.call_action(
        "package_create", context={"user": user_name}, name="test_dataset"
    )
    resource = helpers.call_action(
        "resource_create",
        context={"user": user_name},
        package_id=dataset["id"],
        url="http://foo",
    )
    context = {"model": core_model}
    obj = logic_auth.get_resource_object(context, {"id": resource["id"]})
    assert obj.id == resource["id"]
    assert context["resource"] == obj