@classmethod
    def setUpTestData(cls):
        super(DomainAdminTestCase, cls).setUpTestData()
        cls.user = User.objects.get(username='admin@test.com')
        cls.user.userobjectlimit_set.filter(
            name__in=["mailboxes", "mailbox_aliases"]).update(max_value=2)
Import view from string and cache it to current class instance.
dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py/DomainAdminTestCase.setUpTestData--crossover with--dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/flask_lazyviews/utils.py/LazyView.view