def test_select_set_route(db_conn, session, sets_table, users_sets_table):

    sets_table.insert({
        'entity_id': 'A1',
        'name': 'A',
        'body': 'Apple',
        'created': r.now(),
        'modified': r.now(),
        'status': 'accepted',
    }).run(db_conn)

    request = {
        'cookies': {'session_id': session},
        'db_conn': db_conn,
    }
    code, response = routes.user_sets.select_set_route(request,
                                                       'abcd1234',
                                                       'A1')
    assert code == 200
    assert response['next']['path'] == '/s/sets/A1/tree'
@param roles_qs: queryset of allowed roles
dataset/ETHPy150Open heiskr/sagefy/server/test/test_routes_user_sets.py/test_select_set_route--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/clearinghouse/roles/forms.py/SelectRoleForm.__init__