def METHOD_NAME(self, qmessagebox_path, qtbot, analysis_segmentation, part_settings, monkeypatch):
    widget = MeasurementWidget(part_settings)
    qtbot.addWidget(widget)
    assert widget.measurement_type.count() == 3
    part_settings.set_project_info(analysis_segmentation)
    with qtbot.waitSignal(widget.measurement_type.currentIndexChanged):
        widget.measurement_type.setCurrentIndex(2)
    assert widget.measurement_type.currentIndex() == 0
    assert not widget.recalculate_button.isEnabled()
    qmessagebox_path.information.assert_called_once()
    assert qmessagebox_path.information.call_args[0][1] == "Need mask"