def test_component_replaced(self):
        # regression test for 508
        self.client.register_to_hub(self.collect.hub)
        self.client.add_layer(self.data)
        self.client.component = self.data.components[0]

        test = ComponentID('test')
        self.data.update_id(self.client.component, test)
        assert self.client.component == test
dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py/TestHistogramClient.test_component_replaced/operator `is` -> `==`