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

def test_show_message_twice_after_first_disappears ( qtbot , view ) : with qtbot . waitSignal ( view . _clear_timer . timeout ) : view . show_message ( usertypes . MessageLevel . info , 'test' ) assert ( not view . _messages ) view . show_message ( usertypes . MessageLevel . info , 'test' ) assert ( len ( view . _messages ) == 1 )
show the same message twice after the first is gone .