def add_group(self, name, exclusive, group_filters=None, overwrite=False):
        if name in self.filters:
            prev = self.filters[name]
            if isinstance(prev, FilterManager.Filter):
                raise ValueError('A filter with this name already exists!')
            if not overwrite:
                raise ValueError('A filter group with this name already exists!')

        g = self.FilterGroup(exclusive)
        if group_filters:
            if exclusive:
                for f in group_filters.itervalues():
                    f.active = False
                group_filters.values()[0].active = True
            g.filters = group_filters
        else:
            g.filters = OrderedDict()
        self.filters[name] = g
Check UID/GID switches when current effective UID is non-root.
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/filter_manager.py/FilterManager.add_group--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_util.py/RunAsEffectiveUserTests.test_UID