@xfail
def test_traverse(db_conn, units_table, users_table, responses_table,
                  sets_table):
    """
    Expect to take a list of units and traverse them correctly.
    Basic test.
    """

    add_test_set(db_conn,
                 users_table, units_table, responses_table, sets_table)

    set_ = Set.get(db_conn, entity_id='set')
    user = User.get(db_conn, id='user')
    buckets = traverse(db_conn, user, set_)
    assert buckets['diagnose'][0]['entity_id'] == 'divide'
    assert buckets['learn'][0]['entity_id'] == 'multiply'
    assert buckets['review'][0]['entity_id'] == 'subtract'
dataset/ETHPy150Open heiskr/sagefy/server/test/test_modules_sequencer_traversal.py/test_traverse/original