def METHOD_NAME(self):
    prev_hour = timezone.now() - timedelta(hours=1)
    prev_two_hour = timezone.now() - timedelta(hours=2)
    for time in (prev_hour, prev_two_hour):
        Activity.objects.create(
            project=self.project,
            group=self.group,
            type=ActivityType.SET_REGRESSION.value,
            datetime=time,
        )
    resp = self.get_success_response(
        self.organization.slug,
        self.project.slug,
        conditions=[
            {"id": "sentry.rules.conditions.regression_event.RegressionEventCondition"}
        ],
        filters=[],
        actionMatch="any",
        filterMatch="all",
        frequency=60,
    )
    assert resp.data[0]["lastTriggered"] == prev_hour
    resp = self.get_success_response(
        self.organization.slug,
        self.project.slug,
        conditions=[
            {"id": "sentry.rules.conditions.regression_event.RegressionEventCondition"}
        ],
        filters=[],
        actionMatch="any",
        filterMatch="all",
        frequency=180,
    )
    assert resp.data[0]["lastTriggered"] == prev_two_hour