| Index: infra_libs/ts_mon/common/test/metrics_test.py
|
| diff --git a/infra_libs/ts_mon/common/test/metrics_test.py b/infra_libs/ts_mon/common/test/metrics_test.py
|
| index b064caf0a92849cd07992c491b66e7d300c7a51c..a09795d63afa2a5b42f006352600dd4c4b242625 100644
|
| --- a/infra_libs/ts_mon/common/test/metrics_test.py
|
| +++ b/infra_libs/ts_mon/common/test/metrics_test.py
|
| @@ -230,6 +230,17 @@ class CounterMetricTest(TestBase):
|
| m = metrics.CounterMetric('test')
|
| self.assertTrue(m.is_cumulative())
|
|
|
| + def test_get_all(self):
|
| + m = metrics.CounterMetric('test')
|
| + m.increment()
|
| + m.increment({'foo': 'bar'})
|
| + m.increment({'foo': 'baz', 'moo': 'wibble'})
|
| + self.assertEqual([
|
| + ((), 1),
|
| + ((('foo', 'bar'),), 1),
|
| + ((('foo', 'baz'), ('moo', 'wibble')), 1),
|
| + ], sorted(m.get_all()))
|
| +
|
|
|
| class GaugeMetricTest(TestBase):
|
|
|
|
|