def test_progress_big_statusbar(qtbot, fake_statusbar, progress_widget):
 fake_statusbar.hbox.addWidget(progress_widget)
 progress_widget.show()
 expected_height = progress_widget.height()
 fake_statusbar.hbox.addStrut(50)
 assert (progress_widget.height() == expected_height)

def test_progress_big_statusbar ( qtbot , fake_statusbar , progress_widget ) : fake_statusbar . hbox . addWidget ( progress_widget ) progress_widget . show ( ) expected_height = progress_widget . height ( ) fake_statusbar . hbox . addStrut ( 50 ) assert ( progress_widget . height ( ) == expected_height )
make sure the progress bar is small with a big statusbar .