MCPcopy Index your code
hub / github.com/python/cpython / test_delete

Method test_delete

Lib/test/test_curses.py:1393–1400  ·  view source on GitHub ↗

Test deleting a character.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

do_commandMethod · 0.80
reset_mockMethod · 0.45

Tested by

no test coverage detected