def test_reseller_deletes_domain(self):
        self._create_domain('domain.tld', withtpl=True)
        dom = Domain.objects.get(name="domain.tld")
        self.ajax_post(
            reverse("admin:domain_delete", args=[dom.id]),
            {}
        )
        self._check_limit('domains', 0, 2)
        self._check_limit('domain_admins', 1, 2)
        self._check_limit('mailboxes', 0, 2)
        self._check_limit('mailbox_aliases', 0, 2)
Finds and returns first item in iterable for which func(item) is True.
dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py/ResellerTestCase.test_reseller_deletes_domain--crossover with--dataset/ETHPy150Open burnash/gspread/gspread/utils.py/finditem