def METHOD_NAME(self):
    # Each of these denotes how many events to create in each minute
    event_counts = [6, 0, 6, 3, 0, 3]
    for minute, count in enumerate(event_counts):
        for second in range(count):
            self.store_transaction_metric(
                1,
                internal_metric=constants.SELF_TIME_LIGHT,
                timestamp=self.day_ago + timedelta(minutes=minute, seconds=second),
            )
    for axis in ["eps()", "sps()"]:
        response = self.do_request(
            data={
                "start": iso_format(self.day_ago),
                "end": iso_format(self.day_ago + timedelta(minutes=6)),
                "interval": "1m",
                "yAxis": axis,
                "project": self.project.id,
                "dataset": "spansMetrics",
            },
        )
        assert response.status_code == 200, response.content
        data = response.data["data"]
        assert len(data) == 6
        assert response.data["meta"]["dataset"] == "spansMetrics"
        rows = data[0:6]
        for test in zip(event_counts, rows):
            assert test[1][1][0]["count"] == test[0] / 60.0