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

Method test_insert

Lib/test/test_curses.py:1382–1391  ·  view source on GitHub ↗

Test inserting a printable character.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

do_commandMethod · 0.80
assert_called_withMethod · 0.80
reset_mockMethod · 0.45

Tested by

no test coverage detected