

def test_sadmin_removes_ownership(self):
    self._create_domain('domain.tld', withtpl=True)
    dom = Domain.objects.get(name='domain.tld')
    self.client.logout()
    self.client.login(username='admin', password='password')
    self.ajax_get('{0}?domid={1}&daid={2}'.format(reverse('admin:permission_remove'), dom.id, self.user.id), {
        
    })
    self._check_limit('domains', 0, 2)
    self._check_limit('domain_admins', 0, 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_sadmin_removes_ownership/original