def METHOD_NAME(self, app):
    """
    Test DataStore access from within a worker.
    """
    pkg = factories.Dataset()
    data = {
        "resource": {"package_id": pkg["id"]},
        "fields": [{"id": "value", "type": "int"}],
    }
    table = helpers.call_action("datastore_create", **data)
    res_id = table["resource_id"]
    for i in range(3):
        self.enqueue(datastore_job, args=[res_id, i])
    jobs.Worker().work(burst=True)
    # Aside from ensuring that the job succeeded, this also checks
    # that accessing the Datastore still works in the main process.
    result = helpers.call_action("datastore_search", resource_id=res_id)
    assert [0, 1, 2] == [r["value"] for r in result["records"]]