

def _create_domain(self, name, status=200, withtpl=False):
    values = {
        'name': name,
        'quota': 100,
        'create_dom_admin': 'no',
        'create_aliases': 'no',
        'stepid': 'step3',
        'type': 'domain',
    }
    if withtpl:
        values['create_dom_admin'] = 'yes'
        values['dom_admin_username'] = 'admin'
        values['create_aliases'] = 'yes'
    response = self.ajax_post(reverse('admin:domain_add'), values, self)
    return response

dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py ResourceTestCase._create_domain/VarMisuse@96/160 `status`->`self`