def test_derived_links_autoadd(self):
        d = Data()
        id1 = ComponentID("id1")
        id2 = ComponentID("id2")
        link = ComponentLink([id1], id2)
        dc = DerivedComponent(d, link)
        d.add_component(Component(np.array([1, 2, 3])), id1)
        d.add_component(dc, id2)

        dc = DataCollection()
        dc.append(d)

        assert link in dc._link_manager
When appending a data set, its DerivedComponents
dataset/ETHPy150Open glue-viz/glue/glue/core/tests/test_data_collection.py/TestDataCollection.test_derived_links_autoadd