def test_menu_config_menu_scrolling_down_single_page(self):
"""Test scrolling down through the Global sub-menu."""
curses.initscr()
# Exit the menu
curses.ungetch("\n")
curses.ungetch(curses.KEY_RIGHT)
curses.ungetch("\n")
curses.ungetch(curses.KEY_RIGHT)
# Test scrolling down, line by line, and one past the bottom
for i in range(len(self.menu["Configure global module arguments"])):
curses.ungetch(curses.KEY_DOWN)
# Get into the Global submenu
curses.ungetch("\n")
self.assertTrue(self.menu())
评论列表
文章目录