def test_user_update_self_only(db_conn, users_table, session):
    """
    Ensure a user can only update herself.
    """

    users_table.insert({
        'id': '1234abcd',
        'name': 'other',
        'email': 'other@example.com',
        'password': bcrypt.encrypt('1234abcd'),
    }).run(db_conn)

    request = {
        'params': {
            'email': 'other@example.com'
        },
        'cookies': {
            'session_id': session,
        },
        'db_conn': db_conn
    }
    code, response = routes.user.update_user_route(request, '1234abcd')
    assert response in 'errors'
dataset/ETHPy150Open heiskr/sagefy/server/test/test_routes_user.py/test_user_update_self_only/swapped operands of `in`