def test_does_nothing_when_disabled():
    time = MockedTime()
    percentile = RollingPercentile(time, 60000, 12, 1000, False)
    previous_time = 0
    for time_millis, latency in sample_data_holder_2:
        time.increment(time_millis - previous_time)
        previous_time = time_millis
        percentile.add_value(latency)

    assert percentile.percentile(50) == -1
    assert percentile.percentile(75) == -1
    assert percentile.mean() == -1
dataset/ETHPy150Open wiliamsouza/hystrix-py/tests/test_rolling_percentile.py/test_does_nothing_when_disabled/original