def test_delete_object(self):
        view_url = '/create_update/delete/article/old_article/'
        response = self.client.post(view_url)
        try:
            Article.objects.get(slug='old_article')
        except Article.DoesNotExist:
            pass
        else:
            self.fail('Object was not deleted.')
Verifies the object actually gets deleted on a POST.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/views/tests/generic/create_update.py/UpdateDeleteObjectTest.test_delete_object