def test_module_api_related(self):
        self.appconf = [app for app in apps.get_app_configs() if isinstance(app, self.app)][0]

        for relation in self.appconf.bmf_config.bmf_relations:
            if self.models not in relation._model:
                continue

            for obj in relation._model.objects.all():
                url = reverse('%s:api-related' % settings.APP_LABEL, kwargs={
                    'app': obj._meta.app_label,
                    'model': obj._meta.model_name,
                    'pk': obj.pk,
                    'field': relation.slug,
                })
                response = self.client.get(url, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
                self.assertTrue(response.status_code in [200])
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/utils/testcases.py/ModuleTestFactory.test_module_api_related/swapped operands of `not in`