def test_below_threshold(self): timer = Timer(notify_thr=2) self.assertFalse(timer.over_threshold(1))
def test_over_threshold(self): timer = Timer(notify_thr=1) self.assertTrue(timer.over_threshold(3))