

def test_aliases_limit_through_account_form(self):
    user = User.objects.get(username='user@test.com')
    values = dict(username=user.username, role=user.group, is_active=user.is_active, email=values.email, quota_act=True, aliases='alias1@test.com', aliases_1='alias2@test.com')
    self.ajax_post(reverse('admin:account_change', args=[user.id]), values)
    Alias.objects.get(address='alias1@test.com')
    self._check_limit('mailbox_aliases', 2, 2)

dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py DomainAdminTestCase.test_aliases_limit_through_account_form/VarMisuse@47/63 `user`->`values`