def test_remove_layer(self):
        layer = self.add_layer()
        self.remove_layer(layer)
        assert not self.layer_present(layer)
Test that widget remove button works properly
dataset/ETHPy150Open glue-viz/glue/glue/app/qt/tests/test_layer_tree_widget.py/TestLayerTree.test_remove_layer