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

Method test_move_up

Lib/test/test_curses.py:1425–1430  ·  view source on GitHub ↗

Test moving the cursor up.

(self)

Source from the content-addressed store, hash-verified

1423 self.mock_win.reset_mock()
1424
1425 def test_move_up(self):
1426 """Test moving the cursor up."""
1427 self.mock_win.reset_mock()
1428 self.textbox.do_command(curses.KEY_UP)
1429 self.mock_win.move.assert_called_with(0, 1)
1430 self.mock_win.reset_mock()
1431
1432 def test_move_down(self):
1433 """Test moving the cursor down."""

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