def METHOD_NAME(self):
    """Successful call to the backend should return stats."""
    video = VideoFactory()
    settings = {
        "api_key": "grafana_api_key",
        "api_endpoint": "https://grafana.tld/api",
        "api_datasource_id": "1",
        "api_datastream": "statements-ds-marsha",
    }
    responses.get(
        url=(
            f"{settings.get('api_endpoint')}/datasources/proxy/"
            f"{settings.get('api_datasource_id')}/{settings.get('api_datastream')}/_count"
        ),
        match=[
            responses.matchers.json_params_matcher(
                {
                    "query": {
                        "query_string": {
                            "query": (
                                'verb.id:"https://w3id.org/xapi/video/verbs/played" '
                                f'AND object.id:"uuid://{video.id}" '
                                "AND result.extensions.https\\:\\/\\/w3id.org"
                                "\\/xapi\\/video\\/extensions\\/time:[0 TO 30]"
                            )
                        }
                    }
                }
            ),
            responses.matchers.header_matcher(
                {
                    "Authorization": f"Bearer {settings.get('api_key')}",
                    "Content-Type": "application/json",
                }
            ),
        ],
        body='{"count":216,"_shards":{"total":24,"successful":24,"skipped":0,"failed":0}}',
    )
    self.assertEqual({"nb_views": 216}, grafana_xapi_fun_backend(video, **settings))