def METHOD_NAME(self, qtbot, analysis_segmentation2, part_settings):
    widget = MeasurementWidget(part_settings)
    qtbot.addWidget(widget)
    assert widget.measurement_type.count() == 3
    part_settings.set_project_info(analysis_segmentation2)
    widget.measurement_type.setCurrentIndex(2)
    assert widget.recalculate_button.isEnabled()
    widget.recalculate_button.click()
    assert widget.info_field.columnCount() == 2
    assert widget.info_field.rowCount() == 3
    assert widget.info_field.item(1, 1).text() == "4"
    widget.horizontal_measurement_present.setChecked(True)
    assert widget.info_field.columnCount() == 3
    assert widget.info_field.rowCount() == 2