def test_size_hint(view):
 view.show_message(usertypes.MessageLevel.info, 'test1')
 height1 = view.sizeHint().height()
 assert (height1 > 0)
 view.show_message(usertypes.MessageLevel.info, 'test2')
 height2 = view.sizeHint().height()
 assert (height2 == (height1 * 2))

def test_size_hint ( view ) : view . show_message ( usertypes . MessageLevel . info , 'test1' ) height1 = view . sizeHint ( ) . height ( ) assert ( height1 > 0 ) view . show_message ( usertypes . MessageLevel . info , 'test2' ) height2 = view . sizeHint ( ) . height ( ) assert ( height2 == ( height1 * 2 ) )
the message height should increase with more messages .