Пример #1
0
 def test_fold_uses_now(self):
     """
     Tests that folding over a normal metric with no flag will use
     the "now" time as the timestamp.
     """
     metrics = [Metric("k", 27, None)]
     assert [("k", 27, 123456)] == Metric.fold(metrics, 123456)
Пример #2
0
 def test_fold_uses_now(self):
     """
     Tests that folding over a normal metric with no flag will use
     the "now" time as the timestamp.
     """
     metrics = [Metric("k", 27, None)]
     assert [("k", 27, 123456)] == Metric.fold(metrics, 123456)
Пример #3
0
 def test_fold_basic(self):
     """Tests folding over a normal metric returns the key/value
     using the flag as the timestamp."""
     metrics = [Metric("k", 27, 123456)]
     assert [("k", 27, 123456)] == Metric.fold(metrics, 0)
Пример #4
0
 def test_fold_basic(self):
     """Tests folding over a normal metric returns the key/value
     using the flag as the timestamp."""
     metrics = [Metric("k", 27, 123456)]
     assert [("k", 27, 123456)] == Metric.fold(metrics, 0)