def assert_component_present(self, label):
        ui = self.widget.ui
        for combo in [ui.xAxisComboBox, ui.yAxisComboBox]:
            atts = [combo.itemText(i) for i in range(combo.count())]
            assert label in atts
dataset/ETHPy150Open glue-viz/glue/glue/viewers/scatter/qt/tests/test_viewer_widget.py/TestScatterWidget.assert_component_present/original