def test_special_bindings(keyhint, key_config_stub):
 key_config_stub.set_bindings_for('normal', OrderedDict([('<a', 'cmd-<a'), ('<b', 'cmd-<b'), ('<ctrl-a>', 'cmd-ctrla')]))
 keyhint.update_keyhint('normal', '<')
 assert (keyhint.text() == expected_text(('&lt;', 'yellow', 'a', 'cmd-&lt;a'), ('&lt;', 'yellow', 'b', 'cmd-&lt;b')))

def test_special_bindings ( keyhint , key_config_stub ) : key_config_stub . set_bindings_for ( 'normal' , OrderedDict ( [ ( '<a' , 'cmd-<a' ) , ( '<b' , 'cmd-<b' ) , ( '<ctrl-a>' , 'cmd-ctrla' ) ] ) ) keyhint . update_keyhint ( 'normal' , '<' ) assert ( keyhint . text ( ) == expected_text ( ( '&lt;' , 'yellow' , 'a' , 'cmd-&lt;a' ) , ( '&lt;' , 'yellow' , 'b' , 'cmd-&lt;b' ) ) )
ensure a prefix of < doesnt suggest special keys .