(self, mock_update)
| 342 | |
| 343 | @mock.patch.object(codecontext.CodeContext, 'update_code_context') |
| 344 | def test_timer_event(self, mock_update): |
| 345 | # Ensure code context is not active. |
| 346 | if self.cc.context: |
| 347 | self.cc.toggle_code_context_event() |
| 348 | self.cc.timer_event() |
| 349 | mock_update.assert_not_called() |
| 350 | |
| 351 | # Activate code context. |
| 352 | self.cc.toggle_code_context_event() |
| 353 | self.cc.timer_event() |
| 354 | mock_update.assert_called() |
| 355 | |
| 356 | def test_font(self): |
| 357 | eq = self.assertEqual |
nothing calls this directly
no test coverage detected