def test_message_hiding(qtbot, view):
 with qtbot.waitSignal(view._clear_timer.timeout):
  view.show_message(usertypes.MessageLevel.info, 'test')
 assert (not view._messages)

def test_message_hiding ( qtbot , view ) : with qtbot . waitSignal ( view . _clear_timer . timeout ) : view . show_message ( usertypes . MessageLevel . info , 'test' ) assert ( not view . _messages )
messages should be hidden after the timer times out .