(self)
| 136 | class ReusableTimerUnitTest(TestCase): |
| 137 | |
| 138 | def test_countdown(self): |
| 139 | my_func = lambda: None |
| 140 | with mock.patch("threading.Timer"): |
| 141 | timer = ReusableTimer() |
| 142 | timer.countdown(0.1, my_func) |
| 143 | threading.Timer.assert_called_once_with(0.1, my_func) |
| 144 | timer.timer.start.assert_called_once() |
| 145 | |
| 146 | def test_end(self): |
| 147 | my_func = lambda: None |
nothing calls this directly
no test coverage detected