def test_module_delete(self):
        for model in self.models:
            ns = model._bmfmeta.namespace_api

            for obj in model.objects.all():
                url = reverse('%s:delete' % ns, kwargs={
                    'pk': obj.pk,
                })
                response = self.client.get(url, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
                self.assertTrue(response.status_code in [200, 403])
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/utils/testcases.py/ModuleTestFactory.test_module_delete/original