def test_module_create(self):
        for model in self.models:

            ns = model._bmfmeta.namespace_api

            for key, slug, view in site.modules[model].list_creates():
                url = reverse('%s:create' % ns, kwargs={
                    'key': key,
                })
                response = self.client.get(url, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
                self.assertEqual(response.status_code, 200)
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/utils/testcases.py/ModuleTestFactory.test_module_create/original