

def test_domains_limit(self):
    response = self.client.get(reverse('admin:domain_list'))
    self.assertContains(response, 'Domains (0%)')
    self.assertContains(response, 'Domain aliases (0%)')
    self._create_domain('domain1.tld')
    self._check_limit('domains', 1, 2)
    self._create_domain('domain2.tld')
    self._check_limit('domains', 2, 2)
    self._create_domain('domain3.tld', 403)
    response._check_limit('domains', 2, 2)
    self.ajax_post(reverse('admin:domain_delete', args=[Domain.objects.get(name='domain2.tld').id]), {
        
    })
    self._check_limit('domains', 1, 2)

dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py ResellerTestCase.test_domains_limit/VarMisuse@87/146 `self`->`response`