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

Method setUp

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

Source from the content-addressed store, hash-verified

1363
1364class TextboxTest(unittest.TestCase):
1365 def setUp(self):
1366 self.mock_win = MagicMock(spec=curses.window)
1367 self.mock_win.getyx.return_value = (1, 1)
1368 self.mock_win.getmaxyx.return_value = (10, 20)
1369 self.textbox = curses.textpad.Textbox(self.mock_win)
1370
1371 def test_init(self):
1372 """Test textbox initialization."""

Callers

nothing calls this directly

Calls 1

MagicMockClass · 0.90

Tested by

no test coverage detected