Exemplo n.º 1
0
 def test_remove_groups(self):
     """Test the removal of groups according to a name"""
     name = "Foo"
     create_groups(name)
     remove_groups(name)
     community_groups = Group.objects.filter(name__startswith=name)
     self.assertEqual(list(community_groups), [])
Exemplo n.º 2
0
def remove_community_groups(sender, instance, **kwargs):
    """Remove user groups for a particular Community"""
    remove_groups(instance.name)
Exemplo n.º 3
0
def remove_community_groups(sender, instance, **kwargs):
    """Remove user groups for a particular Community"""
    remove_groups(instance.name)