def test_no_matches(keyhint, key_config_stub):
 key_config_stub.set_bindings_for('normal', OrderedDict([('aa', 'cmd-aa'), ('ab', 'cmd-ab')]))
 keyhint.update_keyhint('normal', 'z')
 assert (not keyhint.text())
 assert (not keyhint.isVisible())

def test_no_matches ( keyhint , key_config_stub ) : key_config_stub . set_bindings_for ( 'normal' , OrderedDict ( [ ( 'aa' , 'cmd-aa' ) , ( 'ab' , 'cmd-ab' ) ] ) ) keyhint . update_keyhint ( 'normal' , 'z' ) assert ( not keyhint . text ( ) ) assert ( not keyhint . isVisible ( ) )
ensure the widget isnt visible if there are no keystrings to show .