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

Method test_move_left

Lib/test/test_curses.py:1402–1407  ·  view source on GitHub ↗

Test moving the cursor left.

(self)

Source from the content-addressed store, hash-verified

1400 self.mock_win.reset_mock()
1401
1402 def test_move_left(self):
1403 """Test moving the cursor left."""
1404 self.mock_win.reset_mock()
1405 self.textbox.do_command(curses.KEY_LEFT)
1406 self.mock_win.move.assert_called_with(1, 0)
1407 self.mock_win.reset_mock()
1408
1409 def test_move_right(self):
1410 """Test moving the cursor 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