'Tests deleting a group through the group_delete route.'

def test_delete_group_view(self):

    self.assertTrue(GroupProfile.objects.get(id=self.bar.id))
    self.client.login(username='admin', password='admin')
    response = self.client.post(reverse('group_remove', args=[self.bar.slug]))
    self.assertEqual(response.status_code, 302)
    self.assertFalse((GroupProfile.objects.filter(id=self.bar.id).count() > 0))
