

def test_set_component_updates_component(self):
    self.client.add_layer(self.data)
    comp = self.data.find_component_id('uniform')
    self.client.set_component(comp)
    assert (self.client._component is comp)

dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py TestHistogramClient.test_set_component_updates_component/original