Test deleting a character.
(self)
| 1391 | self.mock_win.reset_mock() |
| 1392 | |
| 1393 | def test_delete(self): |
| 1394 | """Test deleting a character.""" |
| 1395 | self.mock_win.reset_mock() |
| 1396 | self.textbox.do_command(curses.ascii.BS) |
| 1397 | self.textbox.do_command(curses.KEY_BACKSPACE) |
| 1398 | self.textbox.do_command(curses.ascii.DEL) |
| 1399 | assert self.mock_win.delch.call_count == 3 |
| 1400 | self.mock_win.reset_mock() |
| 1401 | |
| 1402 | def test_move_left(self): |
| 1403 | """Test moving the cursor left.""" |
nothing calls this directly
no test coverage detected