コード例 #1
0
ファイル: test_timing.py プロジェクト: qrees/log4tailer
 def test_below_threshold(self):
     timer = Timer(notify_thr=2)
     self.assertFalse(timer.over_threshold(1))
コード例 #2
0
ファイル: test_timing.py プロジェクト: qrees/log4tailer
 def test_over_threshold(self):
     timer = Timer(notify_thr=1)
     self.assertTrue(timer.over_threshold(3))