def test_fold_metrics_passes_metric_settings(self, monkeypatch):
        now = 12
        settings = { "ms": { "percentile": 80 } }
        metrics  = [Timer("k", 20, now)]

        monkeypatch.setattr(time, 'time', lambda: now)
        result = Aggregator(None, metrics_settings=settings)._fold_metrics(metrics)
        print repr(result)
        assert 1 == result.count(("timers.k.sum_80", 20, now))
Revert an RBD volume to its contents at a snapshot.
dataset/ETHPy150Open kiip/statsite/tests/unit/test_aggregator.py/TestAggregator.test_fold_metrics_passes_metric_settings--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/storage/rbd_utils.py/RBDDriver.rollback_to_snap