

def test_reseller_deletes_domain(self):
    'Check if all resources are restored after the deletion.\n        '
    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)

dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py ResellerTestCase.test_reseller_deletes_domain/original