def test_event_group_page_delete(self): special_group = LocalGroup.objects.create(name=self.special_group_name) special_group_page = LocalGroupPage( title=self.special_group_name, group=special_group ) self.event_list_page.add_child(instance=special_group_page) self.assertAuthGroupsExists(self.special_group_name, EVENT_AUTH_GROUP_TYPES) special_group_page.delete() self.assertAuthGroupsNotExists(self.special_group_name, EVENT_AUTH_GROUP_TYPES)
def test_local_group_page_delete(self): special_group = self._create_local_group(name=self.special_group_name) special_group_page = LocalGroupPage(title=self.special_group_name, group=special_group) self.local_group_list_page.add_child(instance=special_group_page) self.assertAuthGroupsExists(self.special_group_name, PAGE_AUTH_GROUP_TYPES) special_group_page.delete() self.assertAuthGroupsNotExists(self.special_group_name, PAGE_AUTH_GROUP_TYPES)