def METHOD_NAME(self):
    self.store_outcomes(
        {
            "org_id": self.organization.id,
            "timestamp": before_now(hours=1),
            "project_id": self.project.id,
            "key_id": self.key.id,
            "outcome": Outcome.ACCEPTED,
            "reason": "none",
            "category": DataCategory.ERROR,
            "quantity": 1,
        },
        2,
    )
    self.store_outcomes(
        {
            "org_id": self.organization.id,
            "timestamp": before_now(days=10),
            "project_id": self.project.id,
            "key_id": self.key.id,
            "outcome": Outcome.ACCEPTED,
            "reason": "none",
            "category": DataCategory.ERROR,
            "quantity": 10,
        },
        1,
    )
    response = self.client.get(
        self.path,
        data={
            "since": before_now(days=1).timestamp(),
            "until": before_now().timestamp(),
        },
    )
    assert response.status_code == 200, response.content
    result = [bucket for bucket in response.data if bucket["total"] > 0][0]
    assert type(result["ts"]) == int
    assert result["total"] == 2, response.data
    assert result["filtered"] == 0, response.data
    assert result["dropped"] == 0, response.data
    assert result["accepted"] == 2, response.data
    assert len(response.data) == 2