def test_menu_textentryitem__ascii_bel(self):
"""Test that the input_caller returns the expected string value."""
curses.initscr()
curses.ungetch("\n")
curses.ungetch(curses.ascii.BEL)
# BEL is a non-printable character so the return value should be an empty string
self.textentryitem()
self.assertEqual(self.textentryitem.get_value(), "")
评论列表
文章目录