def test_LabelledPointUndirectedGraph_remove_label(): lgroup = LabelledPointUndirectedGraph(points, adjacency_matrix, mask_dict_3) new_lgroup = lgroup.remove_label('lower') assert 'all' in new_lgroup.labels assert 'lower' not in new_lgroup.labels assert 'all' in lgroup.labels
def test_LabelledPointUndirectedGraph_remove_label_unlabelled(): lgroup = LabelledPointUndirectedGraph(points, adjacency_matrix, mask_dict_2) lgroup.remove_label('lower')
def test_LabelledPointUndirectedGraph_remove_label_unlabelled(): lgroup = LabelledPointUndirectedGraph(points, adjacency_matrix, mask_dict_2) with raises(ValueError): lgroup.remove_label("lower")