

def test_set_component_redraws(self):
    self.client.add_layer(self.data)
    comp = self.data.id['x']
    comp2 = self.data.id['y']
    self.client.set_component(comp)
    ct0 = self.draw_count()
    self.client.set_component(comp2)
    assert (self.draw_count() > ct0)

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