def test_menu_config_view_long_module_help(self):
"""
Test drawing the menu, selecting the modules menu, a module, and the module help, and then exiting the menu.
In this test the help string is more (separated) lines than the window and should be truncated by the
_draw_notification method.
"""
# TODO working here
num_messages = 0
while num_messages < 100:
self.menu["View all modules"]["aptlog"].helptext += "a\n"
num_messages += 1
curses.initscr()
curses.ungetch("\n")
curses.ungetch(curses.KEY_RIGHT)
curses.ungetch("\n")
curses.ungetch(curses.KEY_RIGHT)
curses.ungetch("\n")
curses.ungetch("\n")
curses.ungetch(curses.KEY_RIGHT)
curses.ungetch(curses.KEY_RIGHT)
curses.ungetch("\n")
curses.ungetch(curses.KEY_DOWN)
self.assertTrue(self.menu())
评论列表
文章目录