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

Method test_move_cursor

Lib/test/test_curses.py:196–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 gc_collect()
195
196 def test_move_cursor(self):
197 stdscr = self.stdscr
198 win = stdscr.subwin(10, 15, 2, 5)
199 stdscr.move(1, 2)
200 win.move(2, 4)
201 self.assertEqual(stdscr.getyx(), (1, 2))
202 self.assertEqual(win.getyx(), (2, 4))
203
204 win.cursyncup()
205 self.assertEqual(stdscr.getyx(), (4, 9))
206
207 def test_refresh_control(self):
208 stdscr = self.stdscr

Callers

nothing calls this directly

Calls 2

moveMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected