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

Method test_resize

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

Source from the content-addressed store, hash-verified

576
577 @requires_curses_window_meth('resize')
578 def test_resize(self):
579 win = curses.newwin(5, 15, 2, 5)
580 win.resize(4, 20)
581 self.assertEqual(win.getmaxyx(), (4, 20))
582 win.resize(5, 15)
583 self.assertEqual(win.getmaxyx(), (5, 15))
584
585 @requires_curses_window_meth('enclose')
586 def test_enclose(self):

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected