Test moving the cursor left and then right.
(self)
| 1414 | self.mock_win.reset_mock() |
| 1415 | |
| 1416 | def test_move_left_and_right(self): |
| 1417 | """Test moving the cursor left and then right.""" |
| 1418 | self.mock_win.reset_mock() |
| 1419 | self.textbox.do_command(curses.KEY_LEFT) |
| 1420 | self.mock_win.move.assert_called_with(1, 0) |
| 1421 | self.textbox.do_command(curses.KEY_RIGHT) |
| 1422 | self.mock_win.move.assert_called_with(1, 2) |
| 1423 | self.mock_win.reset_mock() |
| 1424 | |
| 1425 | def test_move_up(self): |
| 1426 | """Test moving the cursor up.""" |
nothing calls this directly
no test coverage detected