def METHOD_NAME(self, mock_get_anomalies, mock_timeseries_query):
    SnubaTSResult = namedtuple("SnubaTSResult", "data")
    mock_timeseries_query.return_value = SnubaTSResult(
        data={"data": self.snuba_raw_data},
    )
    mock_get_anomalies.return_value = HttpResponse({"key": "value"})
    request = {
        "project": self.project.id,
        "start": "2022-01-01",
        "end": "2022-01-05",
    }
    expected_snuba_io = {
        "query": "event.type:transaction",
        "data": self.snuba_raw_data,
        "granularity": 1200,
        "start": "2022-01-01 00:00:00",
        "end": "2022-01-05 00:00:00",
    }
    self.do_request(data=request)
    mock_get_anomalies.assert_called_once_with(expected_snuba_io)