def test_emacs_arguments_for_all_commands():
 for key in ANSI_SEQUENCES:
  if (key != u'\x1b[200~'):
   try:
    (result, cli) = _feed_cli_with_input(((u'hello\x1b4' + key) + u'X\n\n'))
    (result, cli) = _feed_cli_with_input(((u'hello\x1b-' + key) + u'X\n\n'))
   except KeyboardInterrupt:
    assert (key == u'\x03')

def test_emacs_arguments_for_all_commands ( ) : for key in ANSI_SEQUENCES : if ( key != u'\x1b[200~' ) : try : ( result , cli ) = _feed_cli_with_input ( ( ( u'hello\x1b4' + key ) + u'X\n\n' ) ) ( result , cli ) = _feed_cli_with_input ( ( ( u'hello\x1b-' + key ) + u'X\n\n' ) ) except KeyboardInterrupt : assert ( key == u'\x03' )
test all emacs commands with meta-[0-9] arguments .