def METHOD_NAME(self):
    with self.settings(
        SENTRY_SELF_HOSTED=False,
    ):
        old_brownout_start = timeiter.get_next(datetime)
        with freeze_time(old_brownout_start):
            self.assert_denied_request("POST")
        register("override-cron", default=custom_cron)
        register("override-duration", default=custom_duration)
        custom_time_iter = croniter(custom_cron, test_date)
        custom_duration_timedelta = isodate.parse_duration(custom_duration)
        with freeze_time(old_brownout_start):
            self.assert_allowed_request("POST")
        new_brownout_start = custom_time_iter.get_next(datetime)
        with freeze_time(new_brownout_start):
            self.assert_denied_request("POST")
        new_brownout_end = new_brownout_start + custom_duration_timedelta
        with freeze_time(new_brownout_end):
            self.assert_allowed_request("POST")