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

Method test_move_left_and_right

Lib/test/test_curses.py:1416–1423  ·  view source on GitHub ↗

Test moving the cursor left and then right.

(self)

Source from the content-addressed store, hash-verified

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

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