Пример #1
0
 def test_below_threshold(self):
     timer = Timer(notify_thr=2)
     self.assertFalse(timer.over_threshold(1))
Пример #2
0
 def test_over_threshold(self):
     timer = Timer(notify_thr=1)
     self.assertTrue(timer.over_threshold(3))