コード例 #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
ファイル: test_metric.py プロジェクト: ajufrancis/statsite-1
 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
ファイル: test_metric.py プロジェクト: ajufrancis/statsite-1
 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)