def test_clear_keystring(qtbot, keyparser):
 keyparser._keystring = 'test'
 with qtbot.waitSignal(keyparser.keystring_updated):
  keyparser.clear_keystring()
 assert (keyparser._keystring == '')

def test_clear_keystring ( qtbot , keyparser ) : keyparser . _keystring = 'test' with qtbot . waitSignal ( keyparser . keystring_updated ) : keyparser . clear_keystring ( ) assert ( keyparser . _keystring == '' )
test that the keystring is cleared and the signal is emitted .