def setUp(self):  # noqa
        super(BaseTestCase, self).setUp()
        self.user = self.create_user("superuser", is_superuser=True)
        self.client_login("superuser")
        self.appconf = [app for app in apps.get_app_configs() if isinstance(app, self.app)][0]
        self.models = [m for m in self.appconf.get_models() if m in site.models.values()]
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/utils/testcases.py/ModuleTestFactory.setUp/original