def METHOD_NAME(self):
    """
    Testing delete macrogroup
    """
    # Create a macrogroup to delete
    macrogroup_data = {
        'name': 'MacroGroup to delete',
        'title': 'MacroGroup to delete',
        'logo_img': ''
    }
    macrogroup = MacroGroup(**macrogroup_data)
    macrogroup.save()
    # check 1 macrogroup on db
    dbgmacrogropus = MacroGroup.objects.all()
    self.assertEqual(len(dbgmacrogropus), 1)
    self.assertEqual(dbgmacrogropus[0].name, macrogroup_data['name'])
    url = reverse('macrogroup-delete', args=[macrogroup.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 macrogroup into db
    dbgmacrogropus =MacroGroup.objects.all()
    self.assertEqual(len(dbgmacrogropus), 0)
    client.logout()