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

Method test_move_right

Lib/test/test_curses.py:1409–1414  ·  view source on GitHub ↗

Test moving the cursor right.

(self)

Source from the content-addressed store, hash-verified

1407 self.mock_win.reset_mock()
1408
1409 def test_move_right(self):
1410 """Test moving the cursor right."""
1411 self.mock_win.reset_mock()
1412 self.textbox.do_command(curses.KEY_RIGHT)
1413 self.mock_win.move.assert_called_with(1, 2)
1414 self.mock_win.reset_mock()
1415
1416 def test_move_left_and_right(self):
1417 """Test moving the cursor left and then right."""

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