def METHOD_NAME(
    self, mocker, fb_api, max_rate, max_pause_interval, min_pause_interval, usage, pause_interval, expected_pause_interval
):
    mocker.patch.object(fb_api, "MAX_RATE", max_rate)
    mocker.patch.object(fb_api, "MAX_PAUSE_INTERVAL", max_pause_interval)
    mocker.patch.object(fb_api, "MIN_PAUSE_INTERVAL", min_pause_interval)
    computed_pause_interval = fb_api._compute_pause_interval(usage, pause_interval)
    assert computed_pause_interval == expected_pause_interval