def test_blacklist_all(keyhint, config_stub, key_config_stub):
 config_stub.set('ui', 'keyhint-blacklist', ['*'])
 key_config_stub.set_bindings_for('normal', OrderedDict([('aa', 'cmd-aa'), ('ab', 'cmd-ab'), ('aba', 'cmd-aba'), ('abb', 'cmd-abb'), ('xd', 'cmd-xd'), ('xe', 'cmd-xe')]))
 keyhint.update_keyhint('normal', 'a')
 assert (not keyhint.text())

def test_blacklist_all ( keyhint , config_stub , key_config_stub ) : config_stub . set ( 'ui' , 'keyhint-blacklist' , [ '*' ] ) key_config_stub . set_bindings_for ( 'normal' , OrderedDict ( [ ( 'aa' , 'cmd-aa' ) , ( 'ab' , 'cmd-ab' ) , ( 'aba' , 'cmd-aba' ) , ( 'abb' , 'cmd-abb' ) , ( 'xd' , 'cmd-xd' ) , ( 'xe' , 'cmd-xe' ) ] ) ) keyhint . update_keyhint ( 'normal' , 'a' ) assert ( not keyhint . text ( ) )
test that setting the blacklist to * disables keyhints .