

def test_component_replaced(self):
    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, self)
    assert (self.client.component is test)

dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py TestHistogramClient.test_component_replaced/VarMisuse@68/79 `test`->`self`