@view_config(route_name='admin_admins',
             request_method='POST',
             request_param='add',
             renderer='h:templates/admin/admins.html.jinja2',
             permission='admin_admins')
def admins_add(request):
    username = request.params['add']
    try:
        accounts.make_admin(username)
    except accounts.NoSuchUserError:
        request.session.flash(
            _("User {username} doesn't exist.".format(username=username)),
            "error")
    return admins_index(request)
Assert that the a DeprecationWarning with the given message was
dataset/ETHPy150Open hypothesis/h/h/admin/views/admins.py/admins_add--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_address.py/AddressTestCaseMixin.assertDeprecations