(self)
| 144 | timer.timer.start.assert_called_once() |
| 145 | |
| 146 | def test_end(self): |
| 147 | my_func = lambda: None |
| 148 | with mock.patch("threading.Timer"): |
| 149 | timer = ReusableTimer() |
| 150 | timer.countdown(0.1, my_func) |
| 151 | timer.end() |
| 152 | timer.timer.cancel.assert_called_once() |
| 153 | |
| 154 | import unittest |
| 155 |
nothing calls this directly
no test coverage detected