def METHOD_NAME(self):
    """
    Testing delete group
    """
    # Create a group to delete
    group_data = {
        'name': 'Group to delete',
        'title': 'Group to delete',
        'header_logo_img': '',
        'srid': G3WSpatialRefSys.objects.get(auth_srid=4326)
    }
    group = Group(**group_data)
    group.save()
    # check 1 group on db
    dbgroups = Group.objects.all()
    self.assertEqual(len(dbgroups), 1)
    self.assertEqual(dbgroups[0].name, group_data['name'])
    url = reverse('group-delete', args=[group.slug])
    client = Client()
    self.assertTrue(client.login(username=self.test_user1.username, password=self.test_user1.username))
    response = client.post(url)
    self.assertEqual(response.status_code, 200)
    # check no groups into db
    dbgroups = Group.objects.all()
    self.assertEqual(len(dbgroups), 0)
    client.logout()