Test inserting a printable character.
(self)
| 1380 | self.mock_win.reset_mock() |
| 1381 | |
| 1382 | def test_insert(self): |
| 1383 | """Test inserting a printable character.""" |
| 1384 | self.mock_win.reset_mock() |
| 1385 | self.textbox.do_command(ord('a')) |
| 1386 | self.mock_win.addch.assert_called_with(ord('a')) |
| 1387 | self.textbox.do_command(ord('b')) |
| 1388 | self.mock_win.addch.assert_called_with(ord('b')) |
| 1389 | self.textbox.do_command(ord('c')) |
| 1390 | self.mock_win.addch.assert_called_with(ord('c')) |
| 1391 | self.mock_win.reset_mock() |
| 1392 | |
| 1393 | def test_delete(self): |
| 1394 | """Test deleting a character.""" |
nothing calls this directly
no test coverage detected