def test_nbin_override_persists_over_attribute_change(self):
        # regression test for #398
        self.collect.append(self.data)
        self.client.add_layer(self.data)
        self.client.set_component(self.data.id['x'])
        self.client.nbins = 7
        self.client.set_component(self.data.id['y'])
        assert self.client.nbins == 7
dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py/TestCategoricalHistogram.test_nbin_override_persists_over_attribute_change/original