def test_load_started(progress_widget):
 progress_widget.on_load_started()
 assert (progress_widget.value() == 0)
 assert progress_widget.isVisible()

def test_load_started ( progress_widget ) : progress_widget . on_load_started ( ) assert ( progress_widget . value ( ) == 0 ) assert progress_widget . isVisible ( )
ensure the progress widget reacts properly when the page starts loading .