def METHOD_NAME(self, mock_uuid4):
    app._got_first_request = False
    async_query_manager.init_app(app)
    self.login(username="admin")
    with mock.patch.object(async_query_manager._redis, "xrange") as mock_xrange:
        rv = self.fetch_events()
        response = json.loads(rv.data.decode("utf-8"))
    assert rv.status_code == 200
    channel_id = app.config["GLOBAL_ASYNC_QUERIES_REDIS_STREAM_PREFIX"] + self.UUID
    mock_xrange.assert_called_with(channel_id, "-", "+", 100)
    self.assertEqual(response, {"result": []})