def check_setup(self, dc, expected):
        # assert that the assembled data collection returned
        # form qglue matches expected structure

        # test for expected data, components
        for data in dc:
            components = set(c.label for c in data.components)
            e = expected.pop(data.label)
            for component in e:
                assert component in components
        assert len(expected) == 0
dataset/ETHPy150Open glue-viz/glue/glue/tests/test_qglue.py/TestQGlue.check_setup/original